Class Plugin
A plugin provides means to extend an application with new functionality without requiring changes to the application itself.
An application makes use of a plugin manager to load plugins during startup (i.e. from a configuration file) and implements hooks to delegate control to plugins to extend the functionality of certain aspects. Plugins can additionally use existing framework methods to extend existing classes, such as attaching a new method.
Small plugins can implement their full functionality within a single file by providing a range of callback methods that process or extend data provided by the application. They may additionally provide new encoders, processor and other data types that are used by the application.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Plugin
Namespace: Core
Package: Core\Plugin
Since: 3.1
Requires: PHP 5.3
Version: 1.0
Located at Plugin.inc.php
Methods summary
abstract public
boolean
|
#
onZoneLoad(
Callback invoked once a zone the plugin registered for is loaded. Zones are usually loaded on first activity once, hence if a zone is not active, it might never be loaded. |
public static
string[]
|
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType