當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。