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


PHP Zend_Wildfire_Plugin_FirePhp_TableMessage::setHeader方法代码示例

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


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

示例1: __construct

 /**
  * Create ZFirebug_Controller_Plugin_Debug_Plugin_Variables
  *
  * @return void
  */
 public function __construct()
 {
     $this->message = new Zend_Wildfire_Plugin_FirePhp_TableMessage($this->getTab());
     $this->message->setBuffered(true);
     $this->message->setHeader(array('Key', 'Value'));
     $this->message->setOption('includeLineNumbers', false);
 }
开发者ID:vahid-sohrabloo,项目名称:ZFirebug,代码行数:12,代码来源:Variables.php

示例2: __construct

 /**
  * Create ZFirebug_Controller_Plugin_Debug_Plugin_Auth
  *
  * @var string $user
  * @var string $role
  * @return void
  */
 public function __construct(array $options = array())
 {
     $this->message = new Zend_Wildfire_Plugin_FirePhp_TableMessage($this->getTab());
     $this->message->setBuffered(true);
     $this->message->setHeader(array('Property', 'Value'));
     $this->message->setOption('includeLineNumbers', false);
     $this->_auth = Zend_Auth::getInstance();
 }
开发者ID:vahid-sohrabloo,项目名称:ZFirebug,代码行数:15,代码来源:Auth.php

示例3: __construct

 public function __construct()
 {
     $this->_message = new \Zend_Wildfire_Plugin_FirePhp_TableMessage('Doctrine Queries');
     $this->_message->setBuffered(true);
     $this->_message->setHeader(array('Time', 'Event', 'Parameters'));
     $this->_message->setOption('includeLineNumbers', false);
     \Zend_Wildfire_Plugin_FirePhp::getInstance()->send($this->_message, 'Doctrine Queries');
 }
开发者ID:raphaeldealmeida,项目名称:Demagogos,代码行数:8,代码来源:FirebugProfiler.php

示例4: __construct

 /**
  * Create ZFirebug_Controller_Plugin_Debug_Plugin_Registry
  *
  * @return void
  */
 public function __construct()
 {
     $this->message = new Zend_Wildfire_Plugin_FirePhp_TableMessage($this->getTab());
     $this->message->setBuffered(true);
     $this->message->setHeader(array('Key', 'Class'));
     $this->message->setOption('includeLineNumbers', false);
     $this->_registry = Zend_Registry::getInstance();
 }
开发者ID:vahid-sohrabloo,项目名称:ZFirebug,代码行数:13,代码来源:Registry.php

示例5: __construct

 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     $this->_label = 'SQLs SGDOC-e';
     $this->_message = new FirePhp_TableMessage('Doctrine2 Queries');
     $this->_message->setBuffered(true);
     $this->_message->setHeader(array('Time', 'Event', 'Parameters'));
     $this->_message->setOption('includeLineNumbers', false);
     $this->_setCriticalQueriesLogger();
     FirePhp::getInstance()->send($this->_message);
 }
开发者ID:sgdoc,项目名称:sgdoce-codigo,代码行数:15,代码来源:Firebug.php

示例6: __construct

 /**
  * Constructor
  */
 public function __construct()
 {
     $conn = Doctrine_Manager::connection();
     $conn->setListener($this->profiler = new Doctrine_Connection_Profiler());
     // setup firebug
     $this->message = new Zend_Wildfire_Plugin_FirePhp_TableMessage($this->label);
     $this->message->setBuffered(true);
     $this->message->setHeader(array('Time', 'Event', 'Parameters'));
     $this->message->setDestroy(true);
     $this->message->setOption('includeLineNumbers', false);
     Zend_Wildfire_Plugin_FirePhp::getInstance()->send($this->message);
 }
开发者ID:JellyBellyDev,项目名称:zle,代码行数:15,代码来源:DoctrineProfilerFirebug.php

示例7: __construct

 /**
  * Setting Options
  *
  * basePath:
  * This will normally not your document root of your webserver, its your
  * application root directory with /application, /library and /public
  *
  * library:
  * Your own library extension(s)
  *
  * @param array $options
  * @return void
  */
 public function __construct(array $options = array())
 {
     $this->message = new Zend_Wildfire_Plugin_FirePhp_TableMessage($this->getTab());
     $this->message->setBuffered(true);
     $this->message->setHeader(array('File'));
     $this->message->setOption('includeLineNumbers', false);
     isset($options['base_path']) || ($options['base_path'] = $_SERVER['DOCUMENT_ROOT']);
     isset($options['library']) || ($options['library'] = null);
     $this->_basePath = $options['base_path'];
     is_array($options['library']) || ($options['library'] = array($options['library']));
     $this->_library = array_merge($options['library'], array('Zend', 'ZFirebug'));
 }
