PHP_Debug
[ class tree: PHP_Debug ] [ index: PHP_Debug ] [ all elements ]

Source for file Common.php

Documentation is available at Common.php

  1. <?php
  2.  
  3. /**
  4.  * A base class for Debug renderers, must be inherited by all such.
  5.  *
  6.  * @package PHP_Debug
  7.  * @category PHP
  8.  * @author Loic Vernet <qrf_coil at yahoo dot fr>
  9.  * @since V2.0.0 - 10 Apr 2006
  10.  * 
  11.  * @package PHP_Debug
  12.  * @filesource
  13.  */
  14.  
  15. {
  16.     /**
  17.      * 
  18.      * @var Debug object
  19.      *  This is the debug object to render
  20.      */    
  21.     protected $DebugObject = null;
  22.  
  23.     /**
  24.      * Run-time configuration options.
  25.      *
  26.      * @var array 
  27.      * @access public
  28.      */
  29.     protected $options = array();
  30.  
  31.     /**
  32.      * Default configuration options.
  33.      *
  34.      * @See Debug/Renderer/*.php for the complete list of options
  35.      * @var array 
  36.      * @access public
  37.      */
  38.     protected $defaultOptions = array();
  39.  
  40.     /**
  41.      * Set run-time configuration options for the renderer
  42.      *
  43.      * @param array $options Run-time configuration options.
  44.      * @access public
  45.      */
  46.     public function setOptions($options = array())
  47.     {
  48.         $this->options = array_merge($this->defaultOptions$options);
  49.     }
  50.  
  51.     /**
  52.      * Default output function
  53.      */
  54.     public function __toString()
  55.     {
  56.         return '<pre>'
  57.             PHP_Debug::dumpVar(
  58.                 $this
  59.                 __CLASS__
  60.                 PHP_DEBUG_DUMP_ARR_STR
  61.             '<pre>';  
  62.     }
  63.  
  64.     /**
  65.      * PHP_DebugOutput class destructor
  66.      */
  67.     function __destruct()
  68.     {
  69.     }
  70. }

Documentation generated on Mon, 11 Mar 2019 15:14:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.