Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
A test factory that will create action events. More...
Public Member Functions | |
__construct ($callback=null) | |
A test factory that will create action events. More... | |
create_instance (\stdClass $record) | |
Creates an instance of an event. More... | |
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.