Property | Type | Description | |
---|---|---|---|
$installerIni | it represents the installer.ini.php file. | ||
$messages | JInstallerMessageProvider | ||
$reporter | jIInstallReporter | the object responsible of the results output |
Property | Type | Description | |
---|---|---|---|
$allModules | list of all modules of the application | ||
$entryPoints | list of entry point and their properties | ||
$epId | identifiant of the entry point is the path+filename of the entry point without the php extension | ||
$localConfig | Jelix\IniFile\MultiIniModifier | the localconfig.ini.php content combined with $mainConfig | |
$mainConfig | Jelix\IniFile\MultiIniModifier | the mainconfig.ini.php combined with the defaultconfig.ini.php | |
$xmlMapFile | Jelix\Routing\UrlMapping\XmlMapModifier |
Method | Description | |
---|---|---|
__construct ( ReporterInterface $reporter, string $lang = '' ) | initialize the installation | |
forceModuleVersion ( string $moduleName, string $version ) | change the module version in readed informations, to simulate an update when we call installApplication or an other method. | |
getEntryPoint ( string $epId ) : |
||
installApplication ( integer $flags = false ) : boolean | install and upgrade if needed, all modules for each entry point. Only modules which have an access property > 0 are installed. Errors appeared during the installation are passed to the reporter. | |
installEntryPoint ( string $entrypoint ) : boolean | install and upgrade if needed, all modules for the given entry point. Only modules which have an access property > 0 are installed. Errors appeared during the installation are passed to the reporter. | |
installModules ( array $modulesList, string $entrypoint = null ) : boolean | install given modules even if they don't have an access property > 0 | |
setModuleParameters ( string $moduleName, array $parameters, string $entrypoint = null ) | set parameters for the installer of a module | |
uninstallModules ( array $modulesList, string $entrypoint = null ) : boolean | uninstall given modules |
Method | Description | |
---|---|---|
_installModules ( |
core of the installation | |
_singleModules ( $action, $modulesList, $entrypoint ) | ||
completeInstallStatus ( ) | ||
endMessage ( ) | ||
error ( $msg, $params = null, $fullString = false ) | ||
getEntryPointObject ( $configFile, $file, $type ) : |
||
getInstallerIni ( ) : Jelix\IniFile\IniModifier | ||
notice ( $msg, $params = null, $fullString = false ) | ||
ok ( $msg, $params = null, $fullString = false ) | ||
readEntryPointsData ( Jelix\Core\Infos\AppInfos $appInfos ) | read the list of entrypoint from the project.xml file and read all modules data used by each entry point | |
resolveDependencies ( |
||
runInstall ( $componentsToInstall, $ep, $epId, $flags ) | ||
runPostInstall ( $installedModules, $ep, $flags ) | ||
runPreInstall ( $moduleschain, $ep, $installWholeApp, $flags ) | ||
startMessage ( ) | ||
warning ( $msg, $params = null, $fullString = false ) |
public __construct ( ReporterInterface $reporter, string $lang = '' ) | ||
$reporter | ReporterInterface | object which is responsible to process messages (display, storage or other..) |
$lang | string | the language code for messages |
protected _installModules ( |
||
$resolver | ||
$ep | the entrypoint | |
$installWholeApp | boolean | true if the installation is done during app installation |
$flags | integer | to know what to do |
return | boolean | true if the installation is ok |
public forceModuleVersion ( string $moduleName, string $version ) | ||
$moduleName | string | the name of the module |
$version | string | the new version |
public getEntryPoint ( string $epId ) : |
||
$epId | string | an entry point id |
return | the corresponding entry point object |
protected getEntryPointObject ( $configFile, $file, $type ) : |
||
return |
protected getInstallerIni ( ) : Jelix\IniFile\IniModifier | ||
return | Jelix\IniFile\IniModifier | the modifier for the installer.ini.php file |
public installApplication ( integer $flags = false ) : boolean | ||
$flags | integer | flags indicating if we should install, and/or upgrade modules or only modify config files. internal use. see FLAG_* constants |
return | boolean | true if succeed, false if there are some errors |
public installEntryPoint ( string $entrypoint ) : boolean | ||
$entrypoint | string | the entrypoint name as it appears in project.xml |
return | boolean | true if succeed, false if there are some errors |
protected readEntryPointsData ( Jelix\Core\Infos\AppInfos $appInfos ) | ||
$appInfos | Jelix\Core\Infos\AppInfos |
protected resolveDependencies ( |
||
$resolver |
protected runPreInstall ( $moduleschain, $ep, $installWholeApp, $flags ) |
public setModuleParameters ( string $moduleName, array $parameters, string $entrypoint = null ) | ||
$moduleName | string | the name of the module |
$parameters | array | parameters |
$entrypoint | string | the entry point name for which parameters will be applied when installing the module. if null, parameters are valid for all entry points |
public uninstallModules ( array $modulesList, string $entrypoint = null ) : boolean | ||
$modulesList | array | array of module names |
$entrypoint | string | the entrypoint name as it appears in project.xml or null if modules should be uninstalled for all entry points |
return | boolean | true if the uninstallation is ok |
protected $epId |
protected MultiIniModifier,Jelix\IniFile $localConfig | ||
return | Jelix\IniFile\MultiIniModifier |
protected MultiIniModifier,Jelix\IniFile $mainConfig | ||
return | Jelix\IniFile\MultiIniModifier |
public JInstallerMessageProvider $messages | ||
return | JInstallerMessageProvider |
public jIInstallReporter $reporter | ||
return | jIInstallReporter |