mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-39956 cohort: Event clean up and made ready for integration
* Added more PHP Documentation * Localised strings for get_name() * get_legacy_eventname() is now static * get_legacy_eventdata() is now protected * Testing legacy event data * Added missing defined('MOODLE_INTERNAL') checks * Added missing call to add_record_snapshot()
This commit is contained in:
parent
4fece33d9a
commit
25a66af722
8 changed files with 160 additions and 75 deletions
|
@ -85,6 +85,7 @@ function cohort_update_cohort($cohort) {
|
|||
'context' => context::instance_by_id($cohort->contextid),
|
||||
'objectid' => $cohort->id,
|
||||
));
|
||||
$event->add_record_snapshot('cohort', $cohort);
|
||||
$event->trigger();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue