Class rex_plugin

Class for plugins.

rex_package implements rex_package_interface
Extended by rex_plugin implements rex_plugin_interface
Package: redaxo\core\packages
Author: gharlan
Located at redaxo/src/core/lib/packages/plugins/plugin.php

Methods summary

public
# __construct( string $name, rex_addon $addon )

Constructor.

public static self
# get( string $addon, string $plugin = null )

Returns the plugin by the given name.

public static boolean
# exists( string $addon, string $plugin = null )

Returns if the plugin 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
# isAvailable( )

Returns if the package is available (activated and installed).

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 static self[]
# getRegisteredPlugins( string $addon )

Returns the registered plugins of the given addon.

public static self[]
# getInstalledPlugins( string $addon )

Returns the installed plugins of the given addons.

public static self[]
# getAvailablePlugins( string $addon )

Returns the available plugins of the given addons.

public static self[]
# getSystemPlugins( string $addon )

Returns the system plugins of the given addons.

Methods inherited from rex_package

boot(), clearCache(), enlist(), getAuthor(), getAvailablePackages(), getConfig(), getInstalledPackages(), getName(), getProperty(), getRegisteredPackages(), getSetupPackages(), getSupportPage(), getSystemPackages(), getVersion(), hasConfig(), hasProperty(), includeFile(), 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