diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2014-05-10 18:24:07 +0200 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2014-05-10 18:24:07 +0200 |
| commit | c6d7875b9b76a931e27e8dbf742ad7af25fe19cf (patch) | |
| tree | 07375bcbab50bd4904d903fd6a403cab03c3d8a1 /phpBB/phpbb/log/log_interface.php | |
| parent | c5a4ad3d31047f9580b19b3401ef523b0fd53733 (diff) | |
| download | forums-c6d7875b9b76a931e27e8dbf742ad7af25fe19cf.tar forums-c6d7875b9b76a931e27e8dbf742ad7af25fe19cf.tar.gz forums-c6d7875b9b76a931e27e8dbf742ad7af25fe19cf.tar.bz2 forums-c6d7875b9b76a931e27e8dbf742ad7af25fe19cf.tar.xz forums-c6d7875b9b76a931e27e8dbf742ad7af25fe19cf.zip | |
[ticket/10899] Refactoring in \phpbb\log\log_interface
PHPBB3-10899
Diffstat (limited to 'phpBB/phpbb/log/log_interface.php')
| -rw-r--r-- | phpBB/phpbb/log/log_interface.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/phpbb/log/log_interface.php b/phpBB/phpbb/log/log_interface.php index 420ba79691..dff43b946a 100644 --- a/phpBB/phpbb/log/log_interface.php +++ b/phpBB/phpbb/log/log_interface.php @@ -67,6 +67,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 * * @param string $mode The mode defines which log_type is used and ifrom which log the entry is retrieved |
