SavedListRepositoryInterface
in
Interface SavedListRepositoryInterface.
Tags
Table of Contents
Methods
- addFriendToSavedList() : array<string|int, int>
- createSavedList() : SavedList
- deleteForUser() : void
- deleteSavedList() : bool
- filterSavedListByUser() : mixed
- getSavedListByUser() : Collection
- getTotalSavedLists() : mixed
- updateSavedList() : SavedList
- viewItemCollection() : Paginator
- viewSavedList() : SavedList
- viewSavedLists() : Paginator
Methods
addFriendToSavedList()
public
addFriendToSavedList(User $context, int $listId[, array<string|int, int> $friendIds = [] ]) : array<string|int, int>
Parameters
- $context : User
- $listId : int
- $friendIds : array<string|int, int> = []
Tags
Return values
array<string|int, int>createSavedList()
public
createSavedList(User $user, array<string, mixed> $attributes) : SavedList
Parameters
- $user : User
- $attributes : array<string, mixed>
Tags
Return values
SavedListdeleteForUser()
public
deleteForUser(User $user) : void
Parameters
- $user : User
deleteSavedList()
public
deleteSavedList(User $user, int $id) : bool
Parameters
- $user : User
- $id : int
Tags
Return values
boolfilterSavedListByUser()
public
filterSavedListByUser(User $context, Collection $savedLists) : mixed
Parameters
- $context : User
- $savedLists : Collection
getSavedListByUser()
public
getSavedListByUser(User $user) : Collection
Parameters
- $user : User
Return values
CollectiongetTotalSavedLists()
public
getTotalSavedLists(User $user, array<string|int, mixed> $attributes) : mixed
Parameters
- $user : User
- $attributes : array<string|int, mixed>
updateSavedList()
public
updateSavedList(User $user, int $id, array<string, mixed> $attributes) : SavedList
Parameters
- $user : User
- $id : int
- $attributes : array<string, mixed>
Tags
Return values
SavedListviewItemCollection()
public
viewItemCollection(User $user, array<string|int, mixed> $attributes) : Paginator
Parameters
- $user : User
- $attributes : array<string|int, mixed>
Return values
PaginatorviewSavedList()
public
viewSavedList(User $user, int $id) : SavedList
Parameters
- $user : User
- $id : int
Tags
Return values
SavedListviewSavedLists()
public
viewSavedLists(User $user, array<string, mixed> $attributes) : Paginator
Parameters
- $user : User
- $attributes : array<string, mixed>