ActivityHistoryRepository
extends AbstractRepository
in package
implements
ActivityHistoryRepositoryInterface
Class ActivityHistoryRepository.
Table of Contents
Interfaces
- ActivityHistoryRepositoryInterface
- Interface ActivityHistory
Properties
- $model : ActivityHistory
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- checkExists() : bool
- cleanContent() : string|null
- cleanTitle() : string|null
- createHistory() : ActivityHistory
- createMany() : bool
- find() : ActivityHistory
- getModel() : ActivityHistory
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : mixed
- updateHistory() : void
- viewHistories() : Collection
- where() : $this
- withUserMorphTypeActiveScope() : self
Properties
$model
public
ActivityHistory
$model
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
buildQueryScopes()
public
buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
- $query : mixed
- $model : mixed
- $criteria : mixed
checkExists()
public
checkExists(int $id) : bool
Parameters
- $id : int
Tags
Return values
boolcleanContent()
public
cleanContent(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcleanTitle()
public
cleanTitle(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcreateHistory()
public
createHistory(User $user, Feed $feed) : ActivityHistory
Parameters
Tags
Return values
ActivityHistorycreateMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
boolfind()
public
find(mixed $id, mixed $columns) : ActivityHistory
Parameters
- $id : mixed
- $columns : mixed
Return values
ActivityHistorygetModel()
public
getModel() : ActivityHistory
Return values
ActivityHistorygetUserContractMorphTypeColumns()
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
boolisNoSponsorView()
public
isNoSponsorView(string|null $view) : bool
Parameters
- $view : string|null
Return values
boollikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringmodel()
public
model() : mixed
updateHistory()
public
updateHistory(ActivityHistory $activityHistory, array<string|int, mixed> $attributes) : void
Parameters
- $activityHistory : ActivityHistory
- $attributes : array<string|int, mixed>
Tags
viewHistories()
public
viewHistories(User $user, int $id) : Collection
Parameters
- $user : User
- $id : int
Tags
Return values
Collectionwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self