Class for returning event information.
More...
Class for returning event information.
- 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
◆ get_all_eventlist()
static tool_monitor\eventlist::get_all_eventlist |
( |
|
$withoutcomponent = false | ) |
|
|
static |
Get a list of events present in the system.
- Parameters
-
bool | $withoutcomponent | Return an eventlist without associated components. |
- Return values
-
array | list of events present in the system. |
◆ get_core_eventlist()
static tool_monitor\eventlist::get_core_eventlist |
( |
| ) |
|
|
staticprotected |
Return all of the core event files.
- Return values
-
◆ get_file_list()
static tool_monitor\eventlist::get_file_list |
( |
|
$directory | ) |
|
|
staticprotected |
Returns a list of files with a full directory path in a specified directory.
- Parameters
-
string | $directory | location of files. |
- Return values
-
array | full location of files from the specified directory. |
◆ get_non_core_eventlist()
static tool_monitor\eventlist::get_non_core_eventlist |
( |
|
$withoutcomponent = false | ) |
|
|
staticprotected |
This function returns an array of all events for the plugins of the system.
- Parameters
-
bool | $withoutcomponent | Return an eventlist without associated components. |
- Return values
-
array | A list of events from all plug-ins. |
◆ get_plugin_list()
static tool_monitor\eventlist::get_plugin_list |
( |
|
$eventlist = array() | ) |
|
|
static |
Return list of plugins that have events.
- Parameters
-
- Return values
-
array | list of plugins with human readable name. |
◆ validate_event_plugin()
static tool_monitor\eventlist::validate_event_plugin |
( |
|
$plugin, |
|
|
|
$eventname, |
|
|
|
$eventlist = array() |
|
) |
| |
|
static |
validate if the given event belongs to the given plugin.
- Parameters
-
string | $plugin | Frankenstyle name of the plugin. |
string | $eventname | Full qualified event name. |
array | $eventlist | List of events generated by eventlist::get_all_eventlist |
- Return values
-
bool | Returns true if the selected event belongs to the selected plugin, false otherwise. |
The documentation for this class was generated from the following file: