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_interface Interface Reference

Interface for a create_update_form_mapper class. More...

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

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

Interface for a create_update_form_mapper class.

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_interface::from_data_to_event_properties ( \stdClass  $data)

Generate the appropriate calendar_event properties from the form data.

Parameters
stdClass$data
Return values
stdClass

Implemented in core_calendar\local\event\mappers\create_update_form_mapper.

◆ from_legacy_event_to_data()

core_calendar\local\event\mappers\create_update_form_mapper_interface::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

Implemented in core_calendar\local\event\mappers\create_update_form_mapper.


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