Jelix 1.7.18

PreConfigurationHelpers
in package

Tags
since
1.7

Table of Contents

$globalSetup  : GlobalSetup
global setup.
__construct()  : mixed
configFilePath()  : string
Path to the configuration directory.
forLocalConfiguration()  : mixed
getConfigIni()  : IniModifierArray
default config, main config combined with or without local config.
getCoordPluginConfig()  : null|array<string|int, mixed>
return the section name of configuration of a plugin for the coordinator or the IniModifier for the configuration file of the plugin if it exists.
getEntryPointsById()  : EntryPointPreConfigurator
getEntryPointsByType()  : array<string|int, EntryPointPreConfigurator>
getEntryPointsList()  : array<string|int, EntryPointPreConfigurator>
List of entry points of the application.
getMainEntryPoint()  : EntryPointPreConfigurator
Main entrypoint of the application (in most of case, index.php).
getProfilesIni()  : mixed
getSingleConfigIni()  : IniModifierInterface|IniReaderInterface
main config or local config ini file alone.

Properties

Methods

configFilePath()

Path to the configuration directory.

public configFilePath([string $file = '' ]) : string

It gives the path to app/system or local/config, depending on if the configuration is for the application or for the instance

Parameters
$file : string = ''
Return values
string

the path

getConfigIni()

default config, main config combined with or without local config.

public getConfigIni() : IniModifierArray
Return values
IniModifierArray

getCoordPluginConfig()

return the section name of configuration of a plugin for the coordinator or the IniModifier for the configuration file of the plugin if it exists.

public getCoordPluginConfig(string $pluginName[, IniReaderInterface $config = null ]) : null|array<string|int, mixed>
Parameters
$pluginName : string
$config : IniReaderInterface = null

the configuration file from which we should extract the plugin configuration. default is the full configuration.

Tags
throws
Exception

when the configuration filename is not found

Return values
null|array<string|int, mixed>

null if plugin is unknown, else array($iniModifier, $section)

getSingleConfigIni()

main config or local config ini file alone.

public getSingleConfigIni() : IniModifierInterface|IniReaderInterface
Return values
IniModifierInterface|IniReaderInterface

Search results