开发者ID:vahid-sohrabloo,项目名称:ZFirebug,代码行数:25,代码来源:File.php

示例8: __construct

 /**
  * Constructor
  *
  * @param string $label OPTIONAL Label for the profiling info.
  * @return void
  */
 public function __construct($label = null)
 {
     $this->_label = $label;
     if (!$this->_label) {
         $this->_label = 'Imind_Profiler_Doctrine_Firebug';
     }
     if (!$this->_message) {
         $this->_message = new Zend_Wildfire_Plugin_FirePhp_TableMessage($this->_label);
         $this->_message->setBuffered(true);
         $this->_message->setHeader(array('Name', 'Time', 'Event', 'Parameters'));
         $this->_message->setDestroy(true);
         Zend_Wildfire_Plugin_FirePhp::getInstance()->send($this->_message);
     }
 }
开发者ID:esironal,项目名称:kebab-project,代码行数:20,代码来源:Firebug.php

示例9: setEnabled

 /**
  * Enable or disable the profiler.  If $enable is false, the profiler
  * is disabled and will not log any queries sent to it.
  *
  * @param  boolean $enable
  * @return Zend_Db_Profiler Provides a fluent interface
  */
 public function setEnabled($enable)
 {
     parent::setEnabled($enable);
     if ($this->getEnabled()) {
         if (!$this->_message) {
             $this->_message = new Zend_Wildfire_Plugin_FirePhp_TableMessage($this->_label);
             $this->_message->setBuffered(true);
             $this->_message->setHeader(array('Time', 'Event', 'Parameters'));
             $this->_message->setDestroy(true);
             Zend_Wildfire_Plugin_FirePhp::getInstance()->send($this->_message);
         }
     } else {
         if ($this->_message) {
             $this->_message->setDestroy(true);
             $this->_message = null;
         }
     }
     return $this;
 }
开发者ID:lortnus,项目名称:zf1,代码行数:26,代码来源:Firebug.php

示例10: debug

 /**
  * dump
  *
  * @return string
  */
 public static function debug()
 {
     $backtrace = debug_backtrace();
     // get variable name
     $arrLines = file($backtrace[0]["file"]);
     $code = $arrLines[$backtrace[0]["line"] - 1];
     $arrMatches = array();
     // find call to Sys::dump
     preg_match('/\\b\\s*Core_Debug::debug\\s*\\(\\s*(.+)\\s*\\);\\s*/i', $code, $arrMatches);
     $varName = isset($arrMatches[1]) ? $arrMatches[1] : '???';
     $trace = array();
     foreach ($backtrace as $rec) {
         if (isset($rec['function'])) {
             $t['call'] = '';
             if (isset($rec['class'])) {
                 $t['call'] .= $rec['class'] . $rec['type'] . $rec['function'];
             } else {
                 $t['call'] .= $rec['function'];
             }
             $t['call'] .= '(';
             if (sizeof($rec['args'])) {
                 foreach ($rec['args'] as $arg) {
                     if (is_object($arg)) {
                         $t['call'] .= get_class($arg);
                     } else {
                         $arg = str_replace("\n", ' ', (string) $arg);
                         $t['call'] .= '"' . (strlen($arg) <= 30 ? $arg : substr($arg, 0, 25) . '[...]') . '"';
                     }
                     $t['call'] .= ', ';
                 }
                 $t['call'] = substr($t['call'], 0, -2);
             }
             $t['call'] .= ")";
         }
         $t['file'] = @$rec['file'] . ':' . @$rec['line'];
         $trace[] = $t;
     }
     $debug = new Zend_Wildfire_Plugin_FirePhp_TableMessage('Debug');
     $debug->setBuffered(true);
     $debug->setHeader(array('Value and BackTrace'));
     $debug->setOption('includeLineNumbers', false);
     foreach (func_get_args() as $var) {
         $debug->addRow(array($var));
     }
     $debug->addRow(array($trace));
     $where = basename($backtrace[0]["file"]) . ':' . $backtrace[0]["line"];
     $debug->setLabel("Debug: {$varName} ({$where})");
     Zend_Wildfire_Plugin_FirePhp::getInstance()->send($debug);
 }
