MetaFox

DriverRepository extends AbstractRepository
in package
implements DriverRepositoryInterface

Class DriverRepository.

Table of Contents

Interfaces

DriverRepositoryInterface
Interface Driver.

Properties

$disableSponsor  : mixed
$skipPresenter  : mixed

Methods

bootingKernelConfigs()  : void
buildQueryScopes()  : mixed
cleanContent()  : string|null
cleanTitle()  : string|null
createMany()  : bool
exportDriverToFilesystem()  : string
getDriver()  : string
Get driver handler class name.
getDrivers()  : Collection
getEntityPackageAlias()  : array<string|int, mixed>
getJsonResources()  : array<string, string>
getNamesHasHandlerClass()  : array<string|int, string>
getUserContractMorphTypeColumns()  : array<string|int, string>
hasSponsorView()  : bool
isNoSponsorView()  : bool
likeOperator()  : string
return the case-insensitive LIKE operator bases on the current database driver.
loadDriver()  : array<string|int, string>
Get driver handler class name.
loadDrivers()  : array<string|int, array<string|int, string>>
Load all drivers by type, admin, active, and version.
loadDriverWithCallback()  : array<string|int, mixed>
loadEntities()  : array<string|int, mixed>
loadEntityModuleMap()  : array<string, string>
loadPolicies()  : array<string|int, mixed>
loadPolicyRules()  : array<string|int, mixed>
model()  : mixed
setupDrivers()  : void
Import drivers from "resources/drivers.php".
where()  : $this
withUserMorphTypeActiveScope()  : self
loadModelMorphedMap()  : array<string|int, mixed>

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

exportDriverToFilesystem()

public exportDriverToFilesystem(string $packageName) : string
Parameters
$packageName : string
Return values
string

getDriver()

Get driver handler class name.

public getDriver(string $type, string $name, string $resolution) : string
Parameters
$type : string
$name : string
$resolution : string
Return values
string

getDrivers()

public getDrivers(string $type, string|null $category, string|null $resolution) : Collection
Parameters
$type : string
$category : string|null
$resolution : string|null
Return values
Collection

getEntityPackageAlias()

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

getJsonResources()

public getJsonResources(bool $admin) : array<string, string>
Parameters
$admin : bool
Return values
array<string, string>

getNamesHasHandlerClass()

public getNamesHasHandlerClass(string $type) : array<string|int, string>
Parameters
$type : string
Return values
array<string|int, 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

loadDriver()

Get driver handler class name.

public loadDriver(string $type, string $name[, string|null $resolution = null ]) : array<string|int, string>
Parameters
$type : string
$name : string
$resolution : string|null = null
Tags
inheritDoc
Return values
array<string|int, string>

result includes $name, $drivers, $version, $package_id

loadDrivers()

Load all drivers by type, admin, active, and version.

public loadDrivers(string $type[, string|null $resolution = null ][, bool|null $active = true ][, string|null $version = null ][, bool|null $preload = null ][, string|null $packageId = null ]) : array<string|int, array<string|int, string>>
Parameters
$type : string
$resolution : string|null = null
$active : bool|null = true
$version : string|null = null
$preload : bool|null = null
$packageId : string|null = null
Return values
array<string|int, array<string|int, string>>

Get [[$name, $driver, $version], ... ] array.

loadDriverWithCallback()

public loadDriverWithCallback(string $type, Closure|null $filter, Closure|null $map) : array<string|int, mixed>
Parameters
$type : string
$filter : Closure|null
$map : Closure|null
Return values
array<string|int, mixed>

loadEntities()

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

loadEntityModuleMap()

public loadEntityModuleMap() : array<string, string>
Tags
inheritDoc
Return values
array<string, string>

loadPolicies()

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

loadPolicyRules()

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

setupDrivers()

Import drivers from "resources/drivers.php".

public setupDrivers(string $package, array<string|int, array<string|int, mixed>> $drivers) : void
Parameters
$package : string
$drivers : array<string|int, 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

loadModelMorphedMap()

private loadModelMorphedMap() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results