Beispiel #1
0
 /**
  * 
  * Modifies $this->_config after it has been built.
  * 
  * @return void
  * 
  */
 protected function _postConfig()
 {
     parent::_postConfig();
     if (empty($this->_config['output'])) {
         $mode = PHP_SAPI == 'cli' ? 'text' : 'html';
         $this->_config['output'] = $mode;
     }
 }
Beispiel #2
0
 /**
  * 
  * Post-construction tasks to complete object construction.
  * 
  * @return void
  * 
  */
 protected function _postConstruct()
 {
     parent::_postConstruct();
     $this->_response = Solar::dependency('Solar_Http_Response', $this->_config['response']);
     $this->_json = Solar::factory('Solar_Json');
     // Setup headers based on the wildfire standard
     $this->_response->setHeader('X-Wf-Protocol-1', 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2');
     $this->_response->setHeader('X-Wf-1-Plugin-1', 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3');
     $this->_response->setHeader('X-Wf-1-Structure-1', 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1');
 }
Beispiel #3
0
 /**
  * 
  * Post-construction tasks to complete object construction.
  * 
  * @return void
  * 
  */
 protected function _postConstruct()
 {
     parent::_postConstruct();
     $this->_response = Solar::dependency('Solar_Http_Response', $this->_config['response']);
     $this->_json = Solar::factory('Solar_Json');
     $this->_response->setHeader('X-FirePHP-Data-100000000001', '{');
     $this->_response->setHeader('X-FirePHP-Data-300000000001', '"FirePHP.Firebug.Console":[');
     $this->_response->setHeader('X-FirePHP-Data-399999999999', '["__SKIP__"]],');
     $this->_response->setHeader('X-FirePHP-Data-200000000001', '"FirePHP.Dump":{');
     $this->_response->setHeader('X-FirePHP-Data-299999999999', '"__SKIP__":"__SKIP__"},');
     $this->_response->setHeader('X-FirePHP-Data-999999999999', '"__SKIP__":"__SKIP__"}');
 }
Beispiel #4
0
 /**
  * 
  * Post-construction tasks to complete object construction.
  * 
  * @return void
  * 
  */
 protected function _postConstruct()
 {
     parent::_postConstruct();
     setcookie($this->_config['cookie'], null, 1);
     $this->_session = Solar::factory('Solar_Session', array('class' => 'Solar_Log_Adapter_Chromephp'));
     if (Solar_Registry::exists('chromephp_data')) {
         $this->_obj = Solar_Registry::get('chromephp_data');
     } else {
         $this->_obj = new StdClass();
         $this->_obj->data = array();
         $this->_obj->backtrace = array();
         $this->_obj->labels = array();
         $this->_obj->version = $this->_config['version'];
         Solar_Registry::set('chromephp_data', $this->_obj);
     }
 }
Beispiel #5
0
 /**
  * 
  * Post-construction tasks to complete object construction.
  * 
  * @return void
  * 
  */
 protected function _postConstruct()
 {
     parent::_postConstruct();
     $events = $this->_config['events'];
     // build each sub-adapter
     foreach ($this->_config['adapters'] as $config) {
         // extract adapter class from the config
         $class = $config['adapter'];
         unset($config['adapter']);
         // use default events?
         if (empty($config['events'])) {
             $config['events'] = $events;
         }
         // instantiate and retain the adapter
         $this->_adapters[] = Solar::factory($class, $config);
     }
 }
Beispiel #6
0
 protected function _postConstruct()
 {
     parent::_postConstruct();
     $this->_transport = Solar::factory('Solar_Mail_Transport', array('smtp' => Solar::factory('Solar_Smtp')));
 }
Beispiel #7
0
 /**
  * 
  * Post-construction tasks to complete object construction.
  * 
  * @return void
  * 
  */
 protected function _postConstruct()
 {
     parent::_postConstruct();
     $this->_file = $this->_config['file'];
 }
Beispiel #8
0
 /**
  * 
  * Constructor.  Detect output mode by SAPI if none is specified.
  * 
  * @param array $config User-defined configuration.
  * 
  */
 public function __construct($config = null)
 {
     parent::__construct($config);
 }