PHP 클래스 ViMbAdmin_Controller_PluginAction

All application controlers subclass this rather than Zend's version directly.
상속: extends ViMbAdmin_Controller_Action, implements OSS_Plugin_Observable
파일 보기 프로젝트 열기: opensolutions/vimbadmin

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

메소드 상세

__construct() 공개 메소드

Override the Zend_Controller_Action's constructor (which is called at the very beginning of this function anyway).
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

attach() 공개 메소드

Attach an instaniated observer
public attach ( OSS_Plugin_Observer $observer )
$observer OSS_Plugin_Observer

detach() 공개 메소드

Detach an observer
public detach ( OSS_Plugin_Observer $observer )
$observer OSS_Plugin_Observer

isEdit() 공개 메소드

Getter method for isEdit
public isEdit ( ) : boolean
리턴 boolean

loadObservers() 보호된 메소드

Loads any found plugin and instaniates it (unless disabled by configuration).
protected loadObservers ( $path )

notify() 공개 메소드

Give any observers a chance to execute their plugin code
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 )

registerObservers() 보호된 메소드

FIXME This is 'autoload' functionality which can be expensive. Keep found plugin list in memcache? FIXME Ordering - allow option to specify desired plugins in config
protected registerObservers ( )

프로퍼티 상세

$isEdit 보호되어 있는 프로퍼티

Set by the add/edit actions, else null. Can be used by plugins to know if this is an add or edit operation.
protected bool $isEdit
리턴 boolean