Settings
extends Facade
in package
Class Settings.
Tags
Table of Contents
Methods
- bootingKernelConfigs() : void
- createSetting() : bool
- destroy() : bool
- get() : mixed
- getSiteSettings() : array<string|int, mixed>
- has() : bool
- keys() : array<string|int, mixed>
- mockValues() : void
- refresh() : void
- reset() : bool
- save() : array<string|int, mixed>
- saveAndCollectPrivateSettings() : array<string|int, mixed>
- setupPackageSettings() : bool
- updatedAt() : string
- updateSetting() : bool
- versionId() : int
- getFacadeAccessor() : string
Methods
bootingKernelConfigs()
public
static bootingKernelConfigs() : void
createSetting()
public
static createSetting(string $module, string $name, string|null $configName, string|null $envVar, mixed $value, string $type, bool $public, bool $auto) : bool
Parameters
- $module : string
- $name : string
- $configName : string|null
- $envVar : string|null
- $value : mixed
- $type : string
- $public : bool
- $auto : bool
Return values
booldestroy()
public
static destroy(string $module, array<string|int, mixed>|null $names) : bool
Parameters
- $module : string
- $names : array<string|int, mixed>|null
Return values
boolget()
public
static get(string $key, mixed $default) : mixed
Parameters
- $key : string
- $default : mixed
getSiteSettings()
public
static getSiteSettings(string $for, bool $loadFromDriver) : array<string|int, mixed>
Parameters
- $for : string
- $loadFromDriver : bool
Return values
array<string|int, mixed>has()
public
static has(string $key) : bool
Parameters
- $key : string
Return values
boolkeys()
public
static keys() : array<string|int, mixed>
Return values
array<string|int, mixed>mockValues()
public
static mockValues(array<string|int, mixed> $values) : void
Parameters
- $values : array<string|int, mixed>
refresh()
public
static refresh() : void
reset()
public
static reset(string $module, array<string|int, mixed>|null $names) : bool
Parameters
- $module : string
- $names : array<string|int, mixed>|null
Return values
boolsave()
public
static save(array<string|int, mixed> $values) : array<string|int, mixed>
Parameters
- $values : array<string|int, mixed>
Return values
array<string|int, mixed>saveAndCollectPrivateSettings()
public
static saveAndCollectPrivateSettings(array<string|int, mixed> $values, array<string|int, mixed>|null $$privateSettings = []) : array<string|int, mixed>
Parameters
- $values : array<string|int, mixed>
- $$privateSettings = [] : array<string|int, mixed>|null
Return values
array<string|int, mixed>setupPackageSettings()
public
static setupPackageSettings(string $module, array<string|int, mixed> $settings) : bool
Parameters
- $module : string
- $settings : array<string|int, mixed>
Return values
boolupdatedAt()
public
static updatedAt() : string
Return values
stringupdateSetting()
public
static updateSetting(string $module, string $name, string|null $configName, string|null $envVar, mixed $value, string $type, bool $public, bool $auto) : bool
Parameters
- $module : string
- $name : string
- $configName : string|null
- $envVar : string|null
- $value : mixed
- $type : string
- $public : bool
- $auto : bool
Return values
boolversionId()
public
static versionId() : int
Return values
intgetFacadeAccessor()
protected
static getFacadeAccessor() : string