Пример #1
0
 protected function initTimeIsOptional(ComponentsValidator $validator)
 {
     if (!isset($this->timeIsOptionalComponentName)) {
         $this->timeIsOptional = FALSE;
     } else {
         $booleanComponent = $validator->getComponentByFormName($this->timeIsOptionalComponentName);
         $validator->validateComponent($booleanComponent);
         $this->timeIsOptional = $booleanComponent->getFormValue();
     }
 }
Пример #2
0
 public function onValidation(\Psc\Form\ComponentsValidator $validator)
 {
     // dependency zu yearKnown
     $this->setYearKnown($validator->validateComponent($validator->getComponentByFormName('yearKnown'))->getFormValue());
 }