Zend_Application_Bootstrap_BootstrapAbstract is an abstract class
which provides the base functionality of a common bootstrap. It implements
both
Zend_Application_Bootstrap_Bootstrapper and
Zend_Application_Bootstrap_ResourceBootstrapper.
Table 6. Zend_Application_Bootstrap_BootstrapAbstract Methods
| Method | Return Value | Parameters | Description |
|---|---|---|---|
__construct($application) |
Void |
|
Constructor. Accepts a single argument, which should be a
|
setOptions(array $options) |
Zend_Application_Bootstrap_Bootstrapper |
|
Any option that has a matching setter will
invoke that setter; otherwise, the option will simply be
stored for later retrieval. As an example, if your
extending class defined a Two additional, special options keys may also be used. pluginPaths may be used to specify prefix paths to plugin resources; it should be an array of class prefix to filesystem path pairs. resources may be used to specify plugin resources to use, and should consist of plugin resource to instantiation options pairs. |
getOptions() |
Array | N/A |
Returns all options registered via
|
hasOption($key) |
Boolean |
|
Determine if an option key is present. |
getOption($key) |
Mixed |
|
Retrieve the value associated with an option key; returns
|
setApplication(Zend_Application |
Zend_Application_Bootstrap_Bootstrapper $application)
|
Zend_Application_Bootstrap_BootstrapAbstract
|
|
Register the parent application or bootstrap object. |
getApplication() |
Zend_Application |
Zend_Application_Bootstrap_Bootstrapper
|
N/A |
Retrieve the application or bootstrap object passed via the constructor. |
getEnvironment() |
String | N/A |
Retrieve the environment string registered with the parent application or bootstrap object. |
getClassResources() |
Array | N/A |
Retrieve a list of available resource initializer names as defined in the class. This may be implementation specific. |
getContainer() |
Object | N/A |
Retrieves the container that stores resources. If no container is currently registered, it registers a Zend_Registry instance before returning it. |
setContainer($container) |
Zend_Application_Bootstrap_BootstrapAbstract
|
|
Provide a container in which to store resources. When a resource method or plugin returns a value, it will be stored in this container for later retrieval. |
hasResource($name) |
Boolean |
|
When a resource method or plugin returns a value, it
will be stored in the resource container (see
|
getResource($name) |
Mixed |
|
When a resource method or plugin returns a value, it
will be stored in the resource container (see
|
bootstrap($resource = null) |
Mixed |
|
If This method can be used to run individual bootstraps either defined in the class itself or via resource plugin classes. A resource defined in the class will be run in preference over a resource plugin in the case of naming conflicts. |
run() |
Void | N/A |
Defines what application logic to run after bootstrapping. |
__call($method, $args) |
Mixed |
|
Provides convenience to bootstrapping individual
resources by allowing you to call
'bootstrap<ResourceName>()' instead of using the
|




