本文整理汇总了PHP中erLhcoreClassModule::cacheVersionSite方法的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassModule::cacheVersionSite方法的具体用法?PHP erLhcoreClassModule::cacheVersionSite怎么用?PHP erLhcoreClassModule::cacheVersionSite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类erLhcoreClassModule
的用法示例。
在下文中一共展示了erLhcoreClassModule::cacheVersionSite方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: moduleInit
public static function moduleInit($params = array())
{
$cfg = erConfigClassLhConfig::getInstance();
self::$debugEnabled = $cfg->getSetting('site', 'debug_output');
// Enable errors output before extensions intialization
if (self::$debugEnabled == true) {
@ini_set('error_reporting', E_ALL);
@ini_set('display_errors', 1);
}
self::$cacheInstance = CSCacheAPC::getMem();
self::$cacheVersionSite = self::$cacheInstance->getCacheVersion('site_version');
self::$defaultTimeZone = $cfg->getSetting('site', 'time_zone', false);
self::$dateFormat = $cfg->getSetting('site', 'date_format', false);
self::$dateHourFormat = $cfg->getSetting('site', 'date_hour_format', false);
self::$dateDateHourFormat = $cfg->getSetting('site', 'date_date_hour_format', false);
$url = erLhcoreClassURL::getInstance();
if (!isset($params['ignore_extensions'])) {
// Attatch extension listeners
self::attatchExtensionListeners();
}
self::$currentModuleName = preg_replace('/[^a-zA-Z0-9\\-_]/', '', $url->getParam('module'));
self::$currentView = preg_replace('/[^a-zA-Z0-9\\-_]/', '', $url->getParam('function'));
if (self::$currentModuleName == '' || (self::$currentModule = self::getModule(self::$currentModuleName)) === false) {
$params = $cfg->getOverrideValue('site', 'default_url');
if (self::$currentModuleName != '') {
header("HTTP/1.1 301 Moved Permanently");
self::redirect();
exit;
}
self::$currentView = $params['view'];
self::$currentModuleName = $params['module'];
erLhcoreClassChatEventDispatcher::getInstance()->dispatch('chat.core.default_url', array('url' => &$url));
self::$currentModule = self::getModule(self::$currentModuleName);
}
return self::runModule();
}
示例2: moduleInit
public static function moduleInit()
{
$url = erLhcoreClassURL::getInstance();
$cfg = erConfigClassLhConfig::getInstance();
self::$currentModuleName = preg_replace('/[^a-zA-Z0-9\\-_]/', '', $url->getParam('module'));
self::$currentView = preg_replace('/[^a-zA-Z0-9\\-_]/', '', $url->getParam('function'));
self::$cacheInstance = CSCacheAPC::getMem();
self::$cacheVersionSite = self::$cacheInstance->getCacheVersion('site_version');
self::$defaultTimeZone = $cfg->getSetting('site', 'time_zone', false);
self::$dateFormat = $cfg->getSetting('site', 'date_format', false);
self::$dateHourFormat = $cfg->getSetting('site', 'date_hour_format', false);
self::$dateDateHourFormat = $cfg->getSetting('site', 'date_date_hour_format', false);
if (self::$currentModuleName == '' || (self::$currentModule = self::getModule(self::$currentModuleName)) === false) {
$params = $cfg->getOverrideValue('site', 'default_url');
if (self::$currentModuleName != '') {
header("HTTP/1.1 301 Moved Permanently");
self::redirect();
exit;
}
self::$currentView = $params['view'];
self::$currentModuleName = $params['module'];
self::$currentModule = self::getModule(self::$currentModuleName);
}
return self::runModule();
}