You are here

public static function InstapageCmsPluginDebugLogModel::getInstance in Instapage plugin 8.3

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

Gets the class instance.

Return value

object Class instance.

4 calls to InstapageCmsPluginDebugLogModel::getInstance()
InstapageCmsPluginAjaxController::doAction in core/InstapageCmsPluginAjaxController.php
Executes an action set in the request.
InstapageCmsPluginAjaxController::getLog in core/InstapageCmsPluginAjaxController.php
Gets the debug log stored in the DB.
InstapageCmsPluginHelper::writeDiagnostics in core/InstapageCmsPluginHelper.php
Writes an entry in debug log, if diagnostic mode is on.
InstapageCmsPluginHelper::writeLog in core/InstapageCmsPluginHelper.php
Writes an entry in debug log.

File

core/models/InstapageCmsPluginDebugLogModel.php, line 18

Class

InstapageCmsPluginDebugLogModel
Class responsible for storing the data in debug log.

Code

public static function getInstance() {
  if (self::$debugLogModel === null) {
    self::$debugLogModel = new InstapageCmsPluginDebugLogModel();
  }
  return self::$debugLogModel;
}