InputField.php 626 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Symfony\Components\Form;
  3. /**
  4. * Base class for all low-level fields represented by input tags
  5. *
  6. * @author Bernhard Schussek <bernhard.schussek@symfony-project.com>
  7. */
  8. abstract class InputField extends Field
  9. {
  10. /**
  11. * {@inheritDoc}
  12. */
  13. public function render(array $attributes = array())
  14. {
  15. return $this->generator->tag('input', array_merge(array(
  16. 'id' => $this->getId(),
  17. 'name' => $this->getName(),
  18. 'value' => $this->getDisplayedData(),
  19. 'disabled' => $this->isDisabled(),
  20. ), $attributes));
  21. }
  22. }