PHP Class ViMbAdmin_Plugin

Show file Open project: opensolutions/vimbadmin Class Usage Examples

Public Methods

Method Description
__construct ( OSS_Controller_Action $controller, $classname )
getConfig ( ) : Zend_Config_Ini Get the configuration
getName ( ) : string Get the plugin name
setConfig ( Zend_Config_Ini $config ) Set the configuration
update ( string $controller, string $action, string $hook, OSS_Controller_Action $controllerObject, $params = null ) The function which is called by observed classes

Protected Methods

Method Description
loadConfig ( $file ) : Zend_Config_Ini Load the specified configuration file

Method Details

__construct() public method

public __construct ( OSS_Controller_Action $controller, $classname )
$controller OSS_Controller_Action

getConfig() public method

Get the configuration
public getConfig ( ) : Zend_Config_Ini
return Zend_Config_Ini $config

getName() public method

Get the plugin name
public getName ( ) : string
return string

loadConfig() protected method

Load the specified configuration file
protected loadConfig ( $file ) : Zend_Config_Ini
return Zend_Config_Ini $config

setConfig() public method

Set the configuration
public setConfig ( Zend_Config_Ini $config )
$config Zend_Config_Ini

update() public method

The function which is called by observed classes
public update ( string $controller, string $action, string $hook, OSS_Controller_Action $controllerObject, $params = null )
$controller string
$action string
$hook string
$controllerObject OSS_Controller_Action