Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(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