Exemplo n.º 1
0
 public function getAllFollows(OW_Event $e)
 {
     $params = $e->getParams();
     $this->validateParams($params, array('feedType', 'feedId'));
     $list = $this->service->findFollowList($params['feedType'], $params['feedId']);
     $out = array();
     foreach ($list as $item) {
         $out[] = array('userId' => $item->userId, 'permission' => $item->permission);
     }
     $e->setData($out);
     return $out;
 }