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