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
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
bootingKernelConfigs()
public
bootingKernelConfigs() : void
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
boolexportDriverToFilesystem()
public
exportDriverToFilesystem(string $packageName) : string
Parameters
- $packageName : string
Return values
stringgetDriver()
Get driver handler class name.
public
getDriver(string $type, string $name, string $resolution) : string
Parameters
- $type : string
- $name : string
- $resolution : string
Return values
stringgetDrivers()
public
getDrivers(string $type, string|null $category, string|null $resolution) : Collection
Parameters
- $type : string
- $category : string|null
- $resolution : string|null
Return values
CollectiongetEntityPackageAlias()
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
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
stringloadDriver()
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
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
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>model()
public
model() : 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
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self
Return values
selfloadModelMorphedMap()
private
loadModelMorphedMap() : array<string|int, mixed>