Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
core_calendar\local\event\mappers\create_update_form_mapper Class Reference

Event create form and update form mapper class. More...

Inheritance diagram for core_calendar\local\event\mappers\create_update_form_mapper:
core_calendar\local\event\mappers\create_update_form_mapper_interface

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...
 

Detailed Description

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.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ from_data_to_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.

Parameters
stdClass$data
Return values
stdClass

Implements core_calendar\local\event\mappers\create_update_form_mapper_interface.

◆ from_legacy_event_to_data()

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.

Parameters
calendar_event$legacyevent
Return values
stdClass

Implements core_calendar\local\event\mappers\create_update_form_mapper_interface.


The documentation for this class was generated from the following file: