Zend Framework
1.12
|
Public Member Functions | |
__construct ($environment, $options=null) | |
Constructor. | |
getEnvironment () | |
Retrieve current environment. | |
getAutoloader () | |
Retrieve autoloader instance. | |
setOptions (array $options) | |
Set application options. | |
getOptions () | |
Retrieve application options (for caching) | |
hasOption ($key) | |
Is an option present? | |
getOption ($key) | |
Retrieve a single option. | |
mergeOptions (array $array1, $array2=null) | |
Merge options recursively. | |
setPhpSettings (array $settings, $prefix= '') | |
Set PHP configuration settings. | |
setIncludePaths (array $paths) | |
Set include path. | |
setAutoloaderNamespaces (array $namespaces) | |
Set autoloader namespaces. | |
setBootstrap ($path, $class=null) | |
Set bootstrap path/class. | |
getBootstrap () | |
Get bootstrap object. | |
bootstrap ($resource=null) | |
Bootstrap application. | |
run () | |
Run the application. | |
Protected Member Functions | |
_loadConfig ($file) | |
Load configuration file of options. | |
Protected Attributes | |
$_autoloader | |
$_bootstrap | |
$_environment | |
$_optionKeys = array() | |
$_options = array() | |
__construct | ( | $environment, | |
$options = null |
|||
) |
Constructor.
Initialize application. Potentially initializes include_paths, PHP settings, and bootstrap class.
string | $environment | |
string | array | Zend_Config | $options | String path to configuration file, or array/Zend_Config of configuration options |
Zend_Application_Exception | When invalid options are provided |
|
protected |
Load configuration file of options.
string | $file |
Zend_Application_Exception | When invalid configuration file is provided |
bootstrap | ( | $resource = null | ) |
getAutoloader | ( | ) |
Retrieve autoloader instance.
getBootstrap | ( | ) |
Get bootstrap object.
getEnvironment | ( | ) |
Retrieve current environment.
getOption | ( | $key | ) |
Retrieve a single option.
string | $key |
getOptions | ( | ) |
Retrieve application options (for caching)
hasOption | ( | $key | ) |
Is an option present?
string | $key |
mergeOptions | ( | array | $array1, |
$array2 = null |
|||
) |
Merge options recursively.
array | $array1 | |
mixed | $array2 |
run | ( | ) |
Run the application.
setAutoloaderNamespaces | ( | array | $namespaces | ) |
setBootstrap | ( | $path, | |
$class = null |
|||
) |
setIncludePaths | ( | array | $paths | ) |
setOptions | ( | array | $options | ) |
Set application options.
array | $options |
Zend_Application_Exception | When no bootstrap path is provided |
Zend_Application_Exception | When invalid bootstrap information are provided |
setPhpSettings | ( | array | $settings, |
$prefix = '' |
|||
) |
Set PHP configuration settings.
array | $settings | |
string | $prefix | Key prefix to prepend to array values (used to map . separated INI values) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |