Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Course module stdClass proxy. More...
Public Member Functions | |
__construct ($modname, $instance, $courseid) | |
cm_info_proxy 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 |
cm_info | $cm |
Course module stdClass proxy.
This implementation differs from the regular std_proxy in that it takes a module name and instance instead of an id to construct the proxied class.
This is needed as the event table does not store the id of course modules instead it stores the module name and instance.
core_calendar\local\event\proxies\cm_info_proxy::__construct | ( | $modname, | |
$instance, | |||
$courseid | |||
) |
cm_info_proxy constructor.
string | $modname | The module name. |
int | $instance | The module instance. |
int | $courseid | course id this module belongs to |
core_calendar\local\event\proxies\cm_info_proxy::get | ( | $member | ) |
Retrieve a member of the proxied class.
string | $member | The name of the member to retrieve |
mixed | The member. |
Implements core_calendar\local\event\proxies\proxy_interface.
core_calendar\local\event\proxies\cm_info_proxy::get_proxied_instance | ( | ) |
Get the full instance of the proxied class.
stdClass |
Implements core_calendar\local\event\proxies\proxy_interface.