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


PHP Debug::ajaxDetected方法代码示例

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


在下文中一共展示了Debug::ajaxDetected方法的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::ajaxDetected方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。