public static function InstapageCmsPluginHelper::writeDiagnostics in Instapage plugin 8.3
Same name and namespace in other branches
- 7.3 core/InstapageCmsPluginHelper.php \InstapageCmsPluginHelper::writeDiagnostics()
Writes an entry in debug log, if diagnostic mode is on.
Parameters
mixed $value Value to be stored.:
string $name Name of the value. Default: ''.:
27 calls to InstapageCmsPluginHelper::writeDiagnostics()
- InstapageCmsPluginAjaxController::doAction in core/
InstapageCmsPluginAjaxController.php - Executes an action set in the request.
- InstapageCmsPluginAjaxController::getStats in core/
InstapageCmsPluginAjaxController.php - Gets the stats of landing pages from local cache or from app, if cache is not present / invalid.
- InstapageCmsPluginAjaxController::loadEditPage in core/
InstapageCmsPluginAjaxController.php - Loads edit page.
- InstapageCmsPluginAjaxController::loadListPages in core/
InstapageCmsPluginAjaxController.php - Loads listing page.
- InstapageCmsPluginAPIModel::apiCall in core/
models/ InstapageCmsPluginAPIModel.php - Performs the request to Instapage app.
File
- core/
InstapageCmsPluginHelper.php, line 379
Class
- InstapageCmsPluginHelper
- Helper containing commonly used static functions.
Code
public static function writeDiagnostics($value, $name = '') {
$log = InstapageCmsPluginDebugLogModel::getInstance();
if ($log
->isDiagnosticMode()) {
$log
->write($value, $name);
}
}