return $record;
}
- /**
- * Returns human readable context level name.
- *
- * @static
- * @return string the human readable context level name.
- */
- protected static function get_level_name() {
- // must be implemented in all context levels
- throw new coding_exception('can not get level name of abstract context');
- }
-
/**
* Returns human readable context identifier.
*
* @static
* @return string the human readable context level name.
*/
- protected static function get_level_name() {
+ public static function get_level_name() {
return get_string('coresystem');
}
* @static
* @return string the human readable context level name.
*/
- protected static function get_level_name() {
+ public static function get_level_name() {
return get_string('user');
}
* @static
* @return string the human readable context level name.
*/
- protected static function get_level_name() {
+ public static function get_level_name() {
return get_string('category');
}
* @static
* @return string the human readable context level name.
*/
- protected static function get_level_name() {
+ public static function get_level_name() {
return get_string('course');
}
* @static
* @return string the human readable context level name.
*/
- protected static function get_level_name() {
+ public static function get_level_name() {
return get_string('activitymodule');
}
* @static
* @return string the human readable context level name.
*/
- protected static function get_level_name() {
+ public static function get_level_name() {
return get_string('block');
}