AdminAccessRepository
extends AbstractRepository
in package
implements
AdminAccessRepositoryInterface
Class AdminAccessRepository.
Table of Contents
Interfaces
- AdminAccessRepositoryInterface
- Interface AdminAccess.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- find() : AdminAccess
- getActiveUsers() : Paginator
- getLatestAccesses() : Paginator
- getModel() : AdminAccess
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- logAccess() : AdminAccess
- model() : string
- where() : $this
- withUserMorphTypeActiveScope() : self
Properties
$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
cleanContent()
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|nullcreateMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
boolfind()
public
find(mixed $id, mixed $columns) : AdminAccess
Parameters
- $id : mixed
- $columns : mixed
Return values
AdminAccessgetActiveUsers()
public
getActiveUsers(User $context, int $limit) : Paginator
Parameters
- $context : User
- $limit : int
Tags
Return values
PaginatorgetLatestAccesses()
public
getLatestAccesses(int $limit) : Paginator
Parameters
- $limit : int
Tags
Return values
PaginatorgetModel()
public
getModel() : AdminAccess
;
Return values
AdminAccessgetUserContractMorphTypeColumns()
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
stringlogAccess()
public
logAccess(User $user[, array<string|int, mixed> $attributes = [] ]) : AdminAccess
Parameters
- $user : User
- $attributes : array<string|int, mixed> = []
Tags
Return values
AdminAccessmodel()
public
model() : string
Return values
stringwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self