Detailed Description
Definition at line 28 of file Application.php.
Constructor & Destructor Documentation
__construct |
( |
$ |
environment, |
|
|
$ |
options = null |
|
) |
| |
Constructor
Initialize application. Potentially initializes include_paths, PHP settings, and bootstrap class.
- Parameters:
-
string | $environment | |
string | array | Zend_Config | $options | String path to configuration file, or array/Zend_Config of configuration options |
- Exceptions:
-
Zend_Application_Exception | When invalid options are provided |
- Returns:
- void
Definition at line 76 of file Application.php.
Member Function Documentation
_loadConfig |
( |
$ |
file ) |
[protected] |
Load configuration file of options
- Parameters:
-
- Exceptions:
-
Zend_Application_Exception | When invalid configuration file is provided |
- Returns:
- array
Definition at line 368 of file Application.php.
bootstrap |
( |
$ |
resource = null ) |
|
Get bootstrap object
- Returns:
- Zend_Application_Bootstrap_BootstrapAbstract
Definition at line 331 of file Application.php.
Retrieve current environment
- Returns:
- string
Definition at line 101 of file Application.php.
Retrieve a single option
- Parameters:
-
- Returns:
- mixed
Definition at line 212 of file Application.php.
Retrieve application options (for caching)
- Returns:
- array
Definition at line 190 of file Application.php.
Is an option present?
- Parameters:
-
- Returns:
- bool
Definition at line 201 of file Application.php.
mergeOptions |
( |
array $ |
array1, |
|
|
$ |
array2 = null |
|
) |
| |
Merge options recursively
- Parameters:
-
array | $array1 | |
mixed | $array2 | |
- Returns:
- array
Definition at line 229 of file Application.php.
setAutoloaderNamespaces |
( |
array $ |
namespaces ) |
|
setBootstrap |
( |
$ |
path, |
|
|
$ |
class = null |
|
) |
| |
setIncludePaths |
( |
array $ |
paths ) |
|
setOptions |
( |
array $ |
options ) |
|
Set application options
- Parameters:
-
- Exceptions:
-
Zend_Application_Exception | When no bootstrap path is provided |
Zend_Application_Exception | When invalid bootstrap information are provided |
- Returns:
- Zend_Application
Definition at line 124 of file Application.php.
setPhpSettings |
( |
array $ |
settings, |
|
|
$ |
prefix = '' |
|
) |
| |
Set PHP configuration settings
- Parameters:
-
array | $settings | |
string | $prefix | Key prefix to prepend to array values (used to map . separated INI values) |
- Returns:
- Zend_Application
Definition at line 252 of file Application.php.
The documentation for this class was generated from the following file: