html.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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: html.php 6184 2005-09-07 10:08:17Z bmol $
  20. require_once 'HTML/QuickForm/static.php';
  21. /**
  22. * A pseudo-element used for adding raw HTML to form
  23. *
  24. * Intended for use with the default renderer only, template-based
  25. * ones may (and probably will) completely ignore this
  26. *
  27. * @author Alexey Borzov <borz_off@cs.msu.su>
  28. * @access public
  29. */
  30. class HTML_QuickForm_html extends HTML_QuickForm_static
  31. {
  32. // {{{ constructor
  33. /**
  34. * Class constructor
  35. *
  36. * @param string $text raw HTML to add
  37. * @access public
  38. * @return void
  39. */
  40. function HTML_QuickForm_html($text = null)
  41. {
  42. $this->HTML_QuickForm_static(null, null, $text);
  43. $this->_type = 'html';
  44. }
  45. // }}}
  46. // {{{ accept()
  47. /**
  48. * Accepts a renderer
  49. *
  50. * @param object An HTML_QuickForm_Renderer object
  51. * @access public
  52. * @return void
  53. */
  54. function accept(&$renderer)
  55. {
  56. $renderer->renderHtml($this);
  57. } // end func accept
  58. // }}}
  59. } //end class HTML_QuickForm_header
  60. ?>