示例#1
0
 public function findFriendIdList($userId, $first, $count, $type = 'friends')
 {
     switch ($type) {
         case 'friends':
             return $this->friendshipDao->findFriendIdList($userId, $first, $count);
         case 'sent-requests':
             return $this->friendshipDao->findRequestedUserIdList($userId, $first, $count);
         case 'got-requests':
             return $this->friendshipDao->findRequesterUserIdList($userId, $first, $count);
     }
     return array(array(), 0);
 }