PHP Класс rex_package_manager, redaxo

Наследование: use trait rex_factory_trait
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$generatePackageOrder
$message
$package rex_package

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

Метод Описание
activate ( ) : boolean Activates a package.
checkConflicts ( ) : boolean Checks whether the package is in conflict with other packages.
checkDependencies ( ) : boolean Checks if another Package which is activated, depends on the given package.
checkPackageConflict ( string $packageId ) : boolean Checks whether the package is in conflict with another package.
checkPackageRequirement ( string $packageId ) : boolean Checks whether the package requirement is met.
checkRedaxoRequirement ( string $redaxoVersion ) : boolean Checks whether the redaxo requirement is met.
checkRequirements ( ) : boolean Checks whether the requirements are met.
deactivate ( ) : boolean Deactivates a package.
delete ( ) : boolean Deletes a package.
factory ( rex_package $package ) : static Creates the manager for the package.
generatePackageOrder ( ) Generates the package order.
getMessage ( ) : string Returns the message.
install ( boolean $installDump = true ) : boolean Installs a package.
synchronizeWithFileSystem ( ) Synchronizes the packages with the file system.
uninstall ( boolean $installDump = true ) : boolean Uninstalls a package.

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

Метод Описание
__construct ( rex_package $package, string $i18nPrefix ) Constructor.
_delete ( boolean $ignoreState = false ) : boolean Deletes a package.
i18n ( string $key ) : string Translates the given key.
saveConfig ( ) Saves the package config.
wrongPackageId ( string $addonName, string $pluginName = null ) : string

Приватные методы

Метод Описание
matchVersionConstraints ( string $version, string $constraints ) : boolean Checks the version of the requirement.
readPackageFolder ( string $folder ) : string[] Returns the subfolders of the given folder.

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

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

Constructor.
protected __construct ( rex_package $package, string $i18nPrefix )
$package rex_package Package
$i18nPrefix string Prefix for i18n

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

Deletes a package.
protected _delete ( boolean $ignoreState = false ) : boolean
$ignoreState boolean
Результат boolean TRUE on success, FALSE on error

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

Activates a package.
public activate ( ) : boolean
Результат boolean TRUE on success, FALSE on error

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

Checks whether the package is in conflict with other packages.
public checkConflicts ( ) : boolean
Результат boolean

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

Checks if another Package which is activated, depends on the given package.
public checkDependencies ( ) : boolean
Результат boolean

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

Checks whether the package is in conflict with another package.
public checkPackageConflict ( string $packageId ) : boolean
$packageId string Package ID
Результат boolean

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

Checks whether the package requirement is met.
public checkPackageRequirement ( string $packageId ) : boolean
$packageId string Package ID
Результат boolean

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

Checks whether the redaxo requirement is met.
public checkRedaxoRequirement ( string $redaxoVersion ) : boolean
$redaxoVersion string REDAXO version
Результат boolean

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

Checks whether the requirements are met.
public checkRequirements ( ) : boolean
Результат boolean

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

Deactivates a package.
public deactivate ( ) : boolean
Результат boolean TRUE on success, FALSE on error

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

Deletes a package.
public delete ( ) : boolean
Результат boolean TRUE on success, FALSE on error

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

Creates the manager for the package.
public static factory ( rex_package $package ) : static
$package rex_package Package
Результат static

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

Generates the package order.
public static generatePackageOrder ( )

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

Returns the message.
public getMessage ( ) : string
Результат string

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

Translates the given key.
protected i18n ( string $key ) : string
$key string Key
Результат string Tranlates text

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

Installs a package.
public install ( boolean $installDump = true ) : boolean
$installDump boolean When TRUE, the sql dump will be importet
Результат boolean TRUE on success, FALSE on error

saveConfig() защищенный статический Метод

Saves the package config.
protected static saveConfig ( )

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

Synchronizes the packages with the file system.
public static synchronizeWithFileSystem ( )

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

Uninstalls a package.
public uninstall ( boolean $installDump = true ) : boolean
$installDump boolean When TRUE, the sql dump will be importet
Результат boolean TRUE on success, FALSE on error

wrongPackageId() абстрактный защищенный Метод

abstract protected wrongPackageId ( string $addonName, string $pluginName = null ) : string
$addonName string
$pluginName string
Результат string

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

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

protected $generatePackageOrder

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

protected $message

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

protected rex_package $package
Результат rex_package