API Documentation

Application.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Application
version
$Id: Application.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Application

Description

Zend Framework

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.

Zend_Application

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Application
Properties
$_autoloader
$_bootstrap
$_environment
$_optionKeys
$_options
Methods
__construct
getEnvironment
getAutoloader
setOptions
getOptions
hasOption
getOption
mergeOptions
setPhpSettings
setIncludePaths
setAutoloaderNamespaces
setBootstrap
getBootstrap
bootstrap
run
_loadConfig

Description

Properties

$_autoloader

Zend_Loader_Autoloader $_autoloader = ''

Autoloader to use

Details

$_autoloader
Zend_Loader_Autoloader
visibility
protected
default
final
false
static
false

$_bootstrap

Zend_Application_Bootstrap_BootstrapAbstract $_bootstrap = ''

Bootstrap

Details

$_bootstrap
Zend_Application_Bootstrap_BootstrapAbstract
visibility
protected
default
final
false
static
false

$_environment

string $_environment = ''

Application environment

Details

$_environment
string
visibility
protected
default
final
false
static
false

$_optionKeys

array $_optionKeys = 'array'

Flattened (lowercase) option keys

Details

$_optionKeys
array
visibility
protected
default
array
final
false
static
false

$_options

array $_options = 'array'

Options for Zend_Application

Details

$_options
array
visibility
protected
default
array
final
false
static
false

Methods

__construct

__construct( string $environment, string|array|Zend_Config $options = null ) : void

Constructor

Initialize application. Potentially initializes include_paths, PHP settings, and bootstrap class.

Arguments
$environment
string
$options
stringarrayZend_Config
String path to configuration file, or array/Zend_Config of configuration options
Details
visibility
public
final
false
static
false
throws
When invalid options are provided

_loadConfig

_loadConfig( string $file ) : array

Load configuration file of options

Arguments
$file
string
Output
array
Details
visibility
protected
final
false
static
false
throws
When invalid configuration file is provided

bootstrap

bootstrap( null|string|array $resource = null ) : Zend_Application

Bootstrap application

Arguments
$resource
nullstringarray
Details
visibility
public
final
false
static
false

getAutoloader

getAutoloader( ) : Zend_Loader_Autoloader

Retrieve autoloader instance

Details
visibility
public
final
false
static
false

getBootstrap

getBootstrap( ) : Zend_Application_Bootstrap_BootstrapAbstract

Get bootstrap object

Details
visibility
public
final
false
static
false

getEnvironment

getEnvironment( ) : string

Retrieve current environment

Output
string
Details
visibility
public
final
false
static
false

getOption

getOption( string $key ) : mixed

Retrieve a single option

Arguments
$key
string
Output
mixed
Details
visibility
public
final
false
static
false

getOptions

getOptions( ) : array

Retrieve application options (for caching)

Output
array
Details
visibility
public
final
false
static
false

hasOption

hasOption( string $key ) : bool

Is an option present?

Arguments
$key
string
Output
bool
Details
visibility
public
final
false
static
false

mergeOptions

mergeOptions( array $array1, mixed $array2 = null ) : array

Merge options recursively

Arguments
$array1
array
$array2
mixed
Output
array
Details
visibility
public
final
false
static
false

run

run( ) : void

Run the application

Details
visibility
public
final
false
static
false

setAutoloaderNamespaces

setAutoloaderNamespaces( array $namespaces ) : Zend_Application

Set autoloader namespaces

Arguments
$namespaces
array
Details
visibility
public
final
false
static
false

setBootstrap

setBootstrap( string $path, string $class = null ) : Zend_Application

Set bootstrap path/class

Arguments
$path
string
$class
string
Details
visibility
public
final
false
static
false

setIncludePaths

setIncludePaths( array $paths ) : Zend_Application

Set include path

Arguments
$paths
array
Details
visibility
public
final
false
static
false

setOptions

setOptions( array $options ) : Zend_Application

Set application options

Arguments
$options
array
Details
visibility
public
final
false
static
false
throws
When no bootstrap path is provided
throws
When invalid bootstrap information are provided

setPhpSettings

setPhpSettings( array $settings, string $prefix ) : Zend_Application

Set PHP configuration settings

Arguments
$settings
array
$prefix
string
Key prefix to prepend to array values (used to map . separated INI values)
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.