开发者ID:Aktubius,项目名称:zendframeworkmodification,代码行数:54,代码来源:Debug.php

示例11: display

 /**
  * Display profiling results and flush output buffer
  */
 public function display()
 {
     $firebugMessage = new Zend_Wildfire_Plugin_FirePhp_TableMessage($this->_renderCaption());
     $firebugMessage->setHeader(array_keys($this->_getColumns()));
     foreach ($this->_getTimers() as $timerId) {
         $row = array();
         foreach ($this->_getColumns() as $columnId) {
             $row[] = $this->_renderColumnValue($timerId, $columnId);
         }
         $firebugMessage->addRow($row);
     }
     Zend_Wildfire_Plugin_FirePhp::getInstance()->send($firebugMessage);
     // setup the wildfire channel
     $firebugChannel = Zend_Wildfire_Channel_HttpHeaders::getInstance();
     $firebugChannel->setRequest($this->_request ? $this->_request : new Zend_Controller_Request_Http());
     $firebugChannel->setResponse($this->_response ? $this->_response : new Zend_Controller_Response_Http());
     // flush the wildfire headers into the response object
     $firebugChannel->flush();
     // send the response headers
     $firebugChannel->getResponse()->sendHeaders();
     ob_end_flush();
 }
开发者ID:buttasg,项目名称:cowgirlk,代码行数:25,代码来源:Firebug.php

示例12: log

 public static function log($message, $levl = Zend_Log::INFO, $data = null)
 {
     if (Zend_Registry::isRegistered('logger')) {
         $logger = Zend_Registry::get('logger');
         /**
          * прислали что то на вардамп
          */
         if (null != $data) {
             /**
              * 
              * сделаем табличку
              * @var unknown_type
              */
             $_message = new Zend_Wildfire_Plugin_FirePhp_TableMessage($message);
             $_message->setHeader(array('Data'));
             $_message->addRow(array($data));
             $logger->log($_message, $levl);
         } else {
             $logger->log($message, $levl, $extras);
         }
     }
 }
开发者ID:nurikk,项目名称:EvilRocketFramework,代码行数:22,代码来源:Log.php

示例13: _constructFirePhp

 /**
  * Constructs the FirePHP messages.
  *
  * @param array $profiles
  * @param string $label
  * @return Zend_Wildfire_Plugin_FirePhp_TableMessage
  */
 private function _constructFirePhp(array $columns, $label, $setBuffer = true)
 {
     $msg = new Zend_Wildfire_Plugin_FirePhp_TableMessage($label);
     // If a message is buffered it can be updated for the duration
     // of the request and is only flushed at the end of the request.
     $msg->setBuffered($setBuffer);
     $msg->setHeader($columns);
     // Destroy the message to prevent delivery
     $msg->setOption('includeLineNumbers', false);
     Zend_Wildfire_Plugin_FirePhp::getInstance()->send($msg);
     return $msg;
 }
开发者ID:Lazaro-Gallo,项目名称:psmn,代码行数:19,代码来源:MySQLProfiling.php

示例14: testTableMessage2

 /**
  * @group ZF-6396
  */
 public function testTableMessage2()
 {
     $this->_setupWithoutFrontController();
     $channel = Zend_Wildfire_Channel_HttpHeaders::getInstance();
     $protocol = $channel->getProtocol(Zend_Wildfire_Plugin_FirePhp::PROTOCOL_URI);
     $table = new Zend_Wildfire_Plugin_FirePhp_TableMessage('TestMessage');
     $table->setHeader(array('col1', 'col2'));
     $table->setBuffered(true);
     Zend_Wildfire_Plugin_FirePhp::send($table);
     $cell = new ArrayObject();
     $cell->append("item1");
     $cell->append("item2");
     $table->addRow(array("row1", $cell));
     Zend_Wildfire_Channel_HttpHeaders::getInstance()->flush();
     $messages = $protocol->getMessages();
     $this->assertEquals($messages[Zend_Wildfire_Plugin_FirePhp::STRUCTURE_URI_FIREBUGCONSOLE][Zend_Wildfire_Plugin_FirePhp::PLUGIN_URI][0], '[{"Type":"TABLE","Label":"TestMessage"},[["col1","col2"],["row1",{"__className":"ArrayObject","undeclared:0":"item1","undeclared:1":"item2"}]]]');
 }
开发者ID:ThorstenSuckow,项目名称:conjoon,代码行数:20,代码来源:WildfireTest.php


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