/**
  * {@inheritDoc}
  */
 public function getFormOptions($step, array $options = array())
 {
     $options = parent::getFormOptions($step, $options);
     $options['cascade_validation'] = true;
     $options['flowStep'] = $step;
     return $options;
 }
Beispiel #2
0
 public function getFormOptions($step, array $options = array())
 {
     $options = parent::getFormOptions($step, $options);
     $options['cascade_validation'] = true;
     $options['data_class'] = 'VirtualniNemocnice\\AppBundle\\Document\\Question';
     return $options;
 }
 /**
  * {@inheritDoc}
  */
 public function getFormOptions($step, array $options = array())
 {
     $options = parent::getFormOptions($step, $options);
     if ($step === 3) {
         $options['isBugReport'] = $this->getFormData()->isBugReport();
     }
     return $options;
 }
 /**
  * {@inheritDoc}
  */
 public function getFormOptions($step, array $options = array())
 {
     $options = parent::getFormOptions($step, $options);
     $options['cascade_validation'] = true;
     $options['flowStep'] = $step;
     if ($step === 3) {
         $options['isBugReport'] = $this->getFormData()->isBugReport();
     }
     return $options;
 }
 public function getFormOptions($formData, $step, array $options = array())
 {
     $options = parent::getFormOptions($formData, $step, $options);
     if ($step > 0) {
         $options['contract'] = $formData->getContract();
     }
     if ($step > 1) {
         // $options['program'] = $formData->getProgram();
     }
     if ($step > 3) {
         // $options['studentDateOfBirth'] = $formData->getStudentDateOfBirth();
     }
     return $options;
 }
 public function getFormOptions($formData, $step, array $options = array())
 {
     $options = parent::getFormOptions($formData, $step, $options);
     if ($step > 0) {
         $options['school'] = $formData->getSchool();
     }
     if ($step > 1) {
         $options['program'] = $formData->getProgram();
     }
     if ($step > 2) {
         $options['programExcludes'] = $formData->getProgramExcludes();
     }
     if ($step > 3) {
         // $options['studentDateOfBirth'] = $formData->getStudentDateOfBirth();
         $options['student'] = $formData->getStudentContact();
         $options['programDiscountTypeFilters'] = $formData->getProgramDiscountTypeFilters();
     }
     return $options;
 }
 public function getFormOptions($formData, $step, array $options = array())
 {
     $options = parent::getFormOptions($formData, $step, $options);
     if ($step > 0) {
         $options['contract'] = $formData->getContract();
         $options['student'] = $formData->getContract()->getStudents()->first();
         $options['school'] = $formData->getContract()->getSchool();
     }
     if ($step > 1) {
         $options['program'] = $formData->getProgram();
         // $options['programExcludes'] = $formData->getProgramExcludes();
         $options['programDiscountTypeFilters'] = $formData->getProgramDiscountTypeFilters();
     }
     if ($step > 4) {
         $options['programPaymentPlan'] = $formData->getProgramPaymentPlan();
         // ld($options['programPaymentPlan']);
         // $paymentPlanJson = $formData->getProgramPaymentPlan()->getPaymentsData();
         // $obj = json_decode($paymentPlanJson['paymentsData']);
         // $obj->payments = array_fill(0, count($obj->payments), 0);
         // $obj->principal = $obj->principal - $formData->getContract()->getCreditDue();
         // $options['programPaymentPlanData']
     }
     return $options;
 }