Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
A test factory that will create action events. More...
Public Member Functions | |
__construct ($callback=null) | |
A test factory that will create action events. | |
create_instance (\stdClass $record) | |
Creates an instance of an event. | |
A test factory that will create action events.
action_event_test_factory::__construct | ( | $callback = null | ) |
A test factory that will create action events.
The factory accepts a callback that will be used to determine if the event should be returned or not.
The callback will be given the event and should return true if the event should be returned and false otherwise.
callable | $callback | The callback. |
action_event_test_factory::create_instance | ( | \stdClass | $dbrow | ) |
Creates an instance of an event.
stdClass | $dbrow | The event row from the database. |
core_calendar\local\event\entities\event_interface |
Implements core_calendar\local\event\factories\event_factory_interface.