PHP Класс Jelix\Installer\AbstractInstallLauncher

С версии: 1.2
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$inError code error of the installation

Защищенные свойства (Protected)

Свойство Тип Описание
$mainInstaller the main installer controller
$moduleInfos Jelix\Core\Infos\ModuleInfos
$moduleStatuses list of installation information about the module for each entry points

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
getInstallAction ( $epId )

Описание методов

__construct() публичный Метод

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

addModuleStatus() публичный Метод

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

checkVersion() публичный Метод

public checkVersion ( $versionExpression )

getAccessLevel() публичный Метод

public getAccessLevel ( $epId )

getDependencies() публичный Метод

list of dependencies of the module
public getDependencies ( )

getInstallAction() защищенный Метод

protected getInstallAction ( $epId )

getInstallParameters() публичный Метод

public getInstallParameters ( $epId )

getInstalledVersion() публичный Метод

public getInstalledVersion ( $epId )

getInstaller() абстрактный публичный Метод

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
Результат 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 getName ( )

getPath() публичный Метод

public getPath ( )

getResolverItem() публичный Метод

public getResolverItem ( string $epId ) : Item
$epId string
Результат Jelix\Dependencies\Item

getSourceDate() публичный Метод

public getSourceDate ( )

getSourceVersion() публичный Метод

public getSourceVersion ( )

getUpgraders() абстрактный публичный Метод

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
Результат Jelix\Installer\InstallerInterface[]

installFinished() публичный Метод

public installFinished ( $ep )

isActivated() публичный Метод

public isActivated ( $epId )

isInstalled() публичный Метод

public isInstalled ( $epId )

isUpgraded() публичный Метод

public isUpgraded ( $epId )

setInstallParameters() публичный Метод

public setInstallParameters ( $epId, $parameters )

setInstalledVersion() публичный Метод

public setInstalledVersion ( $epId, $version )

uninstallFinished() публичный Метод

public uninstallFinished ( $ep )

upgradeFinished() публичный Метод

public upgradeFinished ( $ep, $upgrader )

Описание свойств

$inError публичное свойство

code error of the installation
public $inError

$mainInstaller защищенное свойство

the main installer controller
protected $mainInstaller

$moduleInfos защищенное свойство

protected ModuleInfos,Jelix\Core\Infos $moduleInfos
Результат Jelix\Core\Infos\ModuleInfos

$moduleStatuses защищенное свойство

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