aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/log/log_interface.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-05-30 23:13:00 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-05-30 23:13:00 +0200
commit40218ba5e6597d0ea83fe154259f72ff8d8190c0 (patch)
treee11c3d0ddd49f7d225a8599f2e73731af9ae2dc4 /phpBB/phpbb/log/log_interface.php
parentbe52ea882ad55af8bd8a59814b11488025fb3563 (diff)
parent4b3bba6693d96fe5ce918a635af8ff5ec7a8c1f0 (diff)
downloadforums-40218ba5e6597d0ea83fe154259f72ff8d8190c0.tar
forums-40218ba5e6597d0ea83fe154259f72ff8d8190c0.tar.gz
forums-40218ba5e6597d0ea83fe154259f72ff8d8190c0.tar.bz2
forums-40218ba5e6597d0ea83fe154259f72ff8d8190c0.tar.xz
forums-40218ba5e6597d0ea83fe154259f72ff8d8190c0.zip
Merge pull request #2433 from Nicofuma/ticket/10899
[ticket/10899] Using Delete All in log viewer with keyword search * Nicofuma/ticket/10899: [ticket/10899] Update doc block [ticket/10899] Use isset($field_value['IN']) [ticket/10899] Add event core.delete_log [ticket/10899] Remove trailing ; [ticket/10899] Fix typo in the class name [ticket/10899] Add unit tests [ticket/10899] Get $phpbb_log from the container [ticket/10899] Remove extra ';' [ticket/10899] Typo [ticket/10899] Refactoring in \phpbb\log\log_interface [ticket/10899] Using Delete All in log viewer with keyword search
Diffstat (limited to 'phpBB/phpbb/log/log_interface.php')
-rw-r--r--phpBB/phpbb/log/log_interface.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/phpbb/log/log_interface.php b/phpBB/phpbb/log/log_interface.php
index 2a44ebecb6..5932f722aa 100644
--- a/phpBB/phpbb/log/log_interface.php
+++ b/phpBB/phpbb/log/log_interface.php
@@ -69,6 +69,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>' (values can't be an array)
+ * 3) <key> => array('IN' => 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