AdminSearchRepository
extends AbstractRepository
in package
implements
AdminSearchRepositoryInterface
Class AdminSearchRepository.
Table of Contents
Interfaces
- AdminSearchRepositoryInterface
- Interface AdminSearch.
Constants
- DELIM = '»'
Properties
- $captions : array<string|int, mixed>
- $disableSponsor : mixed
- $skipPresenter : mixed
- $stopWords : array<string|int, mixed>
Methods
- buildQueryScopes() : mixed
- clean() : void
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- fromAppPermission() : void
- fromFormDriver() : mixed
- fromMenuItems() : void
- getCaption() : mixed
- 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
- normalize() : array<string|int, mixed>|false
- scanApp() : void
- upsert() : void
- where() : $this
- withUserMorphTypeActiveScope() : self
- fromFromFields() : array<string|int, mixed>
- initStopWords() : void
- scanAppDrivers() : void
- scanAppPermissions() : mixed
- trimCaption() : string
- trimText() : string
- trimTitle() : string
Constants
DELIM
public
mixed
DELIM
= '»'
Properties
$captions
protected
array<string|int, mixed>
$captions
= []
<string,string>
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
$stopWords
protected
array<string|int, mixed>
$stopWords
= []
<string,string>
Methods
buildQueryScopes()
public
buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
- $query : mixed
- $model : mixed
- $criteria : mixed
clean()
public
clean() : void
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
boolfromAppPermission()
public
fromAppPermission(Permission $permission, string $url, string $package_id, string $caption, string $group) : void
Parameters
- $permission : Permission
- $url : string
- $package_id : string
- $caption : string
- $group : string
fromFormDriver()
public
fromFormDriver(Driver $driver, string $caption, string $group) : mixed
Parameters
- $driver : Driver
- $caption : string
- $group : string
fromMenuItems()
public
fromMenuItems(array<string|int, mixed> $wheres, string $caption, string $group) : void
Parameters
- $wheres : array<string|int, mixed>
- $caption : string
- $group : string
getCaption()
public
getCaption(string $key) : mixed
Parameters
- $key : string
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
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
normalize()
public
normalize(array<string|int, mixed> $data) : array<string|int, mixed>|false
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>|falsescanApp()
public
scanApp(Package $app) : void
Parameters
- $app : Package
Tags
upsert()
public
upsert(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
where()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self
Return values
selffromFromFields()
private
fromFromFields(Driver $driver, array<string|int, mixed> $fields, string $caption, string $group) : array<string|int, mixed>
Parameters
- $driver : Driver
- $fields : array<string|int, mixed>
- $caption : string
- $group : string
Return values
array<string|int, mixed>initStopWords()
private
initStopWords() : void
scanAppDrivers()
private
scanAppDrivers(Package $app, string $type, string $caption) : void
Parameters
- $app : Package
- $type : string
- $caption : string
Tags
scanAppPermissions()
private
scanAppPermissions(Package $app, string $caption, string $group) : mixed
Parameters
- $app : Package
- $caption : string
- $group : string
trimCaption()
private
trimCaption(mixed $caption, string $title) : string
Parameters
- $caption : mixed
- $title : string
Return values
stringtrimText()
private
trimText(mixed $caption, mixed $group, mixed $title, mixed $text) : string
Parameters
- $caption : mixed
- $group : mixed
- $title : mixed
- $text : mixed
Return values
stringtrimTitle()
private
trimTitle(string $title) : string
Parameters
- $title : string