Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | List of all members
core\log\manager Interface Reference

Interface describing log readers. More...

Inheritance diagram for core\log\manager:
core\log\dummy_manager tool_log\log\manager

Public Member Functions

 dispose ()
 Dispose all initialised stores. More...
 
 get_readers ($interface=null)
 Return list of available log readers. More...
 
 get_supported_logstores ($component)
 For a given report, returns a list of log stores that are supported. More...
 

Detailed Description

Interface describing log readers.

This is intended for reports, use get_log_manager() to get the configured instance.

Member Function Documentation

◆ dispose()

core\log\manager::dispose ( )

Dispose all initialised stores.

Return values
void

Implemented in tool_log\log\manager, and core\log\dummy_manager.

◆ get_readers()

core\log\manager::get_readers (   $interface = null)

Return list of available log readers.

Parameters
string$interfaceAll returned readers must implement this interface.
Return values
core::log::reader[]

Implemented in tool_log\log\manager, and core\log\dummy_manager.

◆ get_supported_logstores()

core\log\manager::get_supported_logstores (   $component)

For a given report, returns a list of log stores that are supported.

Parameters
string$componentcomponent.
Return values
false|arraylist of logstores that support the given report. It returns false if the given $component doesn't require logstores.

Implemented in tool_log\log\manager, and core\log\dummy_manager.


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