MetaFox

SavedRepositoryInterface
in

Interface SavedRepositoryInterface.

Tags
mixin

BaseRepository

Table of Contents

Methods

addToList()  : Saved
checkIsSaved()  : bool
createSaved()  : Saved
deleteForItem()  : void
deleteForUser()  : void
deleteSaved()  : bool
findSavedItem()  : Saved|null
getAvailableTypes()  : array<string|int, mixed>
getCollectionByItem()  : Saved
getFilterOptions()  : array<string|int, mixed>
isAddedToList()  : bool
markAsOpened()  : Saved
markAsUnOpened()  : Saved
removeCollectionItem()  : mixed
unSave()  : bool
updateSaved()  : Saved
viewSavedItem()  : Saved
viewSavedItems()  : Paginator

Methods

addToList()

public addToList(User $context, int $itemId, array<string|int, mixed> $listIds) : Saved
Parameters
$context : User
$itemId : int
$listIds : array<string|int, mixed>
Return values
Saved

checkIsSaved()

public checkIsSaved(int $userId, int $itemId, string $itemType) : bool
Parameters
$userId : int
$itemId : int
$itemType : string
Return values
bool

deleteSaved()

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

getAvailableTypes()

public getAvailableTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFilterOptions()

public getFilterOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

removeCollectionItem()

public removeCollectionItem(User $context, array<string|int, mixed> $attributes) : mixed
Parameters
$context : User
$attributes : array<string|int, mixed>

unSave()

public unSave(User $context, array<string|int, mixed> $attribute) : bool
Parameters
$context : User
$attribute : array<string|int, mixed>
Tags
throws
AuthorizationException
Return values
bool

updateSaved()

public updateSaved(User $context, int $id, array<string, mixed> $attributes) : Saved
Parameters
$context : User
$id : int
$attributes : array<string, mixed>
Tags
throws
AuthorizationException
throws
Exception
Return values
Saved

viewSavedItems()

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

        
On this page

Search results