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


PHP Tracker::getPluginsNotToLoad方法代码示例

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


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

示例1: loadTrackerPlugins

 /**
  * @return array names of plugins that have been loaded
  */
 public function loadTrackerPlugins()
 {
     $this->unloadPlugins();
     $pluginsTracker = PiwikConfig::getInstance()->Plugins_Tracker['Plugins_Tracker'];
     if (empty($pluginsTracker)) {
         return array();
     }
     $pluginsTracker = array_diff($pluginsTracker, Tracker::getPluginsNotToLoad());
     $this->doNotLoadAlwaysActivatedPlugins();
     $this->loadPlugins($pluginsTracker);
     return $pluginsTracker;
 }
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:15,代码来源:Manager.php

示例2: loadTrackerPlugins

 /**
  * @return array names of plugins that have been loaded
  */
 public function loadTrackerPlugins()
 {
     $this->unloadPlugins();
     $pluginsTracker = PiwikConfig::getInstance()->Plugins_Tracker['Plugins_Tracker'];
     if (empty($pluginsTracker)) {
         return array();
     }
     $pluginsTracker = array_diff($pluginsTracker, Tracker::getPluginsNotToLoad());
     if (defined('PIWIK_TEST_MODE')) {
         $pluginsTracker = array_intersect($pluginsTracker, $this->getPluginsToLoadDuringTests());
     }
     $this->doNotLoadAlwaysActivatedPlugins();
     $this->loadPlugins($pluginsTracker);
     return $pluginsTracker;
 }
开发者ID:carriercomm,项目名称:piwik,代码行数:18,代码来源:Manager.php

示例3: loadTrackerPlugins

 /**
  * @return array names of plugins that have been loaded
  */
 public function loadTrackerPlugins()
 {
     $cache = new PersistentCache('PluginsTracker');
     if ($cache->has()) {
         $pluginsTracker = $cache->get();
     } else {
         $this->unloadPlugins();
         $this->loadActivatedPlugins();
         $pluginsTracker = array();
         foreach ($this->loadedPlugins as $pluginName => $plugin) {
             if ($this->isTrackerPlugin($plugin)) {
                 $pluginsTracker[] = $pluginName;
             }
         }
         if (!empty($pluginsTracker)) {
             $cache->set($pluginsTracker);
         }
     }
     $this->unloadPlugins();
     if (empty($pluginsTracker)) {
         return array();
     }
     $pluginsTracker = array_diff($pluginsTracker, Tracker::getPluginsNotToLoad());
     $this->doNotLoadAlwaysActivatedPlugins();
     $this->loadPlugins($pluginsTracker);
     return $pluginsTracker;
 }
开发者ID:TensorWrenchOSS,项目名称:piwik,代码行数:30,代码来源:Manager.php

示例4: initCorePiwikInTrackerMode

 /**
  * Used to initialize core Piwik components on a piwik.php request
  * Eg. when cache is missed and we will be calling some APIs to generate cache
  */
 public static function initCorePiwikInTrackerMode()
 {
     if (!empty($GLOBALS['PIWIK_TRACKER_MODE']) && self::$initTrackerMode === false) {
         self::$initTrackerMode = true;
         require_once PIWIK_INCLUDE_PATH . '/core/Loader.php';
         require_once PIWIK_INCLUDE_PATH . '/core/Option.php';
         $access = Access::getInstance();
         $config = Config::getInstance();
         try {
             $db = Db::get();
         } catch (Exception $e) {
             Db::createDatabaseObject();
         }
         $pluginsManager = \Piwik\Plugin\Manager::getInstance();
         $pluginsToLoad = Config::getInstance()->Plugins['Plugins'];
         $pluginsForcedNotToLoad = Tracker::getPluginsNotToLoad();
         $pluginsToLoad = array_diff($pluginsToLoad, $pluginsForcedNotToLoad);
         $pluginsToLoad = array_merge($pluginsToLoad, Tracker::getPluginsToLoad());
         $pluginsManager->loadPlugins($pluginsToLoad);
     }
 }
开发者ID:KiwiJuicer,项目名称:handball-dachau,代码行数:25,代码来源:Tracker.php


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