ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Read a json-formatted config from a file and overwrite some fields. More...
Public Member Functions | |
__construct ($base_dir=null) | |
readConfigFile (string $name, array $overwrites=[]) | |
TODO: We could use the "give me a transformation and I'll give you your
result" pattern from the input paper here. More... | |
Protected Member Functions | |
applyOverwrites (array $json, array $overwrites) | |
getRealFilename (string $name) | |
Protected Attributes | |
$base_dir | |
Read a json-formatted config from a file and overwrite some fields.
Definition at line 17 of file ConfigReader.php.
ILIAS\Setup\CLI\ConfigReader::__construct | ( | $base_dir = null | ) |
|
protected |
Definition at line 55 of file ConfigReader.php.
Referenced by ILIAS\Setup\CLI\ConfigReader\readConfigFile().
|
protected |
Definition at line 75 of file ConfigReader.php.
References $name.
Referenced by ILIAS\Setup\CLI\ConfigReader\readConfigFile().
ILIAS\Setup\CLI\ConfigReader::readConfigFile | ( | string | $name, |
array | $overwrites = [] |
||
) |
TODO: We could use the "give me a transformation and I'll give you your result" pattern from the input paper here.
array | $overwrites | is a list of fields that should be overwritten with with the contained variables. The keys define which field (e.g. "a.b.c") should be overwritten with which value. |
Definition at line 38 of file ConfigReader.php.
References ILIAS\Setup\CLI\ConfigReader\applyOverwrites(), and ILIAS\Setup\CLI\ConfigReader\getRealFilename().
|
protected |
Definition at line 22 of file ConfigReader.php.
Referenced by ILIAS\Setup\CLI\ConfigReader\__construct().