Setting
in package
Uses
StaticTrait
Table of Contents
- $instance : mixed
- Instance object.
- __callStatic() : mixed
- Add support for magic static method calls.
- _i() : mixed
- _instance() : mixed
- getSetting() : mixed
- instance() : mixed
- Set/get a instance of object.
- saveSetting() : bool
Properties
$instance
Instance object.
protected
static mixed
$instance
Methods
__callStatic()
Add support for magic static method calls.
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
Return values
mixed —the returned value from the resolved method
_i()
public
static _i() : mixed
Return values
mixed —_instance()
public
static _instance() : mixed
Return values
mixed —getSetting()
public
static getSetting(mixed $settingname, mixed $default) : mixed
Parameters
- $settingname : mixed
- $default : mixed
Return values
mixed —instance()
Set/get a instance of object.
public
static instance(mixed $instance) : mixed
Parameters
- $instance : mixed
Return values
mixed —saveSetting()
public
static saveSetting(string $settingname, mixed $value) : bool
Parameters
- $settingname : string
- $value : mixed