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


PHP FirePHP::trace方法代码示例

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


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

示例1: log

 /**
  * log to console directly with this method passing only the first required parameter and to change
  * the log type the third parameter according to allowed log types. pass a lable for second parameter
  * to describe the message send to console.
  *
  * @error 10908
  * @param null|mixed $mixed expects the message of any type to send to console
  * @param null|string $label expects the optional label to describe the first parameter
  * @param string $type expects the log type - see log type array
  * @param array $options expects optional parameters
  * @return void
  * @throws Xapp_Error
  */
 public function log($mixed = null, $label = null, $type = 'info', array $options = array())
 {
     $type = strtolower((string) $type);
     if (array_key_exists($type, self::$_typeMap)) {
         if ($type === 'ini') {
             $this->ini($mixed, $label, $options);
         }
         if ($label !== null) {
             $label = trim(trim($label), ':') . ':';
         }
         switch ($this->_driver) {
             case 'chromephp':
                 switch ($type) {
                     case $type === 'ungroup' || $mixed === null:
                         $this->console->groupEnd();
                         break;
                     case 'group':
                         $this->console->group($mixed);
                         break;
                     case 'trace':
                         $this->console->log((string) $label, $mixed, 'info');
                         break;
                     default:
                         $this->console->log((string) $label, $mixed, self::$_typeMap[$type]);
                 }
                 break;
             case 'firephp':
                 switch ($type) {
                     case $type === 'ungroup' || $mixed === null:
                         $this->console->groupEnd();
                         break;
                     case 'group':
                         $this->console->group($mixed, $options);
                         break;
                     case 'trace':
                         $this->console->trace($label);
                         break;
                     default:
                         $this->console->{$type}($mixed, (string) $label, $options);
                 }
                 break;
         }
     } else {
         throw new Xapp_Error(xapp_sprintf(_("xapp console log type: %s not supported"), $type), 1090801);
     }
 }
开发者ID:xamiro-dev,项目名称:xamiro,代码行数:59,代码来源:Console.php

示例2: deprecate

 /**
  * Flag a function as deprecated by placing this method inside it.
  *
  * @param string  $alternative an alternative function that should be used instead.
  * @param boolean $continue    true to die
  *
  * @return void
  */
 public static function deprecate($alternative = '', $continue = true)
 {
     if (!self::$_enabled) {
         return;
     }
     if (self::$ensureByGet && !isset($_GET['debug'])) {
         return;
     }
     $debug = new THEDEBUG\ADEBUG();
     /* Get the deprecated method/function name */
     $scope = $debug->getScope();
     /* You can not deprecate the global namespace */
     if ($scope->type === 'global') {
         return;
     }
     /* Write a nice message */
     $message = sprintf('Deprecated usage of %s "%s".', $scope->type, $scope->name);
     /* Add alternative hint if given */
     if (!empty($alternative)) {
         $message .= sprintf(' Please consider using "%s" instead.', $alternative);
     }
     /* Manipulate the offset so the debug will point to the deprecated method call */
     $debug->backTraceOffset++;
     $debug->setLineAndFile();
     /* Set the message, type and put */
     $debug->variable = $message;
     $debug->type = 'warning';
     $debug->variableType = 'string';
     $debug->put();
     if ($debug->modus === 'FirePHP') {
         self::$_FirePHP->trace('');
     }
     /* Die if continue is false */
     if (!$continue) {
         die;
     }
 }
开发者ID:xiphe,项目名称:thedebug,代码行数:45,代码来源:THEDEBUG.php

示例3: trace

 public function trace($Label)
 {
     parent::trace($Label);
     return $this;
 }
开发者ID:hkilter,项目名称:OpenSupplyChains,代码行数:5,代码来源:firephp.php


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