]> git.openstreetmap.org Git - chef.git/blob - cookbooks/dmca/files/default/html/HTML/QuickForm/header.php
Merge remote-tracking branch 'github/pull/183'
[chef.git] / cookbooks / dmca / files / default / html / HTML / QuickForm / header.php
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
3
4 /**
5  * A pseudo-element used for adding headers to form
6  * 
7  * PHP versions 4 and 5
8  *
9  * LICENSE: This source file is subject to version 3.01 of the PHP license
10  * that is available through the world-wide-web at the following URI:
11  * http://www.php.net/license/3_01.txt If you did not receive a copy of
12  * the PHP License and are unable to obtain it through the web, please
13  * send a note to license@php.net so we can mail you a copy immediately.
14  *
15  * @category    HTML
16  * @package     HTML_QuickForm
17  * @author      Alexey Borzov <avb@php.net>
18  * @copyright   2001-2011 The PHP Group
19  * @license     http://www.php.net/license/3_01.txt PHP License 3.01
20  * @version     CVS: $Id$
21  * @link        http://pear.php.net/package/HTML_QuickForm
22  */
23
24 /**
25  * HTML class for static data
26  */ 
27 require_once 'HTML/QuickForm/static.php';
28
29 /**
30  * A pseudo-element used for adding headers to form  
31  *
32  * @category    HTML
33  * @package     HTML_QuickForm
34  * @author      Alexey Borzov <avb@php.net>
35  * @version     Release: 3.2.16
36  * @since       3.0
37  */
38 class HTML_QuickForm_header extends HTML_QuickForm_static
39 {
40     // {{{ constructor
41
42    /**
43     * Class constructor
44     * 
45     * @param string $elementName    Header name
46     * @param string $text           Header text
47     * @access public
48     * @return void
49     */
50     function HTML_QuickForm_header($elementName = null, $text = null)
51     {
52         $this->HTML_QuickForm_static($elementName, null, $text);
53         $this->_type = 'header';
54     }
55
56     // }}}
57     // {{{ accept()
58
59    /**
60     * Accepts a renderer
61     *
62     * @param HTML_QuickForm_Renderer    renderer object
63     * @param bool $sc1                  unused, for signature compatibility
64     * @param bool $sc2                  unused, for signature compatibility
65     * @access public
66     * @return void 
67     */
68     function accept(&$renderer, $sc1 = false, $sc2 = null)
69     {
70         $renderer->renderHeader($this);
71     } // end func accept
72
73     // }}}
74
75 } //end class HTML_QuickForm_header
76 ?>