Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Namespaces | |
namespace | tool_monitor |
| |
namespace | tool_monitor\event |
| |
namespace | tool_monitor\output\managerules |
| |
namespace | tool_monitor\output\managesubs |
| |
namespace | tool_monitor\privacy |
| |
namespace | tool_monitor\task |
| |
Classes | |
class | tool_monitor\event\rule_created |
The tool_monitor rule created event class. More... | |
class | tool_monitor\event\rule_deleted |
The tool_monitor rule deleted event class. More... | |
class | tool_monitor\event\rule_updated |
The tool_monitor rule updated event class. More... | |
class | tool_monitor\event\subscription_created |
The tool_monitor subscription created event class. More... | |
class | tool_monitor\event\subscription_deleted |
The tool_monitor subscription deleted event class. More... | |
class | tool_monitor\eventlist |
class | tool_monitor\eventobservers |
Observer class containing methods monitoring various events. More... | |
class | tool_monitor\notification_task |
Adhock class, used to send notifications to users. More... | |
class | tool_monitor\output\managerules\renderable |
Renderable class for manage rules page. More... | |
class | tool_monitor\output\managerules\renderer |
Renderer class for manage rules page. More... | |
class | tool_monitor\output\managesubs\renderer |
Renderer class for manage subscriptions page. More... | |
class | tool_monitor\output\managesubs\rules |
Renderable class to display a set of rules in the manage subscriptions page. More... | |
class | tool_monitor\output\managesubs\subs |
Renderable class to display a set of subscriptions in the manage subscriptions page. More... | |
class | tool_monitor\privacy\provider |
Privacy provider for tool_monitor. More... | |
class | tool_monitor\rule |
Class represents a single rule. More... | |
class | tool_monitor\rule_form |
The mform for creating and editing a rule. More... | |
class | tool_monitor\rule_manager |
Rule manager class. More... | |
class | tool_monitor\subscription |
Class represents a single subscription instance (i.e with all the subscription info). More... | |
class | tool_monitor\subscription_manager |
Class to manage subscriptions. More... | |
class | tool_monitor\task\check_subscriptions |
class | tool_monitor\task\clean_events |
Simple task to clean the tool_monitor_events table. More... | |
class | tool_monitor_generator |
Event monitor data generator class. More... | |
Functions | |
tool_monitor_can_subscribe () | |
Check if the user has the capacity to subscribe to an event monitor anywhere. | |
tool_monitor_extend_navigation_course ($navigation, $course, $context) | |
This function extends the navigation with the tool items. | |
tool_monitor_extend_navigation_frontpage ($navigation, $course, $context) | |
This function extends the navigation with the tool items. | |
tool_monitor_extend_navigation_user_settings ($navigation, $user, $usercontext, $course, $coursecontext) | |
This function extends the navigation with the tool items for user settings node. | |
tool_monitor_get_user_courses () | |
Get a list of courses and also include 'Site' for site wide rules. | |
xmldb_tool_monitor_upgrade ($oldversion) | |
Upgrade the plugin. | |
Variables | |
$capabilities | |
$definitions | |
$messageproviders | |
$observers | |
$plugin = 2024041600 | |
$tasks | |
$temp | |
$plugin | component = 'tool_monitor' |
$plugin | version = 2024042200 |
tool_monitor_can_subscribe | ( | ) |
Check if the user has the capacity to subscribe to an event monitor anywhere.
bool | True if a capability in a course is found. False otherwise. |
tool_monitor_extend_navigation_course | ( | $navigation, | |
$course, | |||
$context ) |
This function extends the navigation with the tool items.
navigation_node | $navigation | The navigation node to extend |
stdClass | $course | The course to object for the tool |
context | $context | The context of the course |
tool_monitor_extend_navigation_frontpage | ( | $navigation, | |
$course, | |||
$context ) |
This function extends the navigation with the tool items.
navigation_node | $navigation | The navigation node to extend |
stdClass | $course | The course to object for the tool |
context | $context | The context of the course |
tool_monitor_extend_navigation_user_settings | ( | $navigation, | |
$user, | |||
$usercontext, | |||
$course, | |||
$coursecontext ) |
This function extends the navigation with the tool items for user settings node.
navigation_node | $navigation | The navigation node to extend |
stdClass | $user | The user object |
context | $usercontext | The context of the user |
stdClass | $course | The course to object for the tool |
context | $coursecontext | The context of the course |
tool_monitor_get_user_courses | ( | ) |
Get a list of courses and also include 'Site' for site wide rules.
array|bool | Returns an array of courses or false if the user has no permission to subscribe to rules. |
xmldb_tool_monitor_upgrade | ( | $oldversion | ) |
Upgrade the plugin.
int | $oldversion |
bool | always true |
$definitions |
$messageproviders |
$observers |
$tasks |
$temp |