category | Zend |
---|---|
package | Zend_Application |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct(string $environment, string|array|\Zend_Config $options= null
, boolean $suppressNotFoundWarnings= null
) : void
Initialize application. Potentially initializes include_paths, PHP settings, and bootstrap class.
string
string
array
\Zend_Config
String path to configuration file, or array/Zend_Config of configuration options
boolean
Should warnings be suppressed when a file is not found during autoloading?
\Zend_Application_Exception |
When invalid options are provided |
---|
bootstrap(null|string|array $resource = null
) : \Zend_Application
null
string
array
\Zend_Application
getAutoloader() : \Zend_Loader_Autoloader
\Zend_Loader_Autoloader
getBootstrap() : \Zend_Application_Bootstrap_BootstrapAbstract
\Zend_Application_Bootstrap_BootstrapAbstract
getEnvironment() : string
string
getOption(string $key) : mixed
string
mixed
getOptions() : array
array
hasOption(string $key) : boolean
string
boolean
mergeOptions(array $array1, mixed $array2 = null
) : array
array
mixed
array
run() : void
setAutoloaderNamespaces(array $namespaces) : \Zend_Application
array
\Zend_Application
setBootstrap(string $path, string $class = null
) : \Zend_Application
string
string
\Zend_Application
setIncludePaths(array $paths) : \Zend_Application
array
\Zend_Application
setOptions(array $options) : \Zend_Application
array
\Zend_Application_Exception |
When no bootstrap path is provided |
---|---|
\Zend_Application_Exception |
When invalid bootstrap information are provided |
\Zend_Application
setPhpSettings(array $settings, string $prefix = ''
) : \Zend_Application
array
string
Key prefix to prepend to array values (used to map . separated INI values)
\Zend_Application
_loadConfig(string $file) : array
string
\Zend_Application_Exception |
When invalid configuration file is provided |
---|
array
$_autoloader : \Zend_Loader_Autoloader
$_bootstrap : \Zend_Application_Bootstrap_BootstrapAbstract
$_environment : string
$_optionKeys : array
array()