Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Event observers used in forum.

Copyright: 2013 Rajesh Taneja <rajesh@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 152 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

mod_forum_observer:: (5 methods):
  user_enrolment_deleted()
  role_assigned()
  course_module_created()
  course_created()
  course_updated()


Class: mod_forum_observer  - X-Ref

Event observer for mod_forum.

user_enrolment_deleted(\core\event\user_enrolment_deleted $event)   X-Ref
Triggered via user_enrolment_deleted event.

param: \core\event\user_enrolment_deleted $event

role_assigned(\core\event\role_assigned $event)   X-Ref
Observer for role_assigned event.

param: \core\event\role_assigned $event
return: void

course_module_created(\core\event\course_module_created $event)   X-Ref
Observer for \core\event\course_module_created event.

param: \core\event\course_module_created $event
return: void

course_created(\core\event\course_created $event)   X-Ref
Observer for \core\event\course_created event.

param: \core\event\course_created $event
return: void

course_updated(\core\event\course_updated $event)   X-Ref
Observer for \core\event\course_updated event.

param: \core\event\course_updated $event
return: void