public function executeInput(sfWebRequest $request) { $memberId = $this->getUser()->getMemberId(); if (!count(opCommunityIntroductionPlugin::getNotJoinCommunityFriendMemberIds($this->community->getId(), $memberId))) { return sfView::ERROR; } $this->form = $this->getForm(); }
public function executeMenu(sfWebRequest $requests) { $this->communityId = $requests->getParameter('id'); $memberId = $this->getUser()->getMemberId(); $this->countFriends = count(opCommunityIntroductionPlugin::getNotJoinCommunityFriendMemberIds($this->communityId, $memberId)); }