Class represents a single subscription instance (i.e with all the subscription info).
More...
Class represents a single subscription instance (i.e with all the subscription info).
- Since
- Moodle 2.8
- Copyright
- 2014 onwards Ankit Agarwal ankit.nosp@m..agr.nosp@m.r@gma.nosp@m.il.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
tool_monitor\subscription::__construct |
( |
|
$subscription | ) |
|
◆ __get()
tool_monitor\subscription::__get |
( |
|
$prop | ) |
|
Magic get method.
- Parameters
-
string | $prop | property to get. |
- Return values
-
- Exceptions
-
◆ __isset()
tool_monitor\subscription::__isset |
( |
|
$prop | ) |
|
Magic isset method.
- Parameters
-
string | $prop | the property to get. |
- Return values
-
bool | true if the property is set, false otherwise. |
◆ can_manage_rule()
tool_monitor\subscription::can_manage_rule |
( |
| ) |
|
Can the current user manage the rule associate with this subscription?
- Return values
-
bool | true if the current user can manage this rule, else false. |
◆ get_course_name()
tool_monitor\subscription::get_course_name |
( |
\context |
$context | ) |
|
Get properly formatted name of the course associated.
- Parameters
-
context | $context | context where this name would be displayed. |
- Return values
-
string | Formatted name of the rule. |
◆ get_description()
tool_monitor\subscription::get_description |
( |
\context |
$context | ) |
|
Get properly formatted description of the rule associated.
- Parameters
-
context | $context | context where this description would be displayed. |
- Return values
-
string | Formatted description of the rule. |
◆ get_event_name()
tool_monitor\subscription::get_event_name |
( |
| ) |
|
Method to get event name.
- Return values
-
- Exceptions
-
◆ get_filters_description()
tool_monitor\subscription::get_filters_description |
( |
| ) |
|
Get filter description.
- Return values
-
◆ get_instance_name()
tool_monitor\subscription::get_instance_name |
( |
| ) |
|
Get a human readable name for instances associated with this subscription.
- Return values
-
- Exceptions
-
◆ get_name()
tool_monitor\subscription::get_name |
( |
\context |
$context | ) |
|
Get properly formatted name of the rule associated.
- Parameters
-
context | $context | context where this name would be displayed. |
- Return values
-
string | Formatted name of the rule. |
◆ get_plugin_name()
tool_monitor\subscription::get_plugin_name |
( |
| ) |
|
Get name of the plugin associated with this rule.
- Return values
-
The documentation for this class was generated from the following file: