Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
tool_log\helper Namespace Reference

  More...

Functions

 dispose ()
 Push any remaining events to the database.
 
 flush ()
 Flush event buffer.
 
 get_config ($name, $default=null)
 Get a config value for the store.
 
 helper_setup (\tool_log\log\manager $manager)
 Setup store specific variables.
 
 insert_event_entries ($evententries)
 Bulk write a given array of events to the backend.
 
 is_event_ignored (\core\event\base $event)
 Should the event be ignored (== not logged)?
 
 write (\core\event\base $event)
 Write event in the store with buffering.
 

Variables

array $buffersize
 $buffer buffer size of events.
 
string $component
 $component Frankenstyle store name.
 
int $count = 0
 $count Counter.
 
bool $jsonformat = false
 If true, writes JSON instead of PHP serialized data for 'other' field.
 
string $store
 $store name of the store.
 
trait buffered_writer
 Helper trait buffered_writer.
 
trait store
 Helper trait store.
 

Detailed Description