mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-39846 rename 'extra' event property to 'other'
This commit is contained in:
parent
605a8c336f
commit
c4297815eb
6 changed files with 41 additions and 41 deletions
|
@ -1687,7 +1687,7 @@ function role_assign($roleid, $userid, $contextid, $component = '', $itemid = 0,
|
|||
|
||||
$event = \core\event\role_assigned::create(
|
||||
array('context'=>$context, 'objectid'=>$ra->roleid, 'relateduserid'=>$ra->userid,
|
||||
'extra'=>array('id'=>$ra->id, 'component'=>$ra->component, 'itemid'=>$ra->itemid)));
|
||||
'other'=>array('id'=>$ra->id, 'component'=>$ra->component, 'itemid'=>$ra->itemid)));
|
||||
$event->add_cached_record('role_assignments', $ra);
|
||||
$event->trigger();
|
||||
|
||||
|
@ -1775,7 +1775,7 @@ function role_unassign_all(array $params, $subcontexts = false, $includemanual =
|
|||
}
|
||||
$event = \core\event\role_unassigned::create(
|
||||
array('context'=>$context, 'objectid'=>$ra->roleid, 'relateduserid'=>$ra->userid,
|
||||
'extra'=>array('id'=>$ra->id, 'component'=>$ra->component, 'itemid'=>$ra->itemid)));
|
||||
'other'=>array('id'=>$ra->id, 'component'=>$ra->component, 'itemid'=>$ra->itemid)));
|
||||
$event->add_cached_record('role_assignments', $ra);
|
||||
$event->trigger();
|
||||
}
|
||||
|
@ -1806,7 +1806,7 @@ function role_unassign_all(array $params, $subcontexts = false, $includemanual =
|
|||
}
|
||||
$event = \core\event\role_unassigned::create(
|
||||
array('context'=>$context, 'objectid'=>$ra->roleid, 'relateduserid'=>$ra->userid,
|
||||
'extra'=>array('id'=>$ra->id, 'component'=>$ra->component, 'itemid'=>$ra->itemid)));
|
||||
'other'=>array('id'=>$ra->id, 'component'=>$ra->component, 'itemid'=>$ra->itemid)));
|
||||
$event->add_cached_record('role_assignments', $ra);
|
||||
$event->trigger();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue