Property | Type | Description | |
---|---|---|---|
$usePhpYamlExtension | boolean | Having this installed massively improves YAML parsing performance. |
Method | Description | |
---|---|---|
__construct ( ) | ||
has ( string $pathAndFilename, boolean $allowSplitSource = false ) : boolean | Checks for the specified configuration file and returns TRUE if it exists. | |
load ( string $pathAndFilename, boolean $allowSplitSource = false ) : array | Loads the specified configuration file and returns its content as an array. If the file does not exist or could not be loaded, an empty array is returned | |
save ( string $pathAndFilename, array $configuration ) : void | Save the specified configuration array to the given file in YAML format. |
Method | Description | |
---|---|---|
getHeaderFromFile ( string $pathAndFilename ) : string | Read the header part from the given file. That means, every line until the first non comment line is found. |
protected getHeaderFromFile ( string $pathAndFilename ) : string | ||
$pathAndFilename | string | |
return | string | The header of the given YAML file |
public has ( string $pathAndFilename, boolean $allowSplitSource = false ) : boolean | ||
$pathAndFilename | string | Full path and filename of the file to load, excluding the file extension (ie. ".yaml") |
$allowSplitSource | boolean | If TRUE, the type will be used as a prefix when looking for configuration files |
return | boolean |
public load ( string $pathAndFilename, boolean $allowSplitSource = false ) : array | ||
$pathAndFilename | string | Full path and filename of the file to load, excluding the file extension (ie. ".yaml") |
$allowSplitSource | boolean | If TRUE, the type will be used as a prefix when looking for configuration files |
return | array |
protected bool $usePhpYamlExtension | ||
return | boolean |