예제 #1
0
 public function createComponentDenyingParticipationForm($name)
 {
     $form = new EventParticipationForm($this, $name, $this->getTranslator());
     $form->setType(EventParticipationType::NO);
     $form->initialize();
     return $form;
 }
예제 #2
0
 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;
 }