MetaFox

FriendRepositoryInterface
in

Interface FriendRepositoryInterface.

Tags
mixin

UserMorphTrait

Table of Contents

Methods

addFriend()  : bool
clearFriendSuggestionCache()  : void
countMutualFriends()  : int
countTotalFriends()  : int
deleteUserSuggestionIgnoreData()  : void
getFriendBirthdays()  : Paginator
getFriendIds()  : array<string|int, mixed>
getFriendSuggestion()  : array<string|int, mixed>
getMentions()  : Paginator|null
getMutualFriends()  : Collection
getSuggestion()  : array<string|int, mixed>
getTagSuggestions()  : Paginator
hideUserSuggestion()  : bool
inviteFriendsToItem()  : Collection
inviteFriendToOwner()  : array<int, mixed>
isFriend()  : bool
unFriend()  : bool
viewFriends()  : Paginator
viewMembers()  : Paginator|null
viewProfileFriends()  : Paginator

Methods

addFriend()

public addFriend(User $user, User $owner, bool $hasCheckIsFriend) : bool
Parameters
$user : User
$owner : User
$hasCheckIsFriend : bool
Tags
throws
ValidatorException
throws
AuthorizationException
Return values
bool

clearFriendSuggestionCache()

public clearFriendSuggestionCache(int $userId, int $ownerId) : void
Parameters
$userId : int
$ownerId : int

countMutualFriends()

public countMutualFriends(int $contextId, int $userId) : int
Parameters
$contextId : int
$userId : int
Return values
int

deleteUserSuggestionIgnoreData()

public deleteUserSuggestionIgnoreData(int $userId) : void
Parameters
$userId : int

getFriendBirthdays()

public getFriendBirthdays(User $user, array<string, mixed> $attributes) : Paginator
Parameters
$user : User
$attributes : array<string, mixed>
Return values
Paginator

getFriendIds()

public getFriendIds(int $userId) : array<string|int, mixed>
Parameters
$userId : int
Return values
array<string|int, mixed>

getFriendSuggestion()

public getFriendSuggestion(User $context, array<string, mixed> $params) : array<string|int, mixed>
Parameters
$context : User
$params : array<string, mixed>
Return values
array<string|int, mixed>

getMentions()

public getMentions(User $context, array<string|int, mixed> $attributes) : Paginator|null
Parameters
$context : User
$attributes : array<string|int, mixed>
Return values
Paginator|null

getMutualFriends()

public getMutualFriends(int $contextId, int $userId[, int $limit = Pagination::DEFAULT_ITEM_PER_PAGE ]) : Collection
Parameters
$contextId : int
$userId : int
$limit : int = Pagination::DEFAULT_ITEM_PER_PAGE
Return values
Collection

getSuggestion()

public getSuggestion(User $context[, array<string|int, mixed> $params = [] ]) : array<string|int, mixed>
Parameters
$context : User
$params : array<string|int, mixed> = []
Return values
array<string|int, mixed>

getTagSuggestions()

public getTagSuggestions(User $context, array<string|int, mixed> $attributes) : Paginator
Parameters
$context : User
$attributes : array<string|int, mixed>
Return values
Paginator

inviteFriendsToItem()

public inviteFriendsToItem(User $context, array<string|int, mixed> $attributes) : Collection
Parameters
$context : User
$attributes : array<string|int, mixed>
Return values
Collection

inviteFriendToOwner()

public inviteFriendToOwner(User $context, array<string, mixed> $attributes) : array<int, mixed>
Parameters
$context : User
$attributes : array<string, mixed>
Return values
array<int, mixed>

isFriend()

public isFriend(int|null $userId, int|null $friendId) : bool
Parameters
$userId : int|null
$friendId : int|null
Return values
bool

unFriend()

public unFriend(int $userId, int $friendId) : bool
Parameters
$userId : int
$friendId : int
Return values
bool

viewFriends()

public viewFriends(User $context, User $owner, array<string, mixed> $attributes) : Paginator
Parameters
$context : User
$owner : User
$attributes : array<string, mixed>
Tags
throws
AuthorizationException
Return values
Paginator

viewMembers()

public viewMembers(User $context, User $user, User $owner, array<string|int, mixed> $attributes) : Paginator|null
Parameters
$context : User
$user : User
$owner : User
$attributes : array<string|int, mixed>
Return values
Paginator|null

viewProfileFriends()

public viewProfileFriends(User $context, User $owner, array<string|int, mixed> $attributes) : Paginator
Parameters
$context : User
$owner : User
$attributes : array<string|int, mixed>
Return values
Paginator

        
On this page

Search results