当前位置: 首页>>代码示例>>PHP>>正文


PHP erLhcoreClassModule::cacheInstance方法代码示例

本文整理汇总了PHP中erLhcoreClassModule::cacheInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP erLhcoreClassModule::cacheInstance方法的具体用法?PHP erLhcoreClassModule::cacheInstance怎么用?PHP erLhcoreClassModule::cacheInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在erLhcoreClassModule的用法示例。


在下文中一共展示了erLhcoreClassModule::cacheInstance方法的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();
 }
开发者ID:detain,项目名称:livehelperchat,代码行数:36,代码来源:lhmodule.php

示例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();
 }
开发者ID:sudogitguy,项目名称:livehelperchat,代码行数:25,代码来源:lhmodule.php


注:本文中的erLhcoreClassModule::cacheInstance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。