Subversion Repositories Applications.papyrus

Rev

Rev 320 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 320 Rev 443
1
<?php
1
<?php
2
/* vim: set expandtab tabstop=4 shiftwidth=4: */
2
/* vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +----------------------------------------------------------------------+
3
// +----------------------------------------------------------------------+
4
// | PHP version 4.0                                                      |
4
// | PHP version 4.0                                                      |
5
// +----------------------------------------------------------------------+
5
// +----------------------------------------------------------------------+
6
// | Copyright (c) 1997-2003 The PHP Group                                |
6
// | Copyright (c) 1997-2003 The PHP Group                                |
7
// +----------------------------------------------------------------------+
7
// +----------------------------------------------------------------------+
8
// | This source file is subject to version 2.0 of the PHP license,       |
8
// | This source file is subject to version 2.0 of the PHP license,       |
9
// | that is bundled with this package in the file LICENSE, and is        |
9
// | that is bundled with this package in the file LICENSE, and is        |
10
// | available at through the world-wide-web at                           |
10
// | available at through the world-wide-web at                           |
11
// | http://www.php.net/license/2_02.txt.                                 |
11
// | http://www.php.net/license/2_02.txt.                                 |
12
// | If you did not receive a copy of the PHP license and are unable to   |
12
// | If you did not receive a copy of the PHP license and are unable to   |
13
// | obtain it through the world-wide-web, please send a note to          |
13
// | obtain it through the world-wide-web, please send a note to          |
14
// | license@php.net so we can mail you a copy immediately.               |
14
// | license@php.net so we can mail you a copy immediately.               |
15
// +----------------------------------------------------------------------+
15
// +----------------------------------------------------------------------+
16
// | Author: Alexey Borzov <borz_off@cs.msu.su>                           |
16
// | Author: Alexey Borzov <borz_off@cs.msu.su>                           |
17
// +----------------------------------------------------------------------+
17
// +----------------------------------------------------------------------+
18
//
18
//
19
// $Id: header.php,v 1.1 2005-03-30 08:50:33 jpm Exp $
19
// $Id: header.php,v 1.2 2005-09-20 17:01:22 ddelon Exp $
20
 
20
 
21
require_once 'HTML/QuickForm/static.php';
21
require_once 'HTML/QuickForm/static.php';
22
 
22
 
23
/**
23
/**
24
 * A pseudo-element used for adding headers to form  
24
 * A pseudo-element used for adding headers to form  
25
 *
25
 *
26
 * @author Alexey Borzov <borz_off@cs.msu.su>
26
 * @author Alexey Borzov <borz_off@cs.msu.su>
27
 * @access public
27
 * @access public
28
 */
28
 */
29
class HTML_QuickForm_header extends HTML_QuickForm_static
29
class HTML_QuickForm_header extends HTML_QuickForm_static
30
{
30
{
31
    // {{{ constructor
31
    // {{{ constructor
32
 
32
 
33
   /**
33
   /**
34
    * Class constructor
34
    * Class constructor
35
    * 
35
    * 
36
    * @param string $elementName    Header name
36
    * @param string $elementName    Header name
37
    * @param string $text           Header text
37
    * @param string $text           Header text
38
    * @access public
38
    * @access public
39
    * @return void
39
    * @return void
40
    */
40
    */
41
    function HTML_QuickForm_header($elementName = null, $text = null)
41
    function HTML_QuickForm_header($elementName = null, $text = null)
42
    {
42
    {
43
        $this->HTML_QuickForm_static($elementName, null, $text);
43
        $this->HTML_QuickForm_static($elementName, null, $text);
44
        $this->_type = 'header';
44
        $this->_type = 'header';
45
    }
45
    }
46
 
46
 
47
    // }}}
47
    // }}}
48
    // {{{ accept()
48
    // {{{ accept()
49
 
49
 
50
   /**
50
   /**
51
    * Accepts a renderer
51
    * Accepts a renderer
52
    *
52
    *
53
    * @param object     An HTML_QuickForm_Renderer object
53
    * @param object     An HTML_QuickForm_Renderer object
54
    * @access public
54
    * @access public
55
    * @return void 
55
    * @return void 
56
    */
56
    */
57
    function accept(&$renderer)
57
    function accept(&$renderer)
58
    {
58
    {
59
        $renderer->renderHeader($this);
59
        $renderer->renderHeader($this);
60
    } // end func accept
60
    } // end func accept
61
 
61
 
62
    // }}}
62
    // }}}
63
 
63
 
64
} //end class HTML_QuickForm_header
64
} //end class HTML_QuickForm_header
65
?>
65
?>