You are here

public function InstapageCmsPluginDebugLogModel::clear in Instapage plugin 8.3

Same name and namespace in other branches
  1. 7.3 core/models/InstapageCmsPluginDebugLogModel.php \InstapageCmsPluginDebugLogModel::clear()

Clears the debug log.

File

core/models/InstapageCmsPluginDebugLogModel.php, line 87

Class

InstapageCmsPluginDebugLogModel
Class responsible for storing the data in debug log.

Code

public function clear() {
  $db = InstapageCmsPluginDBModel::getInstance();
  $sql = 'DELETE FROM ' . $db->debugTable;
  $db
    ->query($sql);
}