Ejemplo n.º 1
0
 /**
  * pridava formular na dalsi krok
  * @param LBoxForm $form
  */
 public function addForm(LBoxForm $form)
 {
     try {
         foreach ($this->subForms as $subForm) {
             if ($subForm->getName() == $form->getName()) {
                 throw new LBoxExceptionForm(LBoxExceptionForm::MSG_FORM_FORM_SUB_ALREADY_SET_BY_NAME, LBoxExceptionForm::CODE_FORM_FORM_SUB_ALREADY_SET_BY_NAME);
             }
         }
         $this->subForms[count($this->subForms) + 1] = $form;
         $form->setFormMultistep($this);
     } catch (Exception $e) {
         throw $e;
     }
 }