Class rex_package_manager

Manager class for packages.

rex_package_manager uses rex_factory_trait

Direct known subclasses

rex_addon_manager, rex_plugin_manager

Abstract
Package: redaxo\core\packages
Located at redaxo/src/core/lib/packages/manager.php

Methods summary

protected
# __construct( rex_package $package, string $i18nPrefix )

Constructor.

public static static
# factory( rex_package $package )

Creates the manager for the package.

public string
# getMessage( )

Returns the message.

public boolean
# install( boolean $installDump = true )

Installs a package.

public boolean
# uninstall( boolean $installDump = true )

Uninstalls a package.

public boolean
# activate( )

Activates a package.

public boolean
# deactivate( )

Deactivates a package.

public boolean
# delete( )

Deletes a package.

protected boolean
# _delete( boolean $ignoreState = false )

Deletes a package.

abstract protected string
# wrongPackageId( string $addonName, string $pluginName = null )
public boolean
# checkRequirements( )

Checks whether the requirements are met.

public boolean
# checkRedaxoRequirement( string $redaxoVersion )

Checks whether the redaxo requirement is met.

public boolean
# checkPackageRequirement( string $packageId )

Checks whether the package requirement is met.

public boolean
# checkConflicts( )

Checks whether the package is in conflict with other packages.

public boolean
# checkPackageConflict( string $packageId )

Checks whether the package is in conflict with another package.

public boolean
# checkDependencies( )

Checks if another Package which is activated, depends on the given package.

protected string
# i18n( string $key )

Translates the given key.

public static
# generatePackageOrder( )

Generates the package order.

protected static
# saveConfig( )

Saves the package config.

public static
# synchronizeWithFileSystem( )

Synchronizes the packages with the file system.

Methods used from rex_factory_trait

callFactoryClass(), getFactoryClass(), hasFactoryClass(), setFactoryClass()

Properties summary

protected rex_package $package
protected boolean $generatePackageOrder
#true
protected mixed $message