AbstractLoad
in package
implements
LoadInterface
AbstractYes
This is a simple Load implementation that other Load can inherit from.
Table of Contents
Interfaces
- LoadInterface
- Describes Load interface.
Properties
- $environments : array<string, string>
Methods
- load() : static
- Return an instance with loaded data from array.
- loadIni() : static
- Return an instance with loaded data from ini file.
- loadJson() : static
- Return an instance with loaded data from json file.
- getKey() : string
- Retrieve normalized variable key.
Properties
$environments
protected
array<string, string>
$environments
= []
Methods
load()
Return an instance with loaded data from array.
public
load(array<string, mixed> $Data) : static
Parameters
- $Data : array<string, mixed>
-
The load data.
Tags
Return values
staticloadIni()
Return an instance with loaded data from ini file.
public
loadIni(string $Filename) : static
Parameters
- $Filename : string
-
The ini filename.
Tags
Return values
staticloadJson()
Return an instance with loaded data from json file.
public
loadJson(string $Filename) : static
Parameters
- $Filename : string
-
The ini filename.
Tags
Return values
staticgetKey()
Retrieve normalized variable key.
protected
getKey(string $Name) : string
Parameters
- $Name : string
-
The variable name.