PHP Class Jelix\Installer\AbstractInstallLauncher

Since: 1.2
Datei anzeigen Open project: jelix/jelix Class Usage Examples

Public Properties

Property Type Description
$inError code error of the installation

Protected Properties

Property Type Description
$mainInstaller the main installer controller
$moduleInfos Jelix\Core\Infos\ModuleInfos
$moduleStatuses list of installation information about the module for each entry points

Public Methods

Method Description
__construct ( Jelix\Core\Infos\ModuleInfos $moduleInfos, Installer $mainInstaller = null )
addModuleStatus ( string $epId, Jelix\Installer\ModuleStatus $moduleStatus )
checkVersion ( $versionExpression )
getAccessLevel ( $epId )
getDependencies ( ) list of dependencies of the module
getInstallParameters ( $epId )
getInstalledVersion ( $epId )
getInstaller ( EntryPoint $ep, boolean $installWholeApp ) : Jelix\Installer\InstallerInterface get the object which is responsible to install the component. this object should implement InstallerInterface.
getName ( )
getPath ( )
getResolverItem ( string $epId ) : Item
getSourceDate ( )
getSourceVersion ( )
getUpgraders ( EntryPoint $ep ) : Jelix\Installer\InstallerInterface[] return the list of objects which are responsible to upgrade the component from the current installed version of the component.
installFinished ( $ep )
isActivated ( $epId )
isInstalled ( $epId )
isUpgraded ( $epId )
setInstallParameters ( $epId, $parameters )
setInstalledVersion ( $epId, $version )
uninstallFinished ( $ep )
upgradeFinished ( $ep, $upgrader )

Protected Methods

Method Description
getInstallAction ( $epId )

Method Details

__construct() public method

public __construct ( Jelix\Core\Infos\ModuleInfos $moduleInfos, Installer $mainInstaller = null )
$moduleInfos Jelix\Core\Infos\ModuleInfos
$mainInstaller Installer

addModuleStatus() public method

public addModuleStatus ( string $epId, Jelix\Installer\ModuleStatus $moduleStatus )
$epId string the id of the entrypoint
$moduleStatus Jelix\Installer\ModuleStatus module status

checkVersion() public method

public checkVersion ( $versionExpression )

getAccessLevel() public method

public getAccessLevel ( $epId )

getDependencies() public method

list of dependencies of the module
public getDependencies ( )

getInstallAction() protected method

protected getInstallAction ( $epId )

getInstallParameters() public method

public getInstallParameters ( $epId )

getInstalledVersion() public method

public getInstalledVersion ( $epId )

getInstaller() abstract public method

get the object which is responsible to install the component. this object should implement InstallerInterface.
abstract public getInstaller ( EntryPoint $ep, boolean $installWholeApp ) : Jelix\Installer\InstallerInterface
$ep EntryPoint the entry point
$installWholeApp boolean true if the installation is done during app installation
return Jelix\Installer\InstallerInterface the installer, or null if there isn't any installer or false if the installer is useless for the given parameter

getName() public method

public getName ( )

getPath() public method

public getPath ( )

getResolverItem() public method

public getResolverItem ( string $epId ) : Item
$epId string
return Jelix\Dependencies\Item

getSourceDate() public method

public getSourceDate ( )

getSourceVersion() public method

public getSourceVersion ( )

getUpgraders() abstract public method

this method should be called after verifying and resolving dependencies. Needed components (modules or plugins) should be installed/upgraded before calling this method
abstract public getUpgraders ( EntryPoint $ep ) : Jelix\Installer\InstallerInterface[]
$ep EntryPoint the entry point
return Jelix\Installer\InstallerInterface[]

installFinished() public method

public installFinished ( $ep )

isActivated() public method

public isActivated ( $epId )

isInstalled() public method

public isInstalled ( $epId )

isUpgraded() public method

public isUpgraded ( $epId )

setInstallParameters() public method

public setInstallParameters ( $epId, $parameters )

setInstalledVersion() public method

public setInstalledVersion ( $epId, $version )

uninstallFinished() public method

public uninstallFinished ( $ep )

upgradeFinished() public method

public upgradeFinished ( $ep, $upgrader )

Property Details

$inError public_oe property

code error of the installation
public $inError

$mainInstaller protected_oe property

the main installer controller
protected $mainInstaller

$moduleInfos protected_oe property

protected ModuleInfos,Jelix\Core\Infos $moduleInfos
return Jelix\Core\Infos\ModuleInfos

$moduleStatuses protected_oe property

list of installation information about the module for each entry points
protected $moduleStatuses