DriverRepositoryInterface
in
Interface Driver.
Tags
Table of Contents
Methods
- bootingKernelConfigs() : void
- 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>
- 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>
- setupDrivers() : void
- Import drivers from "resources/drivers.php".
Methods
bootingKernelConfigs()
public
bootingKernelConfigs() : void
exportDriverToFilesystem()
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
Tags
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>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
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>
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, mixed> $drivers) : void
Parameters
- $package : string
- $drivers : array<string|int, mixed>