Abstract factory for creating calendar events.
More...
|
| __construct (callable $actioncallbackapplier, callable $visibilitycallbackapplier, callable $bailoutcheck, array &$coursecachereference, array &$modulecachereference) |
| Constructor.
|
|
| create_instance (\stdClass $dbrow) |
| Creates an instance of an event.
|
|
|
callable | $actioncallbackapplier |
| $actioncallbackapplier Function to apply component action callbacks.
|
|
callable | $bailoutcheck |
| Bail out check for create_instance.
|
|
array | $coursecachereference |
| Course cache for use with get_course_cached.
|
|
array | $modulecachereference |
| Module cache reference for use with get_module_cached.
|
|
callable | $visibilitycallbackapplier |
| $visibilitycallbackapplier Function to apply component visibility callbacks.
|
|
Abstract factory for creating calendar events.
- Copyright
- 2017 Cameron Ball camer.nosp@m.on@c.nosp@m.amero.nosp@m.n172.nosp@m.9.xyz
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
core_calendar\local\event\factories\event_abstract_factory::__construct |
( |
callable | $actioncallbackapplier, |
|
|
callable | $visibilitycallbackapplier, |
|
|
callable | $bailoutcheck, |
|
|
array & | $coursecachereference, |
|
|
array & | $modulecachereference ) |
Constructor.
- Parameters
-
callable | $actioncallbackapplier | Function to apply component action callbacks. |
callable | $visibilitycallbackapplier | Function to apply component visibility callbacks. |
callable | $bailoutcheck | Function to test if we can return null early. |
array | $coursecachereference | Cache to use with get_course_cached. |
array | $modulecachereference | Cache to use with get_module_cached. |
◆ apply_component_action()
core_calendar\local\event\factories\event_abstract_factory::apply_component_action |
( |
event_interface | $event | ) |
|
|
abstractprotected |
◆ create_instance()
core_calendar\local\event\factories\event_abstract_factory::create_instance |
( |
\stdClass | $dbrow | ) |
|
◆ expose_event()
core_calendar\local\event\factories\event_abstract_factory::expose_event |
( |
event_interface | $event | ) |
|
|
abstractprotected |
The documentation for this class was generated from the following file:
- calendar/classes/local/event/factories/event_abstract_factory.php