MetaFox

SnoozeRepository extends AbstractRepository
in package
implements SnoozeRepositoryInterface

Class ActivitySnoozeRepository.

Table of Contents

Interfaces

SnoozeRepositoryInterface
Interface SnoozeRepositoryInterface.

Properties

$disableSponsor  : mixed
$skipPresenter  : mixed

Methods

buildQueryScopes()  : mixed
cleanContent()  : string|null
cleanTitle()  : string|null
create()  : Snooze
createMany()  : bool
createOrUpdateSnooze()  : Snooze
deleteExpiredSnoozesHavingSubscription()  : void
deleteExpiredSnoozesNotHavingSubscription()  : void
If snoozes does not have subscriptions, bulk delete.
deleteSnooze()  : mixed
Delete a snooze resource.
find()  : Snooze
getModel()  : Snooze
getSnooze()  : Snooze
Get a hidden resource.
getSnoozes()  : Paginator
Get all snooze resources by an user.
getUserContractMorphTypeColumns()  : array<string|int, string>
hasSponsorView()  : bool
isNoSponsorView()  : bool
likeOperator()  : string
return the case-insensitive LIKE operator bases on the current database driver.
model()  : string
snooze()  : Snooze
unSnooze()  : Snooze
UnSnooze an user.
where()  : $this
withUserMorphTypeActiveScope()  : self

Properties

Methods

buildQueryScopes()

public buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
$query : mixed
$model : mixed
$criteria : mixed

cleanContent()

public cleanContent(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

cleanTitle()

public cleanTitle(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

createMany()

public createMany(array<string|int, mixed> $items) : bool
Parameters
$items : array<string|int, mixed>
Return values
bool

createOrUpdateSnooze()

public createOrUpdateSnooze(User $context, User $owner, array<string|int, mixed> $attributes) : Snooze
Parameters
$context : User
$owner : User
$attributes : array<string|int, mixed>
Tags
throws
AuthorizationException
Return values
Snooze

deleteExpiredSnoozesHavingSubscription()

public deleteExpiredSnoozesHavingSubscription() : void

deleteExpiredSnoozesNotHavingSubscription()

If snoozes does not have subscriptions, bulk delete.

public deleteExpiredSnoozesNotHavingSubscription() : void

deleteSnooze()

Delete a snooze resource.

public deleteSnooze(User $context, int $id) : mixed
Parameters
$context : User
$id : int

getSnoozes()

Get all snooze resources by an user.

public getSnoozes(User $context[, string|null $ownerType = null ][, string|null $textSearch = null ][, int $limit = Pagination::DEFAULT_ITEM_PER_PAGE ]) : Paginator
Parameters
$context : User
$ownerType : string|null = null
$textSearch : string|null = null
$limit : int = Pagination::DEFAULT_ITEM_PER_PAGE
Return values
Paginator

getUserContractMorphTypeColumns()

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

hasSponsorView()

public hasSponsorView(array<string|int, mixed> $attributes) : bool
Parameters
$attributes : array<string|int, mixed>
Return values
bool

isNoSponsorView()

public isNoSponsorView(string|null $view) : bool
Parameters
$view : string|null
Return values
bool

likeOperator()

return the case-insensitive LIKE operator bases on the current database driver.

public likeOperator() : string
Return values
string

snooze()

public snooze(User $user, User $owner[, int $snoozeDay = 30 ][, int $isSystem = 0 ][, int $isSnoozed = 1 ][, int $isSnoozedForever = 0 ][, array<string|int, mixed> $relations = [] ]) : Snooze
Parameters
$user : User
$owner : User
$snoozeDay : int = 30
$isSystem : int = 0
$isSnoozed : int = 1
$isSnoozedForever : int = 0
$relations : array<string|int, mixed> = []
Tags
throws
AuthorizationException
Return values
Snooze

unSnooze()

UnSnooze an user.

public unSnooze(User $user, User $owner[, array<string|int, mixed> $relations = [] ]) : Snooze
Parameters
$user : User
$owner : User
$relations : array<string|int, mixed> = []
Return values
Snooze

where()

public where(array<string|int, mixed> $params) : $this
Parameters
$params : array<string|int, mixed>
Tags
throws
RepositoryException
Return values
$this

withUserMorphTypeActiveScope()

public withUserMorphTypeActiveScope() : self
Return values
self

        
On this page

Search results