/** * Execute the groups.get method * */ public function execute() { $em = Api_Bo_Events::getMembers($this->getUserId(), $this->m_eid); $response = array(); if (count($em) > 0) { $response[FB_EVENTS_MEMBERS_ATTENDING]['uid'] = array(); $response[FB_EVENTS_MEMBERS_UNSURE]['uid'] = array(); $response[FB_EVENTS_MEMBERS_DECLINED]['uid'] = array(); $response[FB_EVENTS_MEMBERS_NOT_REPLIED]['uid'] = array(); foreach ($em as $mem) { switch ($mem['rsvp']) { case Api_Bo_Events::RS_FBDB_RSVP_ATTENDING: $response[FB_EVENTS_MEMBERS_ATTENDING]['uid'][] = $mem['uid']; break; case Api_Bo_Events::RS_FBDB_RSVP_DECLINED: $response[FB_EVENTS_MEMBERS_DECLINED]['uid'][] = $mem['uid']; break; case Api_Bo_Events::RS_FBDB_RSVP_NOT_REPLIED: $response[FB_EVENTS_MEMBERS_NOT_REPLIED]['uid'][] = $mem['uid']; break; case Api_Bo_Events::RS_FBDB_RSVP_UNSURE: $response[FB_EVENTS_MEMBERS_UNSURE]['uid'][] = $mem['uid']; break; } } } return $response; }