Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
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... | |
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::local::event::exceptions::member_does_not_exist_exception | If the proxied class does not have the requested member. |
mixed | The member. |
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.