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


PHP Piwik::postTestEvent方法代码示例

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


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

示例1: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     Piwik::postTestEvent("MySQLMetadataProvider.createDao", array(&$this->dataAccess));
     if ($this->dataAccess === null) {
         $this->dataAccess = new MySQLMetadataDataAccess();
     }
 }
开发者ID:carriercomm,项目名称:piwik,代码行数:10,代码来源:MySQLMetadataProvider.php

示例2: array

 /**
  * Returns a configuration value or section by name.
  *
  * @param string $name The value or section name.
  * @return string|array The requested value requested. Returned by reference.
  * @throws Exception If the value requested not found in either `config.ini.php` or
  *                   `global.ini.php`.
  * @api
  */
 public function &__get($name)
 {
     if (!$this->initialized) {
         $this->init();
         // must be called here, not in init(), since setTestEnvironment() calls init(). (this avoids
         // infinite recursion)
         Piwik::postTestEvent('Config.createConfigSingleton', array($this));
     }
     // check cache for merged section
     if (isset($this->configCache[$name])) {
         $tmp =& $this->configCache[$name];
         return $tmp;
     }
     $section = $this->getFromGlobalConfig($name);
     $sectionCommon = $this->getFromCommonConfig($name);
     if (empty($section) && !empty($sectionCommon)) {
         $section = $sectionCommon;
     } elseif (!empty($section) && !empty($sectionCommon)) {
         $section = $this->array_merge_recursive_distinct($section, $sectionCommon);
     }
     if (isset($this->configLocal[$name])) {
         // local settings override the global defaults
         $section = $section ? array_merge($section, $this->configLocal[$name]) : $this->configLocal[$name];
     }
     if ($section === null) {
         throw new Exception("Error while trying to read a specific config file entry <strong>'{$name}'</strong> from your configuration files.</b>If you just completed a Piwik upgrade, please check that the file config/global.ini.php was overwritten by the latest Piwik version.");
     }
     // cache merged section for later
     $this->configCache[$name] = $this->decodeValues($section);
     $tmp =& $this->configCache[$name];
     return $tmp;
 }
开发者ID:KiwiJuicer,项目名称:handball-dachau,代码行数:41,代码来源:Config.php

示例3: reloadAccessSuperUser

 /**
  * Reload super user access
  *
  * @return bool
  */
 protected function reloadAccessSuperUser()
 {
     $this->isSuperUser = true;
     try {
         $allSitesId = Plugins\SitesManager\API::getInstance()->getAllSitesId();
     } catch (\Exception $e) {
         $allSitesId = array();
     }
     $this->idsitesByAccess['superuser'] = $allSitesId;
     $this->login = Config::getInstance()->superuser['login'];
     Piwik::postTestEvent('Access.loadingSuperUserAccess', array(&$this->idsitesByAccess, &$this->login));
     return true;
 }
开发者ID:KiwiJuicer,项目名称:handball-dachau,代码行数:18,代码来源:Access.php

示例4: send

 public function send($transport = null)
 {
     if (defined('PIWIK_TEST_MODE')) {
         // hack
         Piwik::postTestEvent("Test.Mail.send", array($this));
     } else {
         return parent::send($transport);
     }
 }
开发者ID:diosmosis,项目名称:piwik,代码行数:9,代码来源:Mail.php

示例5: array

 /**
  * Returns a configuration value or section by name.
  *
  * @param string $name The value or section name.
  * @return string|array The requested value requested. Returned by reference.
  * @throws Exception If the value requested not found in either `config.ini.php` or
  *                   `global.ini.php`.
  * @api
  */
 public function &__get($name)
 {
     if (!$this->initialized) {
         $this->init();
         // must be called here, not in init(), since setTestEnvironment() calls init(). (this avoids
         // infinite recursion)
         Piwik::postTestEvent('Config.createConfigSingleton', array($this, &$this->configCache, &$this->configLocal));
     }
     // check cache for merged section
     if (isset($this->configCache[$name])) {
         $tmp =& $this->configCache[$name];
         return $tmp;
     }
     $section = $this->getFromGlobalConfig($name);
     $sectionCommon = $this->getFromCommonConfig($name);
     if (empty($section) && !empty($sectionCommon)) {
         $section = $sectionCommon;
     } elseif (!empty($section) && !empty($sectionCommon)) {
         $section = $this->array_merge_recursive_distinct($section, $sectionCommon);
     }
     if (isset($this->configLocal[$name])) {
         // local settings override the global defaults
         $section = $section ? array_merge($section, $this->configLocal[$name]) : $this->configLocal[$name];
     }
     if ($section === null && $name == 'superuser') {
         $user = $this->getConfigSuperUserForBackwardCompatibility();
         return $user;
     } else {
         if ($section === null) {
             $section = array();
         }
     }
     // cache merged section for later
     $this->configCache[$name] = $this->decodeValues($section);
     $tmp =& $this->configCache[$name];
     return $tmp;
 }
开发者ID:TensorWrenchOSS,项目名称:piwik,代码行数:46,代码来源:Config.php

示例6: array

 /**
  * Returns a configuration value or section by name.
  *
  * @param string $name The value or section name.
  * @return string|array The requested value requested. Returned by reference.
  * @throws Exception If the value requested not found in either `config.ini.php` or
  *                   `global.ini.php`.
  * @api
  */
 public function &__get($name)
 {
     if (!$this->initialized) {
         $this->reload(array($this->pathGlobal, $this->pathCommon), $this->pathLocal);
         // must be called here, not in init(), since setTestEnvironment() calls init(). (this avoids
         // infinite recursion)
         $allSettings =& $this->settings->getAll();
         Piwik::postTestEvent('Config.createConfigSingleton', array($this, &$allSettings));
     }
     $section =& $this->settings->get($name);
     return $section;
 }
开发者ID:bossrabbit,项目名称:piwik,代码行数:21,代码来源:Config.php


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