You are here

public function InstapageCmsPluginDebugLogModel::read in Instapage plugin 8.3

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

Gets the entries from debug log.

Return value

array List of entries.

1 call to InstapageCmsPluginDebugLogModel::read()
InstapageCmsPluginDebugLogModel::getLogHTML in core/models/InstapageCmsPluginDebugLogModel.php
Gets the HTML with debug log. Template for th og is in /templates/log.php file.

File

core/models/InstapageCmsPluginDebugLogModel.php, line 98

Class

InstapageCmsPluginDebugLogModel
Class responsible for storing the data in debug log.

Code

public function read() {
  $db = InstapageCmsPluginDBModel::getInstance();
  $sql = 'SELECT * FROM ' . $db->debugTable;
  $results = $db
    ->getResults($sql);
  return $results;
}