sfWidgetFormInputFile.class.php 975 B

1234567891011121314151617181920212223242526272829303132333435
  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. * sfWidgetFormInputFile represents an upload HTML input tag.
  11. *
  12. * @package symfony
  13. * @subpackage widget
  14. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  15. * @version SVN: $Id: sfWidgetFormInputFile.class.php 9046 2008-05-19 08:13:51Z FabianLange $
  16. */
  17. class sfWidgetFormInputFile 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('type', 'file');
  29. $this->setOption('needs_multipart', true);
  30. }
  31. }