sfWidgetFormInputHidden.class.php 976 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. /**
  10. * sfWidgetFormInputHidden represents a hidden HTML input tag.
  11. *
  12. * @package symfony
  13. * @subpackage widget
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. * @version SVN: $Id: sfWidgetFormInputHidden.class.php 9046 2008-05-19 08:13:51Z FabianLange $
  16. */
  17. class sfWidgetFormInputHidden extends sfWidgetFormInput
  18. {
  19. /**
  20. * @param array $options An array of options
  21. * @param array $attributes An array of default HTML attributes
  22. *
  23. * @see sfWidgetFormInput
  24. */
  25. protected function configure($options = array(), $attributes = array())
  26. {
  27. parent::configure($options, $attributes);
  28. $this->setOption('is_hidden', true);
  29. $this->setOption('type', 'hidden');
  30. }
  31. }