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


PHP IPSSetUp::is200plus方法代码示例

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


在下文中一共展示了IPSSetUp::is200plus方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: checkCaches

 /**
  * Check caches
  *
  * @return	@e void
  * @author	MattMecham
  * @access	protected
  */
 protected function checkCaches()
 {
     //-----------------------------------------
     // Check app cache data
     //-----------------------------------------
     $group_cache = self::$handles['caches']->getCache('group_cache');
     if (!is_array($group_cache) or !count($group_cache)) {
         /* Another catch for IPB 1.3 */
         if (IPS_IS_UPGRADER) {
             if (IPSSetUp::is200plus() !== TRUE) {
                 /* Er.. don't actually think we need 'em to be honest */
                 self::DB()->delete('cache_store', 'cs_key=\'group_cache\'');
                 self::DB()->build(array('select' => '*', 'from' => 'groups'));
                 self::DB()->execute();
                 $groups = array();
                 while ($row = self::DB()->fetch()) {
                     $groups[$row['g_id']] = $row;
                 }
                 self::DB()->insert('cache_store', array('cs_key' => 'group_cache', 'cs_value' => serialize($groups)));
             } else {
                 //$this->cache()->rebuildCache( 'group_cache', 'global' );
             }
         }
     }
     $app_cache = self::$handles['caches']->getCache('app_cache');
     //-----------------------------------------
     // Build app data and APP specific load requests
     //-----------------------------------------
     if (is_array($app_cache) and count($app_cache)) {
         foreach ($app_cache as $_app_dir => $_app_data) {
             if (!IPS_IS_TASK and IPS_AREA == 'public' && !$_app_data['app_public_title']) {
                 continue;
             }
             $_app_data['app_public_title'] = $_app_data['app_public_title'] ? $_app_data['app_public_title'] : $_app_data['app_title'];
             self::$applications[$_app_dir] = $_app_data;
         }
     }
     /* Sort by position */
     uasort(self::$applications, 'ipsRegistry::_appPositionSort');
 }
开发者ID:ConnorChristie,项目名称:GrabViews-Live,代码行数:47,代码来源:ipsRegistry_setup.php

示例2: checkCaches

 /**
  * Check caches
  *
  * @return	void
  * @author	MattMecham
  * @access	protected
  */
 protected function checkCaches()
 {
     //-----------------------------------------
     // Check app cache data
     //-----------------------------------------
     $group_cache = self::$handles['caches']->getCache('group_cache');
     if (!is_array($group_cache) or !count($group_cache)) {
         /* Another catch for IPB 1.3 */
         if (IPS_IS_UPGRADER) {
             if (IPSSetUp::is200plus() !== TRUE) {
                 /* Er.. don't actually think we need 'em to be honest */
                 self::DB()->delete('cache_store', 'cs_key=\'group_cache\'');
                 self::DB()->build(array('select' => '*', 'from' => 'groups'));
                 self::DB()->execute();
                 $groups = array();
                 while ($row = self::DB()->fetch()) {
                     $groups[$row['g_id']] = $row;
                 }
                 self::DB()->insert('cache_store', array('cs_key' => 'group_cache', 'cs_value' => serialize($groups)));
             } else {
                 //$this->cache()->rebuildCache( 'group_cache', 'global' );
             }
         }
     }
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:32,代码来源:ipsRegistry_setup.php


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