Пример #1
0
 public function get_ids_for_queries($queries, $cap)
 {
     $result = array();
     foreach ($queries as $query => $true) {
         list($flid, $uid) = explode(':', $query);
         if (!$flid || !friend_list_is_owner($flid, $this->user)) {
             throw new NoIndexFunctionException("Can't lookup friend lists not owned by the logged in user (" . $this->user . ')');
         }
         $this->get_all_members($flid, $uid, $result);
     }
     return $result;
 }
Пример #2
0
 protected function friends_getListMembers($flid)
 {
     if (!$flid || !friend_list_is_owner($flid, $this->user_id)) {
         $this->throw_code(api10_FacebookApiErrorCode::API_EC_PARAM);
     }
     $members = friend_list_get_members($flid);
     if (!is_array($members)) {
         $this->throw_code(api10_FacebookApiErrorCode::API_EC_UNKNOWN);
     }
     return $members;
 }
Пример #3
0
 public function can_see($id)
 {
     list($flid, $uid) = explode(':', $id);
     return $this->user == $uid && friend_list_is_owner($flid, $uid);
 }