Controller: Action
| author | Barry O'Donovan |
|---|---|
| author | The Skilled Team of PHP Developers at Open Solutions |
| link | Online documentation |
| category | OSS |
| package | OSS_Controller |
| copyright | Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland |
| license | New BSD License |
__construct(\Zend_Controller_Request_Abstract $request, \Zend_Controller_Response_Abstract $response, array $invokeArgs)
objectSee Parent class constructor
objectSee Parent class constructor
objectSee Parent class constructor
getOptions() : array
arrayThe options arraygetResource(string $resource) : \Zend_Application_Resource_ResourceAbstract
string
\Zend_Application_Resource_ResourceAbstractredirectAndEnsureDie(string $where, string $from) : void
stringDefaults to '' - where to redirect to (e.g. controller/action/p1/v1/...)
stringWhere you redirected from for logging purposes. Defaults to requested controller/action.
getBootstrap() : \Zend_Application_Bootstrap_Bootstrap
\Zend_Application_Bootstrap_BootstrapsetBootstrap(\Zend_Application_Bootstrap_Bootstrap $bs)
\Zend_Application_Bootstrap_Bootstrap
traitIsInitialised(string $trait) : bool
stringThe name of the trait to check for
boolWhether the trait has been initialised or nottraitSetInitialised(string $trait)
stringThe name of the trait to check for
initialiseTraits(object $request, object $response, object $invokeArgs)
This function iterates over the declared traits and initialises them if necessary.
NB - order of initialisation is order of declaration
This function should be called from the contructor and it passes those same variables used for construction to the traits' init methods.
objectSee Parent class constructor
objectSee Parent class constructor
objectSee Parent class constructor
$_bootstrap : \Zend_Application_Bootstrap_Bootstrap
$_initialisedTraits : array
This can be used by other traits to check for dependancies.