PHP Class rex_package_manager, redaxo

Inheritance: use trait rex_factory_trait
Afficher le fichier Open project: redaxo/redaxo Class Usage Examples

Protected Properties

Свойство Type Description
$generatePackageOrder
$message
$package rex_package

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
__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

Private Methods

Méthode Description
matchVersionConstraints ( string $version, string $constraints ) : boolean Checks the version of the requirement.
readPackageFolder ( string $folder ) : string[] Returns the subfolders of the given folder.

Method Details

__construct() protected méthode

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

_delete() protected méthode

Deletes a package.
protected _delete ( boolean $ignoreState = false ) : boolean
$ignoreState boolean
Résultat boolean TRUE on success, FALSE on error

activate() public méthode

Activates a package.
public activate ( ) : boolean
Résultat boolean TRUE on success, FALSE on error

checkConflicts() public méthode

Checks whether the package is in conflict with other packages.
public checkConflicts ( ) : boolean
Résultat boolean

checkDependencies() public méthode

Checks if another Package which is activated, depends on the given package.
public checkDependencies ( ) : boolean
Résultat boolean

checkPackageConflict() public méthode

Checks whether the package is in conflict with another package.
public checkPackageConflict ( string $packageId ) : boolean
$packageId string Package ID
Résultat boolean

checkPackageRequirement() public méthode

Checks whether the package requirement is met.
public checkPackageRequirement ( string $packageId ) : boolean
$packageId string Package ID
Résultat boolean

checkRedaxoRequirement() public méthode

Checks whether the redaxo requirement is met.
public checkRedaxoRequirement ( string $redaxoVersion ) : boolean
$redaxoVersion string REDAXO version
Résultat boolean

checkRequirements() public méthode

Checks whether the requirements are met.
public checkRequirements ( ) : boolean
Résultat boolean

deactivate() public méthode

Deactivates a package.
public deactivate ( ) : boolean
Résultat boolean TRUE on success, FALSE on error

delete() public méthode

Deletes a package.
public delete ( ) : boolean
Résultat boolean TRUE on success, FALSE on error

factory() public static méthode

Creates the manager for the package.
public static factory ( rex_package $package ) : static
$package rex_package Package
Résultat static

generatePackageOrder() public static méthode

Generates the package order.
public static generatePackageOrder ( )

getMessage() public méthode

Returns the message.
public getMessage ( ) : string
Résultat string

i18n() protected méthode

Translates the given key.
protected i18n ( string $key ) : string
$key string Key
Résultat string Tranlates text

install() public méthode

Installs a package.
public install ( boolean $installDump = true ) : boolean
$installDump boolean When TRUE, the sql dump will be importet
Résultat boolean TRUE on success, FALSE on error

saveConfig() protected static méthode

Saves the package config.
protected static saveConfig ( )

synchronizeWithFileSystem() public static méthode

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

uninstall() public méthode

Uninstalls a package.
public uninstall ( boolean $installDump = true ) : boolean
$installDump boolean When TRUE, the sql dump will be importet
Résultat boolean TRUE on success, FALSE on error

wrongPackageId() abstract protected méthode

abstract protected wrongPackageId ( string $addonName, string $pluginName = null ) : string
$addonName string
$pluginName string
Résultat string

Property Details

$generatePackageOrder protected_oe property

protected $generatePackageOrder

$message protected_oe property

protected $message

$package protected_oe property

protected rex_package $package
Résultat rex_package