| 1 |
lars |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* Copyright (c) 2008-2009, Laurent Laville <pear@laurent-laville.org>
|
|
|
4 |
*
|
|
|
5 |
* All rights reserved.
|
|
|
6 |
*
|
|
|
7 |
* Redistribution and use in source and binary forms, with or without
|
|
|
8 |
* modification, are permitted provided that the following conditions
|
|
|
9 |
* are met:
|
|
|
10 |
*
|
|
|
11 |
* * Redistributions of source code must retain the above copyright
|
|
|
12 |
* notice, this list of conditions and the following disclaimer.
|
|
|
13 |
* * Redistributions in binary form must reproduce the above copyright
|
|
|
14 |
* notice, this list of conditions and the following disclaimer in the
|
|
|
15 |
* documentation and/or other materials provided with the distribution.
|
|
|
16 |
* * Neither the name of the authors nor the names of its contributors
|
|
|
17 |
* may be used to endorse or promote products derived from this software
|
|
|
18 |
* without specific prior written permission.
|
|
|
19 |
*
|
|
|
20 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
21 |
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
22 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
23 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
|
|
|
24 |
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
25 |
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
26 |
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
27 |
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
28 |
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
29 |
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
30 |
* POSSIBILITY OF SUCH DAMAGE.
|
|
|
31 |
*
|
|
|
32 |
* PHP versions 4 and 5
|
|
|
33 |
*
|
|
|
34 |
* @category PHP
|
|
|
35 |
* @package PHP_CompatInfo
|
|
|
36 |
* @author Laurent Laville <pear@laurent-laville.org>
|
|
|
37 |
* @license http://www.opensource.org/licenses/bsd-license.php BSD
|
|
|
38 |
* @version CVS: $Id: Null.php,v 1.5 2009/01/02 10:18:47 farell Exp $
|
|
|
39 |
* @link http://pear.php.net/package/PHP_CompatInfo
|
|
|
40 |
* @since File available since Release 1.8.0b2
|
|
|
41 |
*/
|
|
|
42 |
|
|
|
43 |
/**
|
|
|
44 |
* Null renderer for PHP_CompatInfo component.
|
|
|
45 |
*
|
|
|
46 |
* The PHP_CompatInfo_Renderer_Null class is a concrete implementation
|
|
|
47 |
* of PHP_CompatInfo_Renderer abstract class. It simply consumes output events.
|
|
|
48 |
*
|
|
|
49 |
* @category PHP
|
|
|
50 |
* @package PHP_CompatInfo
|
|
|
51 |
* @author Laurent Laville <pear@laurent-laville.org>
|
|
|
52 |
* @license http://www.opensource.org/licenses/bsd-license.php BSD
|
|
|
53 |
* @version Release: 1.9.0
|
|
|
54 |
* @link http://pear.php.net/package/PHP_CompatInfo
|
|
|
55 |
* @since Class available since Release 1.8.0b2
|
|
|
56 |
*/
|
|
|
57 |
class PHP_CompatInfo_Renderer_Null extends PHP_CompatInfo_Renderer
|
|
|
58 |
{
|
|
|
59 |
/**
|
|
|
60 |
* Null Renderer Class constructor (ZE1) for PHP4
|
|
|
61 |
*
|
|
|
62 |
* @param object &$parser Instance of the parser (model of MVC pattern)
|
|
|
63 |
* @param array $conf A hash containing any additional configuration
|
|
|
64 |
*
|
|
|
65 |
* @access public
|
|
|
66 |
* @since version 1.8.0b2 (2008-06-03)
|
|
|
67 |
*/
|
|
|
68 |
function PHP_CompatInfo_Renderer_Null(&$parser, $conf)
|
|
|
69 |
{
|
|
|
70 |
$this->__construct($parser, $conf);
|
|
|
71 |
}
|
|
|
72 |
|
|
|
73 |
/**
|
|
|
74 |
* Null Renderer Class constructor (ZE2) for PHP5+
|
|
|
75 |
*
|
|
|
76 |
* @param object &$parser Instance of the parser (model of MVC pattern)
|
|
|
77 |
* @param array $conf A hash containing any additional configuration
|
|
|
78 |
*
|
|
|
79 |
* @access public
|
|
|
80 |
* @since version 1.8.0b2 (2008-06-03)
|
|
|
81 |
*/
|
|
|
82 |
function __construct(&$parser, $conf)
|
|
|
83 |
{
|
|
|
84 |
parent::PHP_CompatInfo_Renderer($parser, $conf);
|
|
|
85 |
}
|
|
|
86 |
|
|
|
87 |
/**
|
|
|
88 |
* Consumes output events
|
|
|
89 |
*
|
|
|
90 |
* @access public
|
|
|
91 |
* @return void
|
|
|
92 |
* @since version 1.8.0RC1 (2008-07-01)
|
|
|
93 |
*/
|
|
|
94 |
function display()
|
|
|
95 |
{
|
|
|
96 |
}
|
|
|
97 |
}
|
|
|
98 |
?>
|