Interface for bootstrap resources

category Zend
package Zend_Application
subpackage Resource
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__construct(mixed $options = null

Must take an optional single argument, $options.

Parameters

$options

mixed

Retrieve the bootstrap to which the resource is attached

getBootstrap() : \Zend_Application_Bootstrap_Bootstrapper

Returns

\Zend_Application_Bootstrap_Bootstrapper

Retrieve resource options

getOptions() : array

Returns

array

Strategy pattern: initialize resource

init() : mixed

Returns

mixed

Set the bootstrap to which the resource is attached

setBootstrap(\Zend_Application_Bootstrap_Bootstrapper $bootstrap) : \Zend_Application_Resource_Resource

Parameters

$bootstrap

\Zend_Application_Bootstrap_Bootstrapper

Returns

\Zend_Application_Resource_Resource

Set resource options

setOptions(array $options) : \Zend_Application_Resource_Resource

Parameters

$options

array

Returns

\Zend_Application_Resource_Resource