프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$isEdit | boolean | Set by the add/edit actions, else null. Can be used by plugins to know if this is an add or edit operation. |
메소드 | 설명 | |
---|---|---|
__construct ( Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = null ) | Override the Zend_Controller_Action's constructor (which is called at the very beginning of this function anyway). | |
attach ( OSS_Plugin_Observer $observer ) | Attach an instaniated observer | |
detach ( OSS_Plugin_Observer $observer ) | Detach an observer | |
isEdit ( ) : boolean | Getter method for isEdit | |
notify ( string $controller, string $action, string $hook, OSS_Controller_Action $controllerObject, object $params = null ) | Give any observers a chance to execute their plugin code |
메소드 | 설명 | |
---|---|---|
loadObservers ( $path ) | Loads any found plugin and instaniates it (unless disabled by configuration). | |
registerObservers ( ) | Registers any plugins found in the main plugin directory as well as modules. |
public __construct ( Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = null ) | ||
$request | Zend_Controller_Request_Abstract | See Parent class constructor |
$response | Zend_Controller_Response_Abstract | See Parent class constructor |
$invokeArgs | array | See Parent class constructor |
public attach ( OSS_Plugin_Observer $observer ) | ||
$observer | OSS_Plugin_Observer |
public detach ( OSS_Plugin_Observer $observer ) | ||
$observer | OSS_Plugin_Observer |
protected loadObservers ( $path ) |
public notify ( string $controller, string $action, string $hook, OSS_Controller_Action $controllerObject, object $params = null ) | ||
$controller | string | The controller name (e.g. 'mailbox', 'alias', etc |
$action | string | The action name (e.g. 'add', 'edit', etc) |
$hook | string | The name of the hook to add (e.g. 'preSave') |
$controllerObject | OSS_Controller_Action | The controller object |
$params | object | An optional anonymous object ( http://www.barryodonovan.com/index.php/2012/07/05/anonymous-objects-in-php ) |
protected registerObservers ( ) |
protected bool $isEdit | ||
리턴 | boolean |