コード例 #1
0
 public function configure()
 {
     $this->widgetSchema['course_id'] = new sfWidgetFormChoice(array('choices' => $this->courseArray));
     $this->validatorSchema['course_id'] = new sfValidatorString();
     $this->widgetSchema['grade_id'] = new sfWidgetFormChoice(array('choices' => FormChoices::getGradeChoicesAsArray($this->gradeChoices)));
     $this->validatorSchema['grade_id'] = new sfValidatorNumber();
     $this->widgetSchema['student_id'] = new sfWidgetFormInputHidden(array(), array('value' => $this->studentId));
     $this->validatorSchema['student_id'] = new sfValidatorNumber();
     $this->widgetSchema['registration_id'] = new sfWidgetFormInputHidden(array(), array('value' => $this->registrationId));
     $this->validatorSchema['registration_id'] = new sfValidatorNumber();
     $this->widgetSchema->setNameFormat('exemptionsubmissionform[%s]');
 }