Class jConfigCompiler

Description

jConfigCompiler merge two ini file in a single array and store it in a temporary file

This is a static class

Located in /core/jConfigCompiler.class.php (line 20)


	
			
Variable Summary
static mixed $commonConfig
Method Summary
static void prepareConfig (object $config, boolean $allModuleInfo, boolean $isCli, string $pseudoScriptName)
static object an read (string $configFile, [boolean $allModuleInfo = false], [boolean $isCli = false], [string $pseudoScriptName = ''])
static object an readAndCache (string $configFile, [boolean $isCli = null], [string $pseudoScriptName = ''])
static void _loadModuleInfo (object $config, boolean $allModuleInfo)
static void _loadPluginsPathList (object $config)
Variables
static mixed $commonConfig (line 22)
  • access: protected
Methods
static prepareConfig (line 113)

fill some config properties with calculated values

  • access: protected
static void prepareConfig (object $config, boolean $allModuleInfo, boolean $isCli, string $pseudoScriptName)
  • object $config: the config object
  • boolean $allModuleInfo: may be true for the installer, which needs all informations else should be false, these extra informations are not needed to run the application
  • boolean $isCli: indicate if the configuration to read is for a CLI script or no
  • string $pseudoScriptName: the name of the entry point, relative to the base path, corresponding to the readed configuration
static read (line 41)

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

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

  • return: object which contains configuration values
  • access: public
static object an read (string $configFile, [boolean $allModuleInfo = false], [boolean $isCli = false], [string $pseudoScriptName = ''])
  • string $configFile: the config file name
  • boolean $allModuleInfo: may be true for the installer, which needs all informations else should be false, these extra informations are not needed to run the application
  • boolean $isCli: indicate if the configuration to read is for a CLI script or no
  • string $pseudoScriptName: the name of the entry point, relative to the base path, corresponding to the readed configuration
static readAndCache (line 82)

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

  • return: object which contains configuration values
  • access: public
static object an readAndCache (string $configFile, [boolean $isCli = null], [string $pseudoScriptName = ''])
  • string $configFile: the config file name
  • boolean $isCli
  • string $pseudoScriptName
static _loadModuleInfo (line 275)

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

  • access: protected
static void _loadModuleInfo (object $config, boolean $allModuleInfo)
  • object $config: the config object
  • boolean $allModuleInfo: may be true for the installer, which needs all informations else should be false, these extra informations are not needed to run the application
static _loadPluginsPathList (line 399)

Analyse plugin paths

  • access: protected
static void _loadPluginsPathList (object $config)
  • object $config: the config container

Documentation generated on Thu, 19 Sep 2013 00:02:43 +0200 by phpDocumentor 1.4.3