Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Event create form and update form mapper class. More...
Public Member Functions | |
from_data_to_event_properties (\stdClass $data) | |
Generate the appropriate calendar_event properties from the form data. More... | |
from_legacy_event_to_data (\calendar_event $legacyevent) | |
Generate the appropriate data for the form from a legacy event. More... | |
Event create form and update form mapper class.
This class will perform the necessary data transformations to take a legacy event and build the appropriate data structure for both the create and update event forms.
It will also do the reverse transformation and take the returned form data and provide a data structure that can be used to set legacy event properties.
core_calendar\local\event\mappers\create_update_form_mapper::from_data_to_event_properties | ( | \stdClass | $data | ) |
Generate the appropriate calendar_event properties from the form data.
stdClass | $data |
stdClass |
Implements core_calendar\local\event\mappers\create_update_form_mapper_interface.
core_calendar\local\event\mappers\create_update_form_mapper::from_legacy_event_to_data | ( | \calendar_event | $legacyevent | ) |
Generate the appropriate data for the form from a legacy event.
calendar_event | $legacyevent |
stdClass |
Implements core_calendar\local\event\mappers\create_update_form_mapper_interface.