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.  * @version    CVS: $Id: Common.php,v 1.1 2008/05/02 14:26:37 c0il Exp $
  14.  */
  15.  
  16. {
  17.     /**
  18.      * 
  19.      * @var Debug object
  20.      *  This is the debug object to render
  21.      */    
  22.     protected $DebugObject = null;
  23.  
  24.     /**
  25.      * Run-time configuration options.
  26.      *
  27.      * @var array 
  28.      * @access public
  29.      */
  30.     protected $options = array();
  31.  
  32.     /**
  33.      * Default configuration options.
  34.      *
  35.      * @See Debug/Renderer/*.php for the complete list of options
  36.      * @var array 
  37.      * @access public
  38.      */
  39.     protected $defaultOptions = array();
  40.  
  41.     /**
  42.      * Set run-time configuration options for the renderer
  43.      *
  44.      * @param array $options Run-time configuration options.
  45.      * @access public
  46.      */
  47.     public function setOptions($options = array())
  48.     {
  49.         $this->options = array_merge($this->defaultOptions$options);
  50.     }
  51.  
  52.     /**
  53.      * Default output function
  54.      */
  55.     public function __toString()
  56.     {
  57.         return '<pre>'
  58.             PHP_Debug::dumpVar(
  59.                 $this
  60.                 __CLASS__
  61.                 PHP_DEBUG_DUMP_ARR_STR
  62.             '<pre>';  
  63.     }
  64.  
  65.     /**
  66.      * PHP_DebugOutput class destructor
  67.      */
  68.     function __destruct()
  69.     {
  70.     }
  71. }

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