mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'w02_MDL-31005_m23_contextlevelname' of git://github.com/skodak/moodle
This commit is contained in:
commit
2e40a94cff
@ -4978,17 +4978,6 @@ abstract class context extends stdClass {
|
||||
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.
|
||||
*
|
||||
@ -5476,7 +5465,7 @@ class context_system extends context {
|
||||
* @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');
|
||||
}
|
||||
|
||||
@ -5714,7 +5703,7 @@ class context_user extends context {
|
||||
* @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');
|
||||
}
|
||||
|
||||
@ -5882,7 +5871,7 @@ class context_coursecat extends context {
|
||||
* @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');
|
||||
}
|
||||
|
||||
@ -6102,7 +6091,7 @@ class context_course extends context {
|
||||
* @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');
|
||||
}
|
||||
|
||||
@ -6317,7 +6306,7 @@ class context_module extends context {
|
||||
* @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');
|
||||
}
|
||||
|
||||
@ -6553,7 +6542,7 @@ class context_block extends context {
|
||||
* @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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user