Jelix 1.7.18

GlobalSetup
in package

Tags
since
1.7.0

Table of Contents

$currentProcessedModule  : ModuleInstallerLauncher
$defaultConfigIni  : IniReader
the ini file: jelix/core/defaultconfig.ini.php.
$entryPoints  : array<string|int, EntryPoint>
list of entry point and their properties.
$frameworkInfos  : FrameworkInfos
$ghostModules  : array<string|int, ModuleInstallerLauncher>
list of ghost modules.
$installerContexts  : mixed
$installerIni  : IniModifier
$liveConfigIni  : IniModifier
the liveconfig.ini.php of the application.
$localConfigIni  : IniModifier
the localconfig.ini.php of the application.
$mainConfigIni  : IniModifier
the mainconfig.ini.php of the application.
$mainEntryPoint  : EntryPoint
$modules  : array<string|int, ModuleInstallerLauncher>
list of modules.
$profilesIni  : IniModifier
$readWriteConfigMode  : bool
$uninstallerIni  : IniModifier
$urlLocalMapModifier  : XmlRedefinedMapModifier
$urlMapModifier  : XmlMapModifier
$forLocalConfiguration  : bool
__construct()  : mixed
GlobalSetup constructor.
addModuleComponent()  : mixed
declareNewEntryPoint()  : mixed
Declare a new entry point.
declareWebAssetsInConfig()  : mixed
forLocalConfiguration()  : bool
getCoordPluginConf()  : 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.
getCurrentModulePath()  : mixed
getDefaultConfigIni()  : IniReader
the defaultconfig.ini.php file.
getEntryPointById()  : EntryPoint
getEntryPointsByType()  : array<string|int, EntryPoint>
getEntryPointsList()  : array<string|int, EntryPoint>
getFullConfigIni()  : IniModifierArray
All combined config files : defaultconfig.ini.php, mainconfig.ini.php localconfig.ini.php and liveconfig.ini.php.
getGhostModuleComponents()  : array<string|int, ModuleInstallerLauncher>
List of modules that should be uninstall and we have only their uninstaller into install/uninstall/.
getGhostModuleInfosAndStatuses()  : Generator
getInstallerContexts()  : mixed
getInstallerIni()  : IniModifier
the installer.ini.php.
getLiveConfigIni()  : IniModifierInterface|IniReaderInterface
the liveconfig.ini.php file.
getLocalConfigIni()  : IniModifierInterface|IniReaderInterface
the localconfig.ini.php file.
getLocalUrlModifier()  : XmlMapModifier
getMainConfigIni()  : IniModifierInterface|IniReaderInterface
the mainconfig.ini.php file.
getMainEntryPoint()  : EntryPoint
getModuleComponent()  : null|ModuleInstallerLauncher
getModuleComponentsList()  : array<string|int, ModuleInstallerLauncher>
getModuleInfosAndStatuses()  : Generator
getProfilesIni()  : IniModifierInterface|IniReaderInterface
the profiles.ini.php file.
getSystemConfigIni()  : IniModifierArray
the combined global config files, defaultconfig.ini.php and mainconfig.ini.php.
getUninstallerIni()  : IniModifier
the uninstaller.ini.php.
getUrlModifier()  : XmlMapModifier
isReadWriteConfigMode()  : bool
removeInstallerContexts()  : mixed
removeWebAssetsFromConfig()  : mixed
setCurrentConfiguratorStatus()  : void
setCurrentProcessedModule()  : mixed
setReadWriteConfigMode()  : mixed
undeclareEntryPoint()  : mixed
Undeclare an entry point.
updateInstallerContexts()  : mixed
loadInstallerIni()  : IniModifier
readEntryPointData()  : mixed
read the list of entrypoint from the project.xml file and read all modules data used by each entry point.
readModuleInfos()  : mixed

Properties

$defaultConfigIni

the ini file: jelix/core/defaultconfig.ini.php.

protected IniReader $defaultConfigIni

$entryPoints

list of entry point and their properties.

protected array<string|int, EntryPoint> $entryPoints = array()

keys are entry point id

$ghostModules

list of ghost modules.

protected array<string|int, ModuleInstallerLauncher> $ghostModules = array()

ghost module is a module for which we have only its uninstaller

key: module name

$installerContexts

protected mixed $installerContexts = array()

$installerIni

protected IniModifier $installerIni

it represents the installer.ini.php file.

$liveConfigIni

the liveconfig.ini.php of the application.

protected IniModifier $liveConfigIni

$localConfigIni

the localconfig.ini.php of the application.

protected IniModifier $localConfigIni

$mainConfigIni

the mainconfig.ini.php of the application.

protected IniModifier $mainConfigIni

$profilesIni

protected IniModifier $profilesIni

it represents the profiles.ini.php file.

$readWriteConfigMode

protected bool $readWriteConfigMode = true

true if the configuration can be modified

$uninstallerIni

protected IniModifier $uninstallerIni

it represents the install/uninstall/uninstaller.ini.php file.

$forLocalConfiguration

private bool $forLocalConfiguration = false

indicates if we should work on the local configuration or into the application configuration (dev mode)

Methods

__construct()

GlobalSetup constructor.

public __construct([null|FrameworkInfos|string $frameworkFileName = null ][, null|mixed $localFrameworkFileName = null ][, null|string $mainConfigFileName = null ][, null|string $localConfigFileName = null ][, null|string $urlXmlFileName = null ][, null|string $urlLocalXmlFileName = null ]) : mixed
Parameters
$frameworkFileName : null|FrameworkInfos|string = null
$localFrameworkFileName : null|mixed = null
$mainConfigFileName : null|string = null
$localConfigFileName : null|string = null
$urlXmlFileName : null|string = null
$urlLocalXmlFileName : null|string = null
Return values
mixed —

