PHP Class Jelix\Installer\AbstractInstallLauncher

Since: 1.2
Afficher le fichier Open project: jelix/jelix Class Usage Examples

Méthodes publiques

Свойство Type Description
$inError code error of the installation

Protected Properties

Свойство Type Description
$mainInstaller the main installer controller
$moduleInfos Jelix\Core\Infos\ModuleInfos
$moduleStatuses list of installation information about the module for each entry points

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
getInstallAction ( $epId )

Method Details

__construct() public méthode

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

addModuleStatus() public méthode

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

checkVersion() public méthode

public checkVersion ( $versionExpression )

getAccessLevel() public méthode

public getAccessLevel ( $epId )

getDependencies() public méthode

list of dependencies of the module
public getDependencies ( )

getInstallAction() protected méthode

protected getInstallAction ( $epId )

getInstallParameters() public méthode

public getInstallParameters ( $epId )

getInstalledVersion() public méthode

public getInstalledVersion ( $epId )

getInstaller() abstract public méthode

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
Résultat 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 méthode

public getName ( )

getPath() public méthode

public getPath ( )

getResolverItem() public méthode

public getResolverItem ( string $epId ) : Item
$epId string
Résultat Jelix\Dependencies\Item

getSourceDate() public méthode

public getSourceDate ( )

getSourceVersion() public méthode

public getSourceVersion ( )

getUpgraders() abstract public méthode

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
Résultat Jelix\Installer\InstallerInterface[]

installFinished() public méthode

public installFinished ( $ep )

isActivated() public méthode

public isActivated ( $epId )

isInstalled() public méthode

public isInstalled ( $epId )

isUpgraded() public méthode

public isUpgraded ( $epId )

setInstallParameters() public méthode

public setInstallParameters ( $epId, $parameters )

setInstalledVersion() public méthode

public setInstalledVersion ( $epId, $version )

uninstallFinished() public méthode

public uninstallFinished ( $ep )

upgradeFinished() public méthode

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
Résultat Jelix\Core\Infos\ModuleInfos

$moduleStatuses protected_oe property

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