Esempio n. 1
0
 public function preExecute()
 {
     parent::preExecute();
     $action = $this->getRequest()->getParameter('action');
     if ('search' == $action || 'post' == $action) {
         $this->forward400If(!$this->getRequest()->getParameter('community_event_id'), 'community_event_id parameter is not specified.');
     }
     $this->member = $this->getUser()->getMember();
     $this->memberId = $this->member->getId();
 }
Esempio n. 2
0
 public function preExecute()
 {
     parent::preExecute();
     $action = $this->getRequest()->getParameter('action');
     if ('join' == $action || 'memberList' == $action) {
         $this->forward400If(!$this->getRequest()->getParameter('id'), 'event id is not specified');
         $this->event = Doctrine::getTable('CommunityEvent')->findOneById($this->getRequest()->getParameter('id'));
         $this->forward400If(!$this->event, 'requested event does not exist');
     }
     $this->member = $this->getUser()->getMember();
     $this->memberId = $this->member->getId();
 }
Esempio n. 3
0
 public function preExecute()
 {
     parent::preExecute();
     $this->member = $this->getUser()->getMember();
     $this->memberId = $this->member->getId();
 }