1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/10899] Refactoring in \phpbb\log\log_interface

PHPBB3-10899
This commit is contained in:
Tristan Darricau
2014-05-10 18:24:07 +02:00
parent c5a4ad3d31
commit c6d7875b9b
5 changed files with 100 additions and 34 deletions

View File

@@ -66,6 +66,18 @@ interface log_interface
*/
public function add($mode, $user_id, $log_ip, $log_operation, $log_time = false, $additional_data = array());
/**
* Delete entries in the logs
*
* @param string $mode The mode defines which log_type is used and from which log the entries are deleted
* @param array $conditions An array of conditions, 3 different forms are accepted
* 1) <key> => 'value> transformed into 'AND <key> = <value>' (value should be an integer)
* 2) <key> => array(<operator>, <value>) transformed into 'AND <key> <operator> <value>' (value should be an integer)
* 3) <key> => array(<values>) transformed into 'AND <key> IN <values>'
* A special field, keywords, can also be defined. In this case only the log entries that have the keywords in log_operation or log_data will be deleted.
*/
public function delete($mode, $conditions = array());
/**
* Grab the logs from the database
*