Property | Type | Description | |
---|---|---|---|
$commonConfig | |||
$config | StdClass | ||
$configFileName | |||
$isCli | |||
$modulesInfos | Jelix\Core\Infos\ModuleInfos[] | ||
$pseudoScriptName |
Method | Description | |
---|---|---|
__construct ( string $configFile = '', string $pseudoScriptName = '', boolean $isCli = null ) | ||
findServerName ( $ext = '.php', $isCli = false ) | ||
getModulesInfos ( ) | ||
read ( boolean $allModuleInfo = false, array $additionalOptions = null ) : StdClass | read the ini file given to the constructor. It Merges it with the content of mainconfig.ini.php. It also calculates some options. | |
readAndCache ( ) : object | Identical to read(), but also stores the result in a temporary file |
Method | Description | |
---|---|---|
_loadModulesInfo ( object $config, boolean $allModuleInfo ) : Jelix\Core\Infos\ModuleInfos[] | Find all activated modules and check their status | |
_loadPluginsPathList ( object $config ) | Analyse plugin paths | |
_readModuleInfo ( $config, $allModuleInfo, $path, &$installation, $section ) : Jelix\Core\Infos\ModuleInfos | ||
checkCoordPluginsPath ( $config ) | ||
checkMiscParameters ( $config ) | ||
getPaths ( array &$urlconf, $pseudoScriptName = '', $isCli = false ) | calculate miscelaneous path, depending of the server configuration and other informations in the given array : script path, script name, documentRoot . | |
prepareConfig ( boolean $allModuleInfo ) | fill some config properties with calculated values | |
readConfigFiles ( $configFile, $additionalOptions ) | ||
runConfigCompilerPlugins ( StdClass $config, Jelix\Core\Infos\ModuleInfos[] $modules ) |
public __construct ( string $configFile = '', string $pseudoScriptName = '', boolean $isCli = null ) | ||
$configFile | string | the name and path of the config file related to config dir of the app |
$pseudoScriptName | string | the name of the entry point, relative to the base path, corresponding to the readed configuration. It should start with a leading / for non cli script. |
$isCli | boolean | indicate if the configuration to read is for a CLI script or no |
protected _loadModulesInfo ( object $config, boolean $allModuleInfo ) : Jelix\Core\Infos\ModuleInfos[] | ||
$config | object | the config object |
$allModuleInfo | boolean | may be true for the installer, which needs all informations else should be false, these extra informations are not needed to run the application |
return | Jelix\Core\Infos\ModuleInfos[] |
protected _loadPluginsPathList ( object $config ) | ||
$config | object | the config container |
protected _readModuleInfo ( $config, $allModuleInfo, $path, &$installation, $section ) : Jelix\Core\Infos\ModuleInfos | ||
return | Jelix\Core\Infos\ModuleInfos |
public static findServerName ( $ext = '.php', $isCli = false ) |
protected prepareConfig ( boolean $allModuleInfo ) | ||
$allModuleInfo | boolean | may be true for the installer, which needs all informations else should be false, these extra informations are not needed to run the application |
public read ( boolean $allModuleInfo = false, array $additionalOptions = null ) : StdClass | ||
$allModuleInfo | boolean | may be true for the installer, which needs all informations else should be false, these extra informations are not needed to run the application |
$additionalOptions | array | some options to add to the configuration |
return | StdClass | an object which contains configuration values |
public readAndCache ( ) : object | ||
return | object | an object which contains configuration values |
protected runConfigCompilerPlugins ( StdClass $config, Jelix\Core\Infos\ModuleInfos[] $modules ) | ||
$config | StdClass | |
$modules | Jelix\Core\Infos\ModuleInfos[] |
protected ModuleInfos[],Jelix\Core\Infos $modulesInfos | ||
return | Jelix\Core\Infos\ModuleInfos[] |