a class to install a component (module or plugin)
| package |
jelix |
|---|---|
| subpackage |
installer |
| since | 1.2 |
__construct(string $name, string $path, \jInstaller $mainInstaller)
stringthe name of the component
stringthe path of the component
\jInstaller
addModuleInfos( $epId, \jInstallerModuleInfos $module)
checkJelixVersion( $jelixVersion)
checkVersion( $min, $max)
getAccessLevel( $epId)
getInstalledVersion( $epId)
getInstaller(\jInstallerEntryPoint $ep, boolean $installWholeApp) : \jIInstallerComponent
booleantrue if the installation is done during app installation
\jIInstallerComponentthe installer, or null if there isn't any installer or false if the installer is useless for the given parameter
getInstallParameters( $epId)
getJelixVersion()
getName()
getPath()
getSourceDate()
getSourceVersion()
getUpgraders(\jInstallerEntryPoint $ep) : array
this method should be called after verifying and resolving dependencies. Needed components (modules or plugins) should be installed/upgraded before calling this method
| Throws |
|
|---|
arrayarray of jIInstallerComponent
init()
installFinished( $ep)
isInstalled( $epId)
isUpgraded( $epId)
readDependencies( $xml)
readIdentity()
| Throws |
|
|---|
setInstalledVersion( $epId, $version)
setInstallParameters( $epId, $parameters)
upgradeFinished( $ep, $upgrader)
name : string
| var |
name of the component |
|---|
string
path : string
| var |
the path of the directory of the component it should be set by the constructor |
|---|
string
sourceVersion : string
| var |
version of the current sources of the module |
|---|
string
sourceDate : string
| var |
the date of the current sources of the module |
|---|
string
identityNamespace : string
| var |
the namespace of the xml file |
|---|
string
rootName : string
| var |
the expected name of the root element in the xml file |
|---|
string
identityFile : string
| var |
the name of the xml file |
|---|
string
mainInstaller : \jInstaller
dependencies :
jelixMinVersion : string
| var |
the minimum version of jelix for which the component is compatible |
|---|
string
jelixMaxVersion : string
| var |
the maximum version of jelix for which the component is compatible |
|---|
string
inError :
moduleInfos : array<mixed,\jInstallerModuleInfos>
identityReaded : boolean
| var |
indicate if the identify file has already been readed |
|---|
boolean