Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
core_calendar\local\event\proxies\cm_info_proxy Class Reference

Course module stdClass proxy. More...

Inheritance diagram for core_calendar\local\event\proxies\cm_info_proxy:
core_calendar\local\event\proxies\proxy_interface

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
 

Detailed Description

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.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core_calendar\local\event\proxies\cm_info_proxy::__construct (   $modname,
  $instance,
  $courseid 
)

cm_info_proxy constructor.

Parameters
string$modnameThe module name.
int$instanceThe module instance.
int$courseidcourse id this module belongs to

Member Function Documentation

◆ get()

core_calendar\local\event\proxies\cm_info_proxy::get (   $member)

Retrieve a member of the proxied class.

Parameters
string$memberThe name of the member to retrieve
Return values
mixedThe member.

Implements core_calendar\local\event\proxies\proxy_interface.

◆ get_proxied_instance()

core_calendar\local\event\proxies\cm_info_proxy::get_proxied_instance ( )

Get the full instance of the proxied class.

Return values
stdClass

Implements core_calendar\local\event\proxies\proxy_interface.


The documentation for this class was generated from the following file: