jConfigCompiler

jConfigCompiler merge two ini file in a single array and store it in a temporary file This is a static class

package

jelix

subpackage

core

static

Methods

__construct

__construct() 

Analyse and check the "lib:" and "app:" path.

_loadModuleInfo(object $config, boolean $allModuleInfo) 
static
Throws
\Exception

Arguments

$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

Analyse plugin paths

_loadPluginsPathList(object $config) 
static

Arguments

$config

object

the config container

checkCoordPluginsPath

checkCoordPluginsPath( $config) 
static

Arguments

$config

checkMiscParameters

checkMiscParameters( $config) 
static

Arguments

$config

findServerName

findServerName( $ext = '.php',  $isCli = false) 
static

Arguments

$ext

$isCli

getModulesPaths

getModulesPaths( $config,  $toCompileConfig = false) 
static

Arguments

$config

$toCompileConfig

calculate miscelaneous path, depending of the server configuration and other informations in the given array : script path, script name, documentRoot .

getPaths(array &$urlconf, string $pseudoScriptName = '', boolean $isCli = false) 
static

.

Throws
\Exception

Arguments

$urlconf

array

urlengine configuration. scriptNameServerVariable, basePath, jelixWWWPath and jqueryPath should be present

$pseudoScriptName

string

$isCli

boolean

fill some config properties with calculated values

prepareConfig(object $config, boolean $allModuleInfo, boolean $isCli, string $pseudoScriptName) 
static

Arguments

$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

$isCli

boolean

indicate if the configuration to read is for a CLI script or no

$pseudoScriptName

string

the name of the entry point, relative to the base path, corresponding to the readed configuration

read the given ini file, for the current entry point, or for the entrypoint given in $pseudoScriptName. Merge it with the content of mainconfig.ini.php It also calculates some options.

read(string $configFile, boolean $allModuleInfo = false, boolean $isCli = false, string $pseudoScriptName = '') : object
static

If you are in a CLI script but you want to load a configuration file for a web entry point or vice-versa, you need to indicate the $pseudoScriptName parameter with the name of the entry point

Throws
\Exception

Arguments

$configFile

string

the config file name

$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

$isCli

boolean

indicate if the configuration to read is for a CLI script or no

$pseudoScriptName

string

the name of the entry point, relative to the base path, corresponding to the readed configuration

Response

object

an object which contains configuration values

Identical to read(), but also stores the result in a temporary file

readAndCache(string $configFile, boolean $isCli = null, string $pseudoScriptName = '') : object
static
Throws
\Exception

Arguments

$configFile

string

the config file name

$isCli

boolean

$pseudoScriptName

string

Response

object

an object which contains configuration values

runConfigCompilerPlugins

runConfigCompilerPlugins( $config) 
static

Arguments

$config

Properties

commonConfig

commonConfig : 
static

Type(s)