header.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP version 4.0 |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2003 The PHP Group |
  7. // +----------------------------------------------------------------------+
  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 |
  10. // | available at through the world-wide-web at |
  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 |
  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. |
  15. // +----------------------------------------------------------------------+
  16. // | Author: Alexey Borzov <borz_off@cs.msu.su> |
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id: header.php 6184 2005-09-07 10:08:17Z bmol $
  20. require_once 'HTML/QuickForm/static.php';
  21. /**
  22. * A pseudo-element used for adding headers to form
  23. *
  24. * @author Alexey Borzov <borz_off@cs.msu.su>
  25. * @access public
  26. */
  27. class HTML_QuickForm_header extends HTML_QuickForm_static
  28. {
  29. // {{{ constructor
  30. /**
  31. * Class constructor
  32. *
  33. * @param string $elementName Header name
  34. * @param string $text Header text
  35. * @access public
  36. * @return void
  37. */
  38. function HTML_QuickForm_header($elementName = null, $text = null)
  39. {
  40. $this->HTML_QuickForm_static($elementName, null, $text);
  41. $this->_type = 'header';
  42. }
  43. // }}}
  44. // {{{ accept()
  45. /**
  46. * Accepts a renderer
  47. *
  48. * @param object An HTML_QuickForm_Renderer object
  49. * @access public
  50. * @return void
  51. */
  52. function accept(&$renderer)
  53. {
  54. $renderer->renderHeader($this);
  55. } // end func accept
  56. // }}}
  57. } //end class HTML_QuickForm_header
  58. ?>