reset.php 911 B

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