Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Application_Bootstrap_Bootstrap Class Reference

Public Member Functions

 __construct ($application)
 Constructor.
 
 run ()
 Run the application.
 
 setResourceLoader (Zend_Loader_Autoloader_Resource $loader)
 Set module resource loader.
 
 getResourceLoader ()
 Retrieve module resource loader.
 
 getAppNamespace ()
 Get application namespace (used for module autoloading)
 
 setAppNamespace ($value)
 Set application namespace (for module autoloading)
 
- Public Member Functions inherited from Zend_Application_Bootstrap_BootstrapAbstract
 __construct ($application)
 Constructor.
 
 setOptions (array $options)
 Set class state.
 
 getOptions ()
 Get current options from bootstrap.
 
 hasOption ($key)
 Is an option present?
 
 getOption ($key)
 Retrieve a single option.
 
 mergeOptions (array $array1, $array2=null)
 Merge options recursively.
 
 getClassResources ()
 Get class resources (as resource/method pairs)
 
 getClassResourceNames ()
 Get class resource names.
 
 registerPluginResource ($resource, $options=null)
 Register a new resource plugin.
 
 unregisterPluginResource ($resource)
 Unregister a resource from the bootstrap.
 
 hasPluginResource ($resource)
 Is the requested plugin resource registered?
 
 getPluginResource ($resource)
 Get a registered plugin resource.
 
 getPluginResources ()
 Retrieve all plugin resources.
 
 getPluginResourceNames ()
 Retrieve plugin resource names.
 
 setPluginLoader (Zend_Loader_PluginLoader_Interface $loader)
 Set plugin loader for loading resources.
 
 getPluginLoader ()
 Get the plugin loader for resources.
 
 setApplication ($application)
 Set application/parent bootstrap.
 
 getApplication ()
 Retrieve parent application instance.
 
 getEnvironment ()
 Retrieve application environment.
 
 setContainer ($container)
 Set resource container.
 
 getContainer ()
 Retrieve resource container.
 
 hasResource ($name)
 Determine if a resource has been stored in the container.
 
 getResource ($name)
 Retrieve a resource from the container.
 
 __get ($prop)
 Implement PHP's magic to retrieve a ressource in the bootstrap.
 
 __isset ($prop)
 Implement PHP's magic to ask for the existence of a ressource in the bootstrap.
 
 bootstrap ($resource=null)
 Bootstrap individual, all, or multiple resources.
 
 __call ($method, $args)
 Overloading: intercept calls to bootstrap<resourcename>() methods.
 

Protected Attributes

 $_appNamespace = false
 
 $_resourceLoader
 
- Protected Attributes inherited from Zend_Application_Bootstrap_BootstrapAbstract
 $_application
 
 $_classResources
 
 $_container
 
 $_environment
 
 $_optionKeys = array()
 
 $_options = array()
 
 $_pluginLoader
 
 $_pluginResources = array()
 
 $_run = array()
 
 $_started = array()
 

Additional Inherited Members

- Protected Member Functions inherited from Zend_Application_Bootstrap_BootstrapAbstract
 _bootstrap ($resource=null)
 Bootstrap implementation.
 
 _executeResource ($resource)
 Execute a resource.
 
 _loadPluginResource ($resource, $options)
 Load a plugin resource.
 
 _markRun ($resource)
 Mark a resource as having run.
 
 _resolvePluginResourceName ($resource)
 Resolve a plugin resource name.
 

Constructor & Destructor Documentation

__construct (   $application)

Constructor.

Ensure FrontController resource is registered

Parameters
Zend_Application | Zend_Application_Bootstrap_Bootstrapper$application

Implements Zend_Application_Bootstrap_Bootstrapper.

Member Function Documentation

getAppNamespace ( )

Get application namespace (used for module autoloading)

Returns
string
getResourceLoader ( )

Retrieve module resource loader.

Returns
Zend_Loader_Autoloader_Resource
run ( )

Run the application.

Checks to see that we have a default controller directory. If not, an exception is thrown.

If so, it registers the bootstrap with the 'bootstrap' parameter of the front controller, and dispatches the front controller.

Returns
mixed
Exceptions
Zend_Application_Bootstrap_Exception

Implements Zend_Application_Bootstrap_Bootstrapper.

setAppNamespace (   $value)

Set application namespace (for module autoloading)

Parameters
string
Returns
Zend_Application_Bootstrap_Bootstrap
setResourceLoader ( Zend_Loader_Autoloader_Resource  $loader)

Set module resource loader.

Parameters
Zend_Loader_Autoloader_Resource$loader
Returns
Zend_Application_Module_Bootstrap

Member Data Documentation

$_appNamespace = false
protected
$_resourceLoader
protected