declareNewEntryPoint()

Declare a new entry point.

public declareNewEntryPoint(string $epId, string $epType, string $configFileName) : mixed
Parameters
$epId : string
$epType : string
$configFileName : string
Tags
throws
Exception
Return values
mixed —

declareWebAssetsInConfig()

public declareWebAssetsInConfig(IniModifier $config, string $name, array<string|int, mixed> $values, string $collection, bool $force) : mixed
Parameters
$config : IniModifier
$name : string

the name of webassets

$values : array<string|int, mixed>
$collection : string

the name of the webassets collection

$force : bool
Return values
mixed —

forLocalConfiguration()

public forLocalConfiguration() : bool
Return values
bool —

indicates if we should work on the local configuration or into the application configuration

getCoordPluginConf()

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 getCoordPluginConf(IniModifierInterface $config, string $pluginName) : null|array<string|int, mixed>
Parameters
$config : IniModifierInterface

the global configuration content

$pluginName : string
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)

getCurrentModulePath()

public getCurrentModulePath() : mixed
Return values
mixed —

getDefaultConfigIni()

the defaultconfig.ini.php file.

public getDefaultConfigIni() : IniReader
Return values
IniReader —

getEntryPointsByType()

public getEntryPointsByType([mixed $type = 'classic' ]) : array<string|int, EntryPoint>
Parameters
$type : mixed = 'classic'
Return values
array<string|int, EntryPoint> —

getFullConfigIni()

All combined config files : defaultconfig.ini.php, mainconfig.ini.php localconfig.ini.php and liveconfig.ini.php.

public getFullConfigIni([bool $forceReadOnly = false ]) : IniModifierArray
Parameters
$forceReadOnly : bool = false
Return values
IniModifierArray —

getGhostModuleInfosAndStatuses()

public getGhostModuleInfosAndStatuses() : Generator
Return values
Generator —

getInstallerContexts()

public getInstallerContexts(mixed $moduleName) : mixed
Parameters
$moduleName : mixed
Return values
mixed —

getInstallerIni()

the installer.ini.php.

public getInstallerIni() : IniModifier
Return values
IniModifier —

getLiveConfigIni()

the liveconfig.ini.php file.

public getLiveConfigIni([mixed $forceReadOnly = false ]) : IniModifierInterface|IniReaderInterface
Parameters
$forceReadOnly : mixed = false
Return values
IniModifierInterface|IniReaderInterface —

getLocalConfigIni()

the localconfig.ini.php file.

public getLocalConfigIni([mixed $forceReadOnly = false ]) : IniModifierInterface|IniReaderInterface
Parameters
$forceReadOnly : mixed = false
Return values
IniModifierInterface|IniReaderInterface —

getMainConfigIni()

the mainconfig.ini.php file.

public getMainConfigIni([mixed $forceReadOnly = false ]) : IniModifierInterface|IniReaderInterface
Parameters
$forceReadOnly : mixed = false
Return values
IniModifierInterface|IniReaderInterface —

getModuleInfosAndStatuses()

public getModuleInfosAndStatuses() : Generator
Return values
Generator —

getProfilesIni()

the profiles.ini.php file.

public getProfilesIni([mixed $forceReadOnly = false ]) : IniModifierInterface|IniReaderInterface
Parameters
$forceReadOnly : mixed = false
Return values
IniModifierInterface|IniReaderInterface —

getSystemConfigIni()

the combined global config files, defaultconfig.ini.php and mainconfig.ini.php.

public getSystemConfigIni([mixed $forceReadOnly = false ]) : IniModifierArray
Parameters
$forceReadOnly : mixed = false
Return values
IniModifierArray —

getUninstallerIni()

the uninstaller.ini.php.

public getUninstallerIni() : IniModifier
Return values
IniModifier —

isReadWriteConfigMode()

public isReadWriteConfigMode() : bool
Return values
bool —

true if the configuration can be modified

removeInstallerContexts()

public removeInstallerContexts(mixed $moduleName) : mixed
Parameters
$moduleName : mixed
Return values
mixed —

removeWebAssetsFromConfig()

public removeWebAssetsFromConfig(IniModifier $config, string $name, string $collection) : mixed
Parameters
$config : IniModifier
$name : string

the name of webassets

$collection : string

the name of the webassets collection

Return values
mixed —

setCurrentConfiguratorStatus()

public setCurrentConfiguratorStatus(bool $forLocalConfiguration) : void
Parameters
$forLocalConfiguration : bool
Return values
void —

setCurrentProcessedModule()

public setCurrentProcessedModule(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed —

setReadWriteConfigMode()

public setReadWriteConfigMode(bool $rwMode) : mixed
Parameters
$rwMode : bool

indicate if the configuration can be modified or not

Return values
mixed —

undeclareEntryPoint()

Undeclare an entry point.

public undeclareEntryPoint(string $epId) : mixed
Parameters
$epId : string
Tags
throws
Exception
Return values
mixed —

updateInstallerContexts()

public updateInstallerContexts(mixed $moduleName, mixed $contexts) : mixed
Parameters
$moduleName : mixed
$contexts : mixed
Return values
mixed —

loadInstallerIni()

protected loadInstallerIni() : IniModifier
Tags
throws
Exception
Return values
IniModifier —

the modifier for the installer.ini.php file

readEntryPointData()

read the list of entrypoint from the project.xml file and read all modules data used by each entry point.

protected readEntryPointData() : mixed
Tags
throws
Exception
Return values
mixed —

readModuleInfos()

protected readModuleInfos() : mixed
Return values
mixed —

Search results