/** * Searches friends of this User ID with the provided query. * * @param unknown_type $userId * @param unknown_type $query * @return unknown */ public static function searchFriends($userId, $query) { $friends = Api_Dao_Friends::friendsSearch($userId, $query); if (null != $friends) { return $friends->toArray(); } return null; }