Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
stdClass proxy. More...
Public Member Functions | |
__construct ($id, callable $callback, stdClass $base=null) | |
Constructor. More... | |
get ($member) | |
Retrieve a member of the proxied class. More... | |
get_proxied_instance () | |
Get the full instance of the proxied class. More... | |
Protected Attributes | |
stdClass | $base |
$base Base class to get members from. | |
callable | $callback |
$callback Callback to run which will load the class to proxy. | |
array | $callbackargs |
$callbackargs Array of arguments to pass to the callback. | |
stdClass | $class |
$class The class we are proxying. | |
int | $id |
$id The ID of the database record. | |
stdClass proxy.
This class is intended to proxy things like user, group, etc 'classes' It will only run the callback to load the object from the DB when necessary.
core_calendar\local\event\proxies\std_proxy::__construct | ( | $id, | |
callable | $callback, | ||
stdClass | $base = null |
||
) |
Constructor.
int | $id | The ID of the record in the database. |
callable | $callback | Callback to load the class. |
stdClass | $base | Class containing base values. |
core_calendar\local\event\proxies\std_proxy::get | ( | $member | ) |
Retrieve a member of the proxied class.
string | $member | The name of the member to retrieve |
core_calendar |
Implements core_calendar\local\event\proxies\proxy_interface.
core_calendar\local\event\proxies\std_proxy::get_proxied_instance | ( | ) |
Get the full instance of the proxied class.
stdClass |
Implements core_calendar\local\event\proxies\proxy_interface.