Jelix 1.8.14-pre

ModuleInstallerLauncher
in package

Manage status of a module and its installer/updaters.

Tags
since
1.7

Table of Contents

CONFIGURATOR_TO_CONFIGURE  = 0
CONFIGURATOR_TO_UNCONFIGURE  = 1
$inError  : mixed
code error of the installation.
$globalSetup  : GlobalSetup
$jelixMaxVersion  : string
$jelixMinVersion  : string
$moduleConfigurator  : Configurator
$moduleInfos  : ModuleInfos
informations of the modules from their module.xml.
$moduleInstaller  : jInstallerModule|Installer
$moduleMainUpgrader  : jInstallerModule|Installer
$moduleStatus  : ModuleStatus
status of modules into the application.
$moduleUninstaller  : jInstallerModule|Uninstaller
$moduleUpgraders  : array<string|int, jInstallerModule>|array<string|int, Installer>
$name  : string
$upgradersContexts  : mixed
__construct()  : mixed
checkJelixVersion()  : mixed
checkVersion()  : mixed
getConfigurator()  : null|Configurator
instancies the object which is responsible to configure the module.
getDbProfile()  : mixed
getDependencies()  : mixed
getIncompatibilities()  : mixed
getInstalledVersion()  : mixed
getInstaller()  : null|jIInstallerComponent|InstallerInterface
instancies the object which is responsible to install the module.
getInstallParameters()  : array<string|int, string>
getJelixVersion()  : mixed
getModuleInfos()  : mixed
getModuleStatus()  : mixed
getName()  : mixed
getPath()  : mixed
getSourceDate()  : mixed
getSourceVersion()  : mixed
getUninstaller()  : null|jIInstallerComponent|UninstallerInterface
instancies the object which is responsible to uninstall the module.
getUpgraders()  : array<string|int, jIInstallerComponent>|array<string|int, InstallerInterface>
return the list of objects which are responsible to upgrade the module from the current installed version of the module.
hasUninstallScript()  : mixed
init()  : mixed
initialize the object, by reading the identity file.
installFinished()  : mixed
isEnabled()  : mixed
isEnabledOnlyInLocalConfiguration()  : mixed
isInstalled()  : mixed
isUpgraded()  : bool
saveModuleStatus()  : mixed
save module infos into the app config or the local config.
setInstalledVersion()  : mixed
setInstallParameters()  : mixed
Set installation parameters into module infos.
uninstallFinished()  : mixed
upgradeFinished()  : mixed
_formatDate()  : mixed
checkUpgraderValidity()  : false|string
createConfigurator()  : mixed

Constants

Properties

$jelixMaxVersion

protected string $jelixMaxVersion = '*'

the maximum version of jelix for which the component is compatible

Tags

$jelixMinVersion

protected string $jelixMinVersion = '*'

the minimum version of jelix for which the component is compatible

Tags

Methods

checkJelixVersion()

public checkJelixVersion(mixed $jelixVersion) : mixed
Parameters
$jelixVersion : mixed
Tags
Return values
mixed

checkVersion()

public checkVersion(mixed $min, mixed $max) : mixed
Parameters
$min : mixed
$max : mixed
Tags
Return values
mixed

getConfigurator()

instancies the object which is responsible to configure the module.

public getConfigurator(int $actionMode[, bool|null $forLocalConfiguration = null ][, null|mixed $installParameters = null ]) : null|Configurator
Parameters
$actionMode : int

one of CONFIGURATOR_TO_* constants

$forLocalConfiguration : bool|null = null

true if the configuration should be set into the local configuration, false if the configuration should be set into the app configuration null use the scope indicated into the module status

$installParameters : null|mixed = null
Tags
throws
Exception

when configurator class not found

Return values
null|Configurator

the configurator, or null if there isn't any configurator

getInstallParameters()

public getInstallParameters() : array<string|int, string>
Tags
Return values
array<string|int, string>

getUpgraders()

return the list of objects which are responsible to upgrade the module from the current installed version of the module.

public getUpgraders() : array<string|int, jIInstallerComponent>|array<string|int, InstallerInterface>

this method should be called after verifying and resolving dependencies. Needed modules should be installed/upgraded before calling this method

Tags
throws
Exception

if an error occurs during the install

Return values
array<string|int, jIInstallerComponent>|array<string|int, InstallerInterface>

init()

initialize the object, by reading the identity file.

public init() : mixed
Tags
Return values
mixed

isEnabledOnlyInLocalConfiguration()

public isEnabledOnlyInLocalConfiguration() : mixed
Tags
Return values
mixed

saveModuleStatus()

save module infos into the app config or the local config.

public saveModuleStatus() : mixed
Tags
Return values
mixed

setInstalledVersion()

public setInstalledVersion(mixed $version) : mixed
Parameters
$version : mixed
Tags
Return values
mixed

setInstallParameters()

Set installation parameters into module infos.

public setInstallParameters(array<string|int, string> $parameters) : mixed
Parameters
$parameters : array<string|int, string>
Tags
Return values
mixed

upgradeFinished()

public upgradeFinished(mixed $upgrader) : mixed
Parameters
$upgrader : mixed
Tags
Return values
mixed

_formatDate()

protected _formatDate(mixed $date) : mixed
Parameters
$date : mixed
Tags
Return values
mixed

checkUpgraderValidity()

protected checkUpgraderValidity(Version $currentVersion, string $currentVersionDate, Version $newVersion, string $newVersionDate, array<string|int, string> $upgraderTargetVersions, string $upgraderDate) : false|string
Parameters
$currentVersion : Version
$currentVersionDate : string
$newVersion : Version
$newVersionDate : string
$upgraderTargetVersions : array<string|int, string>
$upgraderDate : string
Tags
Return values
false|string

createConfigurator()

protected createConfigurator([mixed $installParameters = null ]) : mixed
Parameters
$installParameters : mixed = null
Tags
Return values
mixed

Search results