public static function get_class_for_level($contextlevel) {
        self::init_levels();
        if (isset(self::$alllevels[$contextlevel])) {
            return self::$alllevels[$contextlevel];
        } else {
            throw new coding_exception('Invalid context level specified');
        }
    }
public static function get_class_for_level($contextlevel) {
        self::init_levels();
        if (isset(self::$alllevels[$contextlevel])) {
            return self::$alllevels[$contextlevel];
        } else {
            throw new coding_exception('Invalid context level specified');
        }
    }
public static function get_class_for_level ( $ contextlevel ) { self :: init_levels ( ) ; if ( isset ( self :: $ alllevels [ $ contextlevel ] ) ) { return self :: $ alllevels [ $ contextlevel ] ; } else { throw new coding_exception ( 'Invalid context level specified' ) ; } }
Returns a class name of the context level class

@static
@param int $contextlevel (CONTEXT_SYSTEM, etc.)
@return string class name of the context class
Returns a class name of the context level class