public static function get_edulevel_string($edulevel) {
        switch ($edulevel) {
            case \core\event\base::LEVEL_PARTICIPATING:
                return get_string('participating', 'report_eventlist');
                break;

            case \core\event\base::LEVEL_TEACHING:
                return get_string('teaching', 'report_eventlist');
                break;

            case \core\event\base::LEVEL_OTHER:
            default:
                return get_string('other', 'report_eventlist');
                break;
        }
    }
public static function get_edulevel_string($edulevel) {
        switch ($edulevel) {
            case \core\event\base::LEVEL_PARTICIPATING:
                return get_string('participating', 'report_eventlist');
                break;

            case \core\event\base::LEVEL_TEACHING:
                return get_string('teaching', 'report_eventlist');
                break;

            case \core\event\base::LEVEL_OTHER:
            default:
                return get_string('other', 'report_eventlist');
                break;
        }
    }
public static function get_edulevel_string ( $ edulevel ) { switch ( $ edulevel ) { case \ core \ event \ base :: LEVEL_PARTICIPATING : return get_string ( 'participating' , 'report_eventlist' ) ; break ; case \ core \ event \ base :: LEVEL_TEACHING : return get_string ( 'teaching' , 'report_eventlist' ) ; break ; case \ core \ event \ base :: LEVEL_OTHER : default : return get_string ( 'other' , 'report_eventlist' ) ; break ; } }
Returns the appropriate string for the event education level.

@param int $edulevel Takes either the edulevel constant or string.
@return string get_string for the specific education level.
Returns the appropriate string for the event education level .