MetaFox

FriendListRepositoryInterface
in

Interface FriendListRepositoryInterface.

  • @mixin AbstractRepository
Tags
mixin

UserMorphTrait

Table of Contents

Methods

addFriendsToFriendLists()  : void
createFriendList()  : FriendList
deleteFriendList()  : bool
deleteUserForListData()  : void
getAssignedListIds()  : array<string|int, int>
getFriendListByUser()  : Collection
getFriendListsByIds()  : Collection
removeFriendsFromFriendLists()  : array<string|int, int>
updateFriendList()  : FriendList
updateToFriendList()  : bool
viewFriendList()  : FriendList
viewFriendLists()  : Builder

Methods

addFriendsToFriendLists()

public addFriendsToFriendLists(array<string|int, resource> $friendLists[, array<string|int, int> $friendIds = [] ]) : void
Parameters
$friendLists : array<string|int, resource>
$friendIds : array<string|int, int> = []

deleteFriendList()

public deleteFriendList(User $context, int $id) : bool
Parameters
$context : User
$id : int
Tags
throws
AuthorizationException
Return values
bool

getAssignedListIds()

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

getFriendListByUser()

public getFriendListByUser(int $userId) : Collection
Parameters
$userId : int
Return values
Collection

getFriendListsByIds()

public getFriendListsByIds(array<string|int, int> $friendListIds) : Collection
Parameters
$friendListIds : array<string|int, int>
Return values
Collection

removeFriendsFromFriendLists()

public removeFriendsFromFriendLists(array<string|int, resource> $friendLists, array<string|int, int> $friendIds) : array<string|int, int>
Parameters
$friendLists : array<string|int, resource>
$friendIds : array<string|int, int>
Return values
array<string|int, int>

updateToFriendList()

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

viewFriendLists()

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

        
On this page

Search results