home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / HTML / QuickForm / html.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  2.1 KB  |  78 lines

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  3.  
  4. /**
  5.  * A pseudo-element used for adding raw HTML 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-2007 The PHP Group
  19.  * @license     http://www.php.net/license/3_01.txt PHP License 3.01
  20.  * @version     CVS: $Id: html.php,v 1.2 2007/05/29 18:34:36 avb Exp $
  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 raw HTML to form
  31.  * 
  32.  * Intended for use with the default renderer only, template-based
  33.  * ones may (and probably will) completely ignore this
  34.  *
  35.  * @category    HTML
  36.  * @package     HTML_QuickForm
  37.  * @author      Alexey Borzov <avb@php.net>
  38.  * @version     Release: 3.2.10
  39.  * @since       3.0
  40.  * @deprecated  Please use the templates rather than add raw HTML via this element
  41.  */
  42. class HTML_QuickForm_html extends HTML_QuickForm_static
  43. {
  44.     // {{{ constructor
  45.  
  46.    /**
  47.     * Class constructor
  48.     * 
  49.     * @param string $text   raw HTML to add
  50.     * @access public
  51.     * @return void
  52.     */
  53.     function HTML_QuickForm_html($text = null)
  54.     {
  55.         $this->HTML_QuickForm_static(null, null, $text);
  56.         $this->_type = 'html';
  57.     }
  58.  
  59.     // }}}
  60.     // {{{ accept()
  61.  
  62.    /**
  63.     * Accepts a renderer
  64.     *
  65.     * @param HTML_QuickForm_Renderer    renderer object (only works with Default renderer!)
  66.     * @access public
  67.     * @return void 
  68.     */
  69.     function accept(&$renderer)
  70.     {
  71.         $renderer->renderHtml($this);
  72.     } // end func accept
  73.  
  74.     // }}}
  75.  
  76. } //end class HTML_QuickForm_html
  77. ?>
  78.