// Add a buton to erase all log

This commit is contained in:
Rémi Gaillard committed 2013-09-05 15:58:36 +02:00
1 parent 6e5fb47642
commit 0f81518ba2
2 files changed
+15

No files matched your search

+5
View File
@@ -149,6 +149,11 @@ class LoggerCore extends ObjectModel
return $this->hash;
}
public static function eraseAllLogs()
{
return Db::getInstance()->execute('TRUNCATE TABLE '._DB_PREFIX_.'log');
}
/**
* check if this log message already exists in database.