dummy
class dummy implements log_interface
Dummy logger
Methods
bool
is_enabled(string $type = '')
This function returns the state of the log system.
null
disable(mixed $type = '')
Disable log
null
enable(mixed $type = '')
Enable log
int|bool
add(string $mode, int $user_id, string $log_ip, string $log_operation, int|bool $log_time = false, array $additional_data = array())
Adds a log entry to the database
delete(string $mode, array $conditions = array())
Delete entries in the logs
array
get_logs(string $mode, bool $count_logs = true, int $limit = 0, int $offset = 0, mixed $forum_id = 0, int $topic_id = 0, int $user_id = 0, int $log_time = 0, string $sort_by = 'l.log_time DESC', string $keywords = '')
Grab the logs from the database
int
get_log_count()
Get total log count
int
get_valid_offset()
Get offset of the last valid page
Details
at line 24
bool
is_enabled(string $type = '')
This function returns the state of the log system.
at line 32
null
disable(mixed $type = '')
Disable log
This function allows disabling the log system or parts of it, for this page call. When add() is called and the type is disabled, the log will not be added to the database.
at line 39
null
enable(mixed $type = '')
Enable log
This function allows re-enabling the log system.
at line 46
int|bool
add(string $mode, int $user_id, string $log_ip, string $log_operation, int|bool $log_time = false, array $additional_data = array())
Adds a log entry to the database
at line 54
delete(string $mode, array $conditions = array())
Delete entries in the logs
at line 61
array
get_logs(string $mode, bool $count_logs = true, int $limit = 0, int $offset = 0, mixed $forum_id = 0, int $topic_id = 0, int $user_id = 0, int $log_time = 0, string $sort_by = 'l.log_time DESC', string $keywords = '')
Grab the logs from the database
at line 69
int
get_log_count()
Get total log count
at line 77
int
get_valid_offset()
Get offset of the last valid page