本文整理匯總了PHP中Trace::addMessage方法的典型用法代碼示例。如果您正苦於以下問題:PHP Trace::addMessage方法的具體用法?PHP Trace::addMessage怎麽用?PHP Trace::addMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Trace
的用法示例。
在下文中一共展示了Trace::addMessage方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct($urlInfo = array())
{
parent::__construct();
//
if (!empty($urlInfo)) {
$this->aUrlInfo = $urlInfo;
}
$this->addGet('id', 'show');
Trace::addMessage('DB', '<strong>Старт контроллера</strong>');
}
示例2: toPreview
/**
* Дополняет sitemap данные данными из таблицы моделей. Если указан параметр $bWidthAdditional также берутся данные для парсинга
*
* @param $aData array массив данных
* @param $bWithAdditional bool подключать ли данные для парсинга
*/
public static function toPreview($aData, $bWithAdditional = false)
{
Trace::addMessage('DB', '<b>Старт метода Sitemap_PagesOperations::toPreview</b>');
$aResult = array();
$objectList = self::toObject($aData);
foreach ($aData as $key => $row) {
if (!isset($objectList[$key])) {
continue;
}
$obj = $objectList[$key];
if (!is_object($obj)) {
continue;
}
$aInsert = $row;
if ($bWithAdditional) {
$aInsert['additional'] = $objectList[$key]->getPreviewParseData();
} else {
$aInsert['document'] = $objectList[$key]->getData();
}
$aResult[] = $aInsert;
}
return $aResult;
}
示例3: processSecurity
protected function processSecurity()
{
$this->auth = CMSAuth::getInstance();
// ignore security settings in command line mode
if ($this->dispatcher->getRequest() instanceof \Faid\Request\CommandLineRequest) {
return;
}
if (self::isUnitTestsRunning()) {
return;
}
\Trace::addMessage('CMS', 'Проверка безопасности');
if ($this->dispatcher->getRequest() instanceof Request) {
$this->dispatcher->getRequest()->testForInjections();
$this->dispatchGranted = $this->showAuthScreenIfNecessary();
}
\Extasy\Audit\DDosDetector::detect();
}