MetaFox

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

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

fromAppPermission()

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

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

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>|false

scanApp()

public scanApp(Package $app) : void
Parameters
$app : Package
Tags
throws
Exception

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
throws
RepositoryException
Return values
$this

withUserMorphTypeActiveScope()

public withUserMorphTypeActiveScope() : self
Return values
self

fromFromFields()

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>

scanAppDrivers()

private scanAppDrivers(Package $app, string $type, string $caption) : void
Parameters
$app : Package
$type : string
$caption : string
Tags
throws
Exception

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
string

trimText()

private trimText(mixed $caption, mixed $group, mixed $title, mixed $text) : string
Parameters
$caption : mixed
$group : mixed
$title : mixed
$text : mixed
Return values
string

trimTitle()

private trimTitle(string $title) : string
Parameters
$title : string
Return values
string

        
On this page

Search results