mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-66034 core: deprecate role_capabilities_updated event
This commit is contained in:
parent
32306e8390
commit
e9b88bcb73
3 changed files with 17 additions and 1 deletions
|
@ -160,3 +160,4 @@ nobackpackcollections,core_badges
|
||||||
error:nogroups,core_badges
|
error:nogroups,core_badges
|
||||||
purgedefinitionsuccess,core_cache
|
purgedefinitionsuccess,core_cache
|
||||||
purgestoresuccess,core_cache
|
purgestoresuccess,core_cache
|
||||||
|
eventrolecapabilitiesupdated,core_role
|
|
@ -232,7 +232,6 @@ $string['eventroleallowoverrideupdated'] = 'Allow role override';
|
||||||
$string['eventroleallowswitchupdated'] = 'Allow role switch';
|
$string['eventroleallowswitchupdated'] = 'Allow role switch';
|
||||||
$string['eventroleallowviewupdated'] = 'Allow role view';
|
$string['eventroleallowviewupdated'] = 'Allow role view';
|
||||||
$string['eventroleassigned'] = 'Role assigned';
|
$string['eventroleassigned'] = 'Role assigned';
|
||||||
$string['eventrolecapabilitiesupdated'] = 'Role capabilities updated';
|
|
||||||
$string['eventroledeleted'] = 'Role deleted';
|
$string['eventroledeleted'] = 'Role deleted';
|
||||||
$string['eventroleunassigned'] = 'Role unassigned';
|
$string['eventroleunassigned'] = 'Role unassigned';
|
||||||
$string['eventroleupdated'] = 'Role updated';
|
$string['eventroleupdated'] = 'Role updated';
|
||||||
|
@ -498,3 +497,6 @@ $string['privacy:metadata:role_capabilities:tableexplanation'] = 'The capabiliti
|
||||||
$string['privacy:metadata:role_capabilities:timemodified'] = 'The date when the capability was created or modified.';
|
$string['privacy:metadata:role_capabilities:timemodified'] = 'The date when the capability was created or modified.';
|
||||||
$string['privacy:metadata:role_cohortroles'] = 'Roles to cohort';
|
$string['privacy:metadata:role_cohortroles'] = 'Roles to cohort';
|
||||||
$string['course:togglecompletion'] = 'Manually mark activities as complete';
|
$string['course:togglecompletion'] = 'Manually mark activities as complete';
|
||||||
|
|
||||||
|
// Deprecated since Moodle 3.8.
|
||||||
|
$string['eventrolecapabilitiesupdated'] = 'Role capabilities updated';
|
|
@ -27,6 +27,9 @@ namespace core\event;
|
||||||
|
|
||||||
defined('MOODLE_INTERNAL') || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
|
debugging('core\\event\\role_capabilities_updated has been deprecated. Please use
|
||||||
|
core\\event\\capability_assigned instead', DEBUG_DEVELOPER);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Role updated event class.
|
* Role updated event class.
|
||||||
*
|
*
|
||||||
|
@ -102,4 +105,14 @@ class role_capabilities_updated extends base {
|
||||||
public static function get_objectid_mapping() {
|
public static function get_objectid_mapping() {
|
||||||
return array('db' => 'role', 'restore' => 'role');
|
return array('db' => 'role', 'restore' => 'role');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This event has been deprecated.
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public static function is_deprecated() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue