public function createComponentDenyingParticipationForm($name) { $form = new EventParticipationForm($this, $name, $this->getTranslator()); $form->setType(EventParticipationType::NO); $form->initialize(); return $form; }
public function createComponentUpdateParticipationForm($name) { $c = new EventParticipationForm($this, $name, $this->presenter->getTranslator()); $c->setMode(FormMode::UPDATE_MODE); try { $users = $this->userService->getSelectUsers($this->getPresenter()->getSelectUserIdOmit()); $c->setUsers($users); } catch (Exceptions\DataErrorException $ex) { $this->presenter->handleDataLoad(null, "default", $ex); } $c->initialize(); return $c; }