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.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

The mod_choice answer updated event.

Copyright: 2013 Adrian Greeve <adrian@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 138 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

answer_updated:: (8 methods):
  get_description()
  get_name()
  get_url()
  init()
  validate_data()
  get_objectid_mapping()
  get_other_mapping()
  is_deprecated()


Class: answer_updated  - X-Ref

The mod_choice answer updated event class.

This event is deprecated in Moodle 3.2, it can no longer be triggered, do not
write event observers for it. This event can only be initiated during
restore from previous Moodle versions and appear in the logs.

Event observers should listen to mod_choice\event\answer_created and
mod_choice\event\answer_deleted instead, these events will be triggered for
each option that was user has selected or unselected

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

init()   X-Ref
Init method.

return: void

validate_data()   X-Ref
Custom validation.

return: void

get_objectid_mapping()   X-Ref
No description

get_other_mapping()   X-Ref
No description

is_deprecated()   X-Ref
No description