rex_plugin_manager
extends rex_package_manager
in package
Manager class for packages.
Tags
Table of Contents
Properties
- $generatePackageOrder : bool
- $message : string
- $package : T
Methods
- activate() : bool
- Activates a package.
- checkConflicts() : bool
- Checks whether the package is in conflict with other packages.
- checkDependencies() : bool
- Checks if another Package which is activated, depends on the given package.
- checkPackageConflict() : bool
- Checks whether the package is in conflict with another package.
- checkPackageRequirement() : bool
- Checks whether the package requirement is met.
- checkRedaxoRequirement() : bool
- Checks whether the redaxo requirement is met.
- checkRequirements() : bool
- Checks whether the requirements are met.
- deactivate() : bool
- Deactivates a package.
- delete() : bool
- Deletes a package.
- factory() : static
- Creates the manager for the package.
- generatePackageOrder() : void
- Generates the package order.
- getMessage() : string
- Returns the message.
- install() : bool
- Installs a package.
- synchronizeWithFileSystem() : void
- Synchronizes the packages with the file system.
- uninstall() : bool
- Uninstalls a package.
- __construct() : mixed
- _delete() : bool
- Deletes a package.
- i18n() : string
- Translates the given key.
- saveConfig() : void
- Saves the package config.
- wrongPackageId() : string
Properties
$generatePackageOrder
protected
bool
$generatePackageOrder
= \true
$message
protected
string
$message
$package
protected
T
$package
Methods
activate()
Activates a package.
public
activate() : bool
Return values
bool —TRUE on success, FALSE on error
checkConflicts()
Checks whether the package is in conflict with other packages.
public
checkConflicts() : bool
Return values
boolcheckDependencies()
Checks if another Package which is activated, depends on the given package.
public
checkDependencies() : bool
Return values
boolcheckPackageConflict()
Checks whether the package is in conflict with another package.
public
checkPackageConflict(string $packageId) : bool
Parameters
- $packageId : string
-
Package ID
Return values
boolcheckPackageRequirement()
Checks whether the package requirement is met.
public
checkPackageRequirement(string $packageId) : bool
Parameters
- $packageId : string
-
Package ID
Return values
boolcheckRedaxoRequirement()
Checks whether the redaxo requirement is met.
public
checkRedaxoRequirement(string $redaxoVersion) : bool
Parameters
- $redaxoVersion : string
-
REDAXO version
Return values
boolcheckRequirements()
Checks whether the requirements are met.
public
checkRequirements() : bool
Return values
booldeactivate()
Deactivates a package.
public
deactivate() : bool
Return values
bool —TRUE on success, FALSE on error
delete()
Deletes a package.
public
delete() : bool
Return values
bool —TRUE on success, FALSE on error
factory()
Creates the manager for the package.
public
static factory(rex_package $package) : static
Parameters
- $package : rex_package
-
Package
Tags
Return values
staticgeneratePackageOrder()
Generates the package order.
public
static generatePackageOrder() : void
getMessage()
Returns the message.
public
getMessage() : string
Return values
stringinstall()
Installs a package.
public
install([bool $installDump = true ]) : bool
Parameters
- $installDump : bool = true
-
When TRUE, the sql dump will be importet
Tags
Return values
bool —TRUE on success, FALSE on error
synchronizeWithFileSystem()
Synchronizes the packages with the file system.
public
static synchronizeWithFileSystem() : void
uninstall()
Uninstalls a package.
public
uninstall([bool $installDump = true ]) : bool
Parameters
- $installDump : bool = true
-
When TRUE, the sql dump will be importet
Tags
Return values
bool —TRUE on success, FALSE on error
__construct()
protected
__construct(rex_plugin $plugin) : mixed
Parameters
- $plugin : rex_plugin
-
Plugin
_delete()
Deletes a package.
protected
_delete([bool $ignoreState = false ]) : bool
Parameters
- $ignoreState : bool = false
Return values
bool —TRUE on success, FALSE on error
i18n()
Translates the given key.
protected
i18n(string $key) : string
Parameters
- $key : string
-
Key
Return values
string —Tranlates text
saveConfig()
Saves the package config.
protected
static saveConfig() : void
wrongPackageId()
protected
wrongPackageId(mixed $addonName[, mixed $pluginName = null ]) : string
Parameters
- $addonName : mixed
- $pluginName : mixed = null