BaseRegistrationsTableForm.class.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * RegistrationsTable form base class.
  4. *
  5. * @package usic
  6. * @subpackage form
  7. * @author Your name here
  8. * @version SVN: $Id: sfPropelFormGeneratedTemplate.php 15484 2009-02-13 13:13:51Z fabien $
  9. */
  10. class BaseRegistrationsTableForm extends BaseFormPropel
  11. {
  12. public function setup()
  13. {
  14. $this->setWidgets(array(
  15. 'daytime' => new sfWidgetFormDateTime(),
  16. 'staff_login' => new sfWidgetFormInput(),
  17. 'registered_login' => new sfWidgetFormInputHidden(),
  18. ));
  19. $this->setValidators(array(
  20. 'daytime' => new sfValidatorDateTime(),
  21. 'staff_login' => new sfValidatorString(array('max_length' => 25)),
  22. 'registered_login' => new sfValidatorPropelChoice(array('model' => 'RegistrationsTable', 'column' => 'registered_login', 'required' => false)),
  23. ));
  24. $this->widgetSchema->setNameFormat('registrations_table[%s]');
  25. $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
  26. parent::setup();
  27. }
  28. public function getModelName()
  29. {
  30. return 'RegistrationsTable';
  31. }
  32. }