Application/Resource/Modules.php
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Application
- Subpackage
- Resource
- Version
- $Id: Modules.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Application_Resource_Modules
- Parent(s)
- \Zend_Application_Resource_ResourceAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


array $_options = array()
array()
Details- Type
- array
- Inherited_from
- \Zend_Application_Resource_ResourceAbstract::$$_options


array $_skipOptions = array('options', 'config')
array('options', 'config')
Details- Type
- array
- Inherited_from
- \Zend_Application_Resource_ResourceAbstract::$$_skipOptions
Methods


__construct(mixed $options = null) : void
Constructor
Must take an optional single argument, $options.
Name | Type | Description |
---|---|---|
$options | mixed |


_formatModuleName(string $name) : string
Format a module name to the module class prefix
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
string |


getBootstrap() : null | \Zend_Application_Bootstrap_Bootstrapper
Retrieve the bootstrap to which the resource is attached
Inherited from: \Zend_Application_Resource_ResourceAbstract::getBootstrap()Type | Description |
---|---|
null | \Zend_Application_Bootstrap_Bootstrapper |


getExecutedBootstraps() : \ArrayObject
Get bootstraps that have been run
Type | Description |
---|---|
\ArrayObject |


getOptions() : array
Retrieve resource options
Inherited from: \Zend_Application_Resource_ResourceAbstract::getOptions()Type | Description |
---|---|
array |


init() : array
Initialize modules
Type | Description |
---|---|
array |
Exception | Description |
---|---|
\Zend_Application_Resource_Exception | When bootstrap class was not found |


mergeOptions(array $array1, mixed $array2 = null) : array
Merge options recursively
Inherited from: \Zend_Application_Resource_ResourceAbstract::mergeOptions()Name | Type | Description |
---|---|---|
$array1 | array | |
$array2 | mixed |
Type | Description |
---|---|
array |


setBootstrap(\Zend_Application_Bootstrap_Bootstrapper $bootstrap) : \Zend_Application_Resource_Resource
Set the bootstrap to which the resource is attached
Inherited from: \Zend_Application_Resource_ResourceAbstract::setBootstrap()Name | Type | Description |
---|---|---|
$bootstrap | \Zend_Application_Bootstrap_Bootstrapper |
Type | Description |
---|---|
\Zend_Application_Resource_Resource |


setOptions(array $options) : \Zend_Application_Resource_ResourceAbstract
Set options from array
Inherited from: \Zend_Application_Resource_ResourceAbstract::setOptions()Name | Type | Description |
---|---|---|
$options | array | Configuration for resource |
Type | Description |
---|---|
\Zend_Application_Resource_ResourceAbstract |