Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(no description)

File Size: 110 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

phase_automatically_switched:: (7 methods):
  init()
  get_description()
  get_name()
  get_url()
  validate_data()
  get_objectid_mapping()
  get_other_mapping()


Class: phase_automatically_switched  - X-Ref

This event is triggered when a phase is automatically switched, usually from cron_task.

init()   X-Ref
Init method.

return: void

get_description()   X-Ref
Returns description of what happened.

return: string

get_name()   X-Ref
Return localised event name.

return: string

get_url()   X-Ref
Get URL related to the action.

return: \moodle_url

validate_data()   X-Ref
Custom validation.

return: void

get_objectid_mapping()   X-Ref
Map the objectid information in order to restore the event accurately. In this event
objectid is the workshop id.

return: array

get_other_mapping()   X-Ref
No need to map the 'other' field as it only stores phases and they don't need to be mapped.

return: bool