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


PHP Piwik::printSqlProfilingReportTracker方法代码示例

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


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

示例1: end

 /**
  * Cleanup
  */
 protected function end()
 {
     switch ($this->getState()) {
         case self::STATE_LOGGING_DISABLE:
             printDebug("Logging disabled, display transparent logo");
             break;
         case self::STATE_EMPTY_REQUEST:
             printDebug("Empty request => Piwik page");
             echo "<a href='/'>Piwik</a> is a free open source web <a href='http://piwik.org'>analytics</a> that lets you keep control of your data.";
             break;
         case self::STATE_NOSCRIPT_REQUEST:
         case self::STATE_NOTHING_TO_NOTICE:
         default:
             printDebug("Nothing to notice => default behaviour");
             break;
     }
     printDebug("End of the page.");
     if ($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) {
         if (isset(self::$db)) {
             self::$db->recordProfiling();
             Piwik::printSqlProfilingReportTracker(self::$db);
         }
     }
     self::disconnectDatabase();
 }
开发者ID:nomoto-ubicast,项目名称:piwik,代码行数:28,代码来源:Tracker.php

示例2: end

 /**
  * This is called at the end of the Generator script.
  * Calls the Profiler output if the profiler is enabled.
  * 
  * @return void
  */
 public function end()
 {
     Piwik_Tracker::disconnectDatabase();
     if ($this->profiling) {
         Piwik::printSqlProfilingReportTracker();
     }
 }
开发者ID:klando,项目名称:pgpiwik,代码行数:13,代码来源:Generator.php

示例3: end

 protected function end()
 {
     switch ($this->getState()) {
         case self::STATE_LOGGING_DISABLE:
             printDebug("Logging disabled, display transparent logo");
             $this->outputTransparentGif();
             break;
         case self::STATE_NO_GET_VARIABLE:
             printDebug("No get variables => Piwik page");
             echo "<a href='index.php'>Piwik</a> is a free open source <a href='http://piwik.org'>web analytics</a> alternative to Google analytics.";
             break;
         case self::STATE_TO_REDIRECT_URL:
             $this->sendHeader('Location: ' . $this->getUrlToRedirect());
             break;
         case self::STATE_NOTHING_TO_NOTICE:
         default:
             printDebug("Nothing to notice => default behaviour");
             $this->outputTransparentGif();
             break;
     }
     printDebug("End of the page.");
     if ($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) {
         Piwik::printSqlProfilingReportTracker(self::$db);
     }
     self::disconnectDatabase();
 }
开发者ID:klando,项目名称:pgpiwik,代码行数:26,代码来源:Tracker.php

示例4: end

 protected function end()
 {
     switch ($this->getState()) {
         case self::STATE_LOGGING_DISABLE:
             printDebug("Logging disabled, display transparent logo");
             $this->outputTransparentGif();
             break;
         case self::STATE_EMPTY_REQUEST:
             printDebug("Empty request => Piwik page");
             echo "<a href='/'>Piwik</a> is a free open source <a href='http://piwik.org'>web analytics</a> alternative to Google analytics.";
             break;
         case self::STATE_TO_REDIRECT_URL:
             $this->sendHeader('Location: ' . $this->getUrlToRedirect());
             break;
         case self::STATE_TRACK_ONLY:
             printDebug("Data push, tracking only");
             break;
         case self::STATE_NOSCRIPT_REQUEST:
         case self::STATE_NOTHING_TO_NOTICE:
         default:
             printDebug("Nothing to notice => default behaviour");
             $this->outputTransparentGif();
             break;
     }
     printDebug("End of the page.");
     if ($GLOBALS['PIWIK_TRACKER_DEBUG'] === true) {
         if (isset(self::$db)) {
             self::$db->recordProfiling();
             Piwik::printSqlProfilingReportTracker(self::$db);
         }
     }
     self::disconnectDatabase();
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:33,代码来源:Tracker.php


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