Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Files | |
file | backup_tool_log_logstore_subplugin.class.php |
Backup support for tool_log logstore subplugins. | |
file | buffered_writer.php |
Helper trait buffered_writer. | |
file | events.php |
Event observer. | |
file | helper.php |
Privacy helper. | |
file | install.php |
Logging support. | |
file | logstore.php |
Subplugin info class. | |
file | logstore_provider.php |
Logstore provider interface. | |
file | logstore_userlist_provider.php |
Logstore userlist provider interface. | |
file | manager.php |
Log store manager. | |
file | moodle_database_export_and_delete.php |
Moodle database: export and delete. | |
file | observer.php |
Event observer. | |
file | provider.php |
Data provider. | |
file | reader.php |
Reader helper trait. | |
file | restore_tool_log_logstore_subplugin.class.php |
Restore support for tool_log logstore subplugins. | |
file | setting_managestores.php |
Store management setting. | |
file | settings.php |
Logging settings. | |
file | store.php |
Log store interface. | |
file | store.php |
Helper trait store. | |
file | upgrade.php |
Logging support. | |
file | version.php |
Default log manager. | |
file | writer.php |
Log store writer interface. | |
Namespaces | |
tool_log\helper | |
| |
tool_log\local\privacy | |
| |
tool_log\log | |
| |
tool_log\plugininfo | |
| |
tool_log\privacy | |
| |
Classes | |
class | backup_tool_log_logstore_subplugin |
Parent class of all the logstore subplugin implementations. More... | |
class | restore_tool_log_logstore_subplugin |
Parent class of all the logstore subplugin implementations. More... | |
class | tool_log\local\privacy\helper |
Privacy helper class. More... | |
interface | tool_log\local\privacy\logstore_provider |
Logstore provider interface. More... | |
interface | tool_log\local\privacy\logstore_userlist_provider |
Logstore userlist provider interface. More... | |
class | tool_log\log\manager |
class | tool_log\log\observer |
interface | tool_log\log\store |
interface | tool_log\log\writer |
class | tool_log\plugininfo\logstore |
Plugin info class for logging store plugins. More... | |
class | tool_log\privacy\provider |
Data provider class. More... | |
class | tool_log_setting_managestores |
Functions | |
tool_log\helper::dispose () | |
Push any remaining events to the database. More... | |
tool_log\helper::flush () | |
Flush event buffer. | |
tool_log\helper::get_config ($name, $default=null) | |
Get a config value for the store. More... | |
tool_log\helper::helper_setup (\tool_log\log\manager $manager) | |
Setup store specific variables. More... | |
tool_log\helper::insert_event_entries ($evententries) | |
Bulk write a given array of events to the backend. More... | |
tool_log\helper::is_event_ignored (\core\event\base $event) | |
Should the event be ignored (== not logged)? More... | |
tool_log\helper::write (\core\event\base $event) | |
Write event in the store with buffering. More... | |
xmldb_tool_log_install () | |
Install the plugin. | |
xmldb_tool_log_upgrade ($oldversion) | |
Upgrade the plugin. More... | |
Variables | |
array | tool_log\helper::$buffersize |
$buffer buffer size of events. | |
string | tool_log\helper::$component |
$component Frankenstyle store name. | |
int | tool_log\helper::$count = 0 |
$count Counter. | |
bool | tool_log\helper::$jsonformat = false |
If true, writes JSON instead of PHP serialized data for 'other' field. | |
$observers | |
string | tool_log\helper::$store |
$store name of the store. | |
trait | tool_log\helper::buffered_writer |
Helper trait buffered_writer. More... | |
$plugin | component = 'tool_log' |
$plugin | requires = 2019111200 |
trait | tool_log\helper::store |
Helper trait store. More... | |
$plugin | version = 2019111800 |
tool_log\helper\dispose | ( | ) |
Push any remaining events to the database.
Insert_events() must be defined. override in stores if the store doesn't support buffering.
|
abstractprotected |
Get a config value for the store.
Api to get plugin config.
string | $name | Config name |
mixed | $default | default value |
mixed | config value if set, else the default value. |
string | $name | name of the config. |
null | mixed | $default | default value to return. |
mixed|null | return config value. |
|
protected |
Setup store specific variables.
tool_log\log\manager | $manager | manager instance. |
|
abstractprotected |
Bulk write a given array of events to the backend.
Stores must implement this.
array | $evententries | raw event data |
|
abstractprotected |
Should the event be ignored (== not logged)?
core\event\base | $event |
bool |
tool_log\helper\write | ( | \core\event\base | $event | ) |
Write event in the store with buffering.
Method insert_event_entries() must be defined.
core\event\base | $event |
void |
xmldb_tool_log_upgrade | ( | $oldversion | ) |
Upgrade the plugin.
int | $oldversion |
bool | always true |
$observers |
trait tool_log::helper\buffered_writer |
Helper trait buffered_writer.
Adds buffer support for the store.
trait tool_log::helper\store |
Helper trait store.
Adds some helper methods for stores.