FriendListRepositoryInterface
in
Interface FriendListRepositoryInterface.
- @mixin AbstractRepository
Tags
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> = []
createFriendList()
public
createFriendList(User $context, string $name) : FriendList
Parameters
- $context : User
- $name : string
Tags
Return values
FriendListdeleteFriendList()
public
deleteFriendList(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Tags
Return values
booldeleteUserForListData()
public
deleteUserForListData(User $user) : void
Parameters
- $user : User
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
CollectiongetFriendListsByIds()
public
getFriendListsByIds(array<string|int, int> $friendListIds) : Collection
Parameters
- $friendListIds : array<string|int, int>
Return values
CollectionremoveFriendsFromFriendLists()
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>updateFriendList()
public
updateFriendList(User $context, int $id, string $name) : FriendList
Parameters
- $context : User
- $id : int
- $name : string
Tags
Return values
FriendListupdateToFriendList()
public
updateToFriendList(int $id, array<string|int, mixed> $userId) : bool
Parameters
- $id : int
- $userId : array<string|int, mixed>
Return values
boolviewFriendList()
public
viewFriendList(User $context, int $id) : FriendList
Parameters
- $context : User
- $id : int
Tags
Return values
FriendListviewFriendLists()
public
viewFriendLists(User $context, array<string, mixed> $attributes) : Builder
Parameters
- $context : User
- $attributes : array<string, mixed>