Class rex_addon

Class for addons.

rex_package implements rex_package_interface
Extended by rex_addon implements rex_addon_interface
Package: redaxo\core\packages
Author: gharlan
Located at redaxo/src/core/lib/packages/addons/addon.php

Methods summary

public static self
# get( string $addon )

Returns the addon by the given name.

public static boolean
# exists( string $addon )

Returns if the addon exists.

public rex_addon
# getAddon( )

Returns the related Addon.

public string
# getPackageId( )

Returns the package ID.

public string
# getType( )

Returns the package type as string.

public
# getPath( string $file = '' )

Returns the base path.

public
# getAssetsPath( string $file = '' )

Returns the assets path.

public
# getAssetsUrl( string $file = '' )

Returns the assets url.

public
# getDataPath( string $file = '' )

Returns the data path.

public
# getCachePath( string $file = '' )

Returns the cache path.

public boolean
# isSystemPackage( )

Returns if it is a system package.

public string
# i18n( string $key )

Adds the package prefix to the given key and returns the translation for it.

public rex_plugin
# getPlugin( string $plugin )

Returns the child plugin by the given name.

public boolean
# pluginExists( string $plugin )

Returns if the plugin exists.

public rex_plugin[]
# getRegisteredPlugins( )

Returns the registered plugins.

public rex_plugin[]
# getInstalledPlugins( )

Returns the installed plugins.

public rex_plugin[]
# getAvailablePlugins( )

Returns the available plugins.

public rex_plugin[]
# getSystemPlugins( )

Returns the system plugins.

public static self[]
# getRegisteredAddons( )

Returns the registered addons.

public static self[]
# getInstalledAddons( )

Returns the installed addons.

public static self[]
# getAvailableAddons( )

Returns the available addons.

public static self[]
# getSetupAddons( )

Returns the setup addons.

public static self[]
# getSystemAddons( )

Returns the system addons.

public static
# initialize( mixed $dbExists = true )

Initializes all packages.

Methods inherited from rex_package

__construct(), boot(), clearCache(), enlist(), getAuthor(), getAvailablePackages(), getConfig(), getInstalledPackages(), getName(), getProperty(), getRegisteredPackages(), getSetupPackages(), getSupportPage(), getSystemPackages(), getVersion(), hasConfig(), hasProperty(), includeFile(), isAvailable(), isInstalled(), loadProperties(), removeConfig(), removeProperty(), setConfig(), setProperty()

Constants summary

Constants inherited from rex_package

FILE_BOOT, FILE_INSTALL, FILE_INSTALL_SQL, FILE_PACKAGE, FILE_UNINSTALL, FILE_UNINSTALL_SQL, FILE_UPDATE