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)
object
See Parent class constructor
object
See Parent class constructor
object
See Parent class constructor
getOptions() : array
array
The options arraygetResource(string $resource) : \Zend_Application_Resource_ResourceAbstract
string
\Zend_Application_Resource_ResourceAbstract
redirectAndEnsureDie(string $where, string $from) : void
string
Defaults to '' - where to redirect to (e.g. controller/action/p1/v1/...)
string
Where you redirected from for logging purposes. Defaults to requested controller/action.
getBootstrap() : \Zend_Application_Bootstrap_Bootstrap
\Zend_Application_Bootstrap_Bootstrap
setBootstrap(\Zend_Application_Bootstrap_Bootstrap $bs)
\Zend_Application_Bootstrap_Bootstrap
traitIsInitialised(string $trait) : bool
string
The name of the trait to check for
bool
Whether the trait has been initialised or nottraitSetInitialised(string $trait)
string
The 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.
object
See Parent class constructor
object
See Parent class constructor
object
See Parent class constructor
$_bootstrap : \Zend_Application_Bootstrap_Bootstrap
$_initialisedTraits : array
This can be used by other traits to check for dependancies.