本文整理汇总了PHP中LogManager::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP LogManager::initialize方法的具体用法?PHP LogManager::initialize怎么用?PHP LogManager::initialize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LogManager
的用法示例。
在下文中一共展示了LogManager::initialize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
}
}
// caching security tokens for better performance
$oSecurityManager->cacheSecurity();
$ogSecurityManager->cacheSecurity();
// set content management mode - just view or direct edit
$attributes['cmsmode'] = isset($attributes['cmsmode']) ? $attributes['cmsmode'] : $fusebox['defaultCMSMode'];
// checking if user allowed to edit content
if ($ogSecurityManager->granted("ContentManagement") && $attributes['cmsmode'] == "EDIT") {
$oContentManager->fEditModeOn = true;
$oGraphicsManager->fEditModeOn = true;
$ogArticleManager->fEditModeOn = true;
}
// initializing log manager
$oLogManager = new LogManager($oDB, $oFuseaction, $oUser, $fusebox['tableLog'], $fusebox['logRotatePeriod'], $fusebox['logEvents']);
if (!$oLogManager->initialize()) {
_throw("FNoLogTable", "There is no log table \"{$fusebox['tableLog']}\" present in DB");
}
// logging new user in
if ($boolFreshUser) {
_log("New visitor " . $oUser->getFullName() . " just came in, welcome !", "INewVisitor");
_log($oUser->getFullName() . " uses " . $oUser->getUserAgent());
}
unset($boolFreshUser);
$oImageManager = new ImageManager();
$oFileManager = new FileManager();
$oSitemap = new SitemapManager($oDB, array('sitemap' => $fusebox['tableSitemap']));
if (!$oSitemap->initialize()) {
_throw("FCannotInitializeSitemapManager", $oSitemap->getLastError());
}
//TODO check if smarty has caching abilities