HTML_QuickForm
[ class tree: HTML_QuickForm ] [ index: HTML_QuickForm ] [ all elements ]

Source for file reset.php

Documentation is available at reset.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP version 4.0                                                      |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997, 1998, 1999, 2000, 2001 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. // | Authors: Adam Daniel <adaniel1@eesus.jnj.com>                        |
  17. // |          Bertrand Mansion <bmansion@mamasam.com>                     |
  18. // +----------------------------------------------------------------------+
  19. //
  20. // $Id: reset.php,v 1.4 2003/06/18 19:36:20 avb Exp $
  21.  
  22. require_once("HTML/QuickForm/input.php");
  23.  
  24. /**
  25.  * HTML class for a reset type element
  26.  * 
  27.  * @author       Adam Daniel <adaniel1@eesus.jnj.com>
  28.  * @author       Bertrand Mansion <bmansion@mamasam.com>
  29.  * @version      1.1
  30.  * @since        PHP4.04pl1
  31.  * @access       public
  32.  */
  33. {
  34.     // {{{ constructor
  35.     
  36.     /**
  37.      * Class constructor
  38.      * 
  39.      * @param     string    $elementName    (optional)Input field name attribute
  40.      * @param     string    $value          (optional)Input field value
  41.      * @param     mixed     $attributes     (optional)Either a typical HTML attribute string
  42.      *                                       or an associative array
  43.      * @since     1.0
  44.      * @access    public
  45.      * @return    void 
  46.      */
  47.     function HTML_QuickForm_reset($elementName=null$value=null$attributes=null)
  48.     {
  49.         HTML_QuickForm_input::HTML_QuickForm_input($elementNamenull$attributes);
  50.         $this->setValue($value);
  51.         $this->setType('reset');
  52.     //end constructor
  53.  
  54.     // }}}
  55.     // {{{ freeze()
  56.  
  57.     /**
  58.      * Freeze the element so that only its value is returned
  59.      * 
  60.      * @access    public
  61.      * @return    void 
  62.      */
  63.     function freeze()
  64.     {
  65.         return false;
  66.     //end func freeze
  67.  
  68.     // }}}
  69.  
  70. //end class HTML_QuickForm_reset
  71. ?>

Documentation generated on Mon, 11 Mar 2019 14:16:36 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.