當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Debug::firebugDetected方法代碼示例

本文整理匯總了PHP中Debug::firebugDetected方法的典型用法代碼示例。如果您正苦於以下問題:PHP Debug::firebugDetected方法的具體用法?PHP Debug::firebugDetected怎麽用?PHP Debug::firebugDetected使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Debug的用法示例。


在下文中一共展示了Debug::firebugDetected方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _init

 public static function _init()
 {
     self::$time = microtime(TRUE);
     self::$consoleMode = PHP_SAPI === 'cli';
     self::$productionMode = self::DETECT;
     self::$firebugDetected = isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'FirePHP/');
     self::$ajaxDetected = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest';
     self::addPanel(new DebugPanel('time', array(__CLASS__, 'getDefaultPanel')));
     self::addPanel(new DebugPanel('memory', array(__CLASS__, 'getDefaultPanel')));
     self::addPanel(new DebugPanel('errors', array(__CLASS__, 'getDefaultPanel')));
     self::addPanel(new DebugPanel('dumps', array(__CLASS__, 'getDefaultPanel')));
     register_shutdown_function(array(__CLASS__, '_shutdownHandler'));
 }
開發者ID:vrana,項目名稱:dibi,代碼行數:13,代碼來源:Debug.php

示例2: _init

 public static function _init()
 {
     self::$time = microtime(TRUE);
     self::$consoleMode = PHP_SAPI === 'cli';
     self::$productionMode = self::DETECT;
     if (self::$consoleMode) {
         self::$source = empty($_SERVER['argv']) ? 'cli' : 'cli: ' . $_SERVER['argv'][0];
     } else {
         self::$firebugDetected = isset($_SERVER['HTTP_X_FIRELOGGER']);
         self::$ajaxDetected = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest';
         if (isset($_SERVER['REQUEST_URI'])) {
             self::$source = (isset($_SERVER['HTTPS']) && strcasecmp($_SERVER['HTTPS'], 'off') ? 'https://' : 'http://') . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '')) . $_SERVER['REQUEST_URI'];
         }
     }
     $tab = array(__CLASS__, 'renderTab');
     $panel = array(__CLASS__, 'renderPanel');
     self::addPanel(new DebugPanel('time', $tab, $panel));
     self::addPanel(new DebugPanel('memory', $tab, $panel));
     self::addPanel(new DebugPanel('errors', $tab, $panel));
     self::addPanel(new DebugPanel('dumps', $tab, $panel));
 }
開發者ID:kravco,項目名稱:dibi,代碼行數:21,代碼來源:Debug.php

示例3: init

 /**
  * Static class constructor.
  */
 public static function init()
 {
     self::$time = microtime(TRUE);
     self::$consoleMode = PHP_SAPI === 'cli';
     self::$productionMode = self::DETECT;
     self::$firebugDetected = isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'FirePHP/');
     self::$ajaxDetected = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest';
 }
開發者ID:jakubkulhan,項目名稱:shopaholic,代碼行數:11,代碼來源:Debug.php

示例4: microtime

 static function _init()
 {
     self::$time = microtime(TRUE);
     self::$consoleMode = PHP_SAPI === 'cli';
     self::$productionMode = self::DETECT;
     self::$firebugDetected = isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'FirePHP/');
     self::$ajaxDetected = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest';
     register_shutdown_function(array(__CLASS__, '_shutdownHandler'));
 }
開發者ID:romcok,項目名稱:google-translator,代碼行數:9,代碼來源:loader.php

示例5: microtime

 static function _init()
 {
     self::$time = microtime(TRUE);
     self::$consoleMode = PHP_SAPI === 'cli';
     self::$productionMode = self::DETECT;
     self::$firebugDetected = isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'FirePHP/');
     self::$ajaxDetected = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest';
     $tab = array(__CLASS__, 'renderTab');
     $panel = array(__CLASS__, 'renderPanel');
     self::addPanel(new DebugPanel('time', $tab, $panel));
     self::addPanel(new DebugPanel('memory', $tab, $panel));
     self::addPanel(new DebugPanel('errors', $tab, $panel));
     self::addPanel(new DebugPanel('dumps', $tab, $panel));
 }
開發者ID:xixixao,項目名稱:chytrapalice,代碼行數:14,代碼來源:loader.php

示例6: microtime

 static function _init()
 {
     self::$time = microtime(TRUE);
     self::$consoleMode = PHP_SAPI === 'cli';
     self::$productionMode = self::DETECT;
     self::$firebugDetected = isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], 'FirePHP/');
     self::$ajaxDetected = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] === 'XMLHttpRequest';
     if (isset($_SERVER['REQUEST_URI'])) {
         self::$uri = (isset($_SERVER['HTTPS']) && strcasecmp($_SERVER['HTTPS'], 'off') ? 'https://' : 'http://') . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : '')) . $_SERVER['REQUEST_URI'];
     }
     $tab = array(__CLASS__, 'renderTab');
     $panel = array(__CLASS__, 'renderPanel');
     self::addPanel(new DebugPanel('time', $tab, $panel));
     self::addPanel(new DebugPanel('memory', $tab, $panel));
     self::addPanel(new DebugPanel('errors', $tab, $panel));
     self::addPanel(new DebugPanel('dumps', $tab, $panel));
 }
開發者ID:jiriknesl,項目名稱:mvc-exception-demo,代碼行數:17,代碼來源:loader.php


注:本文中的Debug::firebugDetected方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。