reset.php 1016 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. class HTML_QuickForm_reset extends HTML_QuickForm_button
  3. {
  4. // {{{ constructor
  5. /**
  6. * Class constructor
  7. *
  8. * @param string $elementName (optional)Input field name attribute
  9. * @param string $value (optional)Input field value
  10. * @param mixed $attributes (optional)Either a typical HTML attribute string
  11. * or an associative array
  12. * @since 1.0
  13. * @access public
  14. * @return void
  15. */
  16. public function __construct($elementName=null, $value=null, $attributes=null)
  17. {
  18. parent::__construct($elementName, null, $attributes);
  19. $this->setValue($value);
  20. $this->setType('reset');
  21. } //end constructor
  22. // }}}
  23. // {{{ freeze()
  24. /**
  25. * Freeze the element so that only its value is returned
  26. *
  27. * @access public
  28. * @return void
  29. */
  30. function freeze()
  31. {
  32. return false;
  33. } //end func freeze
  34. // }}}
  35. }