Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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