## Zend_Environment_Module_Abstract

Description

Implements interfaces:

- Zend_Environment_Module_Interface

- abstract:
- license: New BSD License
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Environment/Module/Abstract.php (line 42)

    Zend_Environment_Container_Abstract
       |
       --Zend_Environment_Module_Abstract

Direct descendents

Class | Description
--- | ---
Zend_Environment_Module_Cli |
Zend_Environment_Module_Core |
Zend_Environment_Module_Extension |
Zend_Environment_Module_Ini |
Zend_Environment_Module_Os |
Zend_Environment_Module_Security |
Zend_Environment_Module_Server |

Class Constant Summary
PATH_PHP_MANUAL = 'http://www.php.net/manual/en/'
Variable Summary
mixed $_id
mixed $_info
mixed $_type
Method Summary
void __construct (string $id)
string getId ()
string getType ()
void _init ()
array _parsePhpInfo (string $section)
string _underscore (string $key)
Variables
mixed $_id (line 49)

- access: protected

mixed $_info = 'Zend_Environment_Info' (line 50)

- access: protected

mixed $_type (line 51)

- access: protected

Redefined in descendants as:

- Zend_Environment_Module_Cli::$_type
- Zend_Environment_Module_Core::$_type
- Zend_Environment_Module_Extension::$_type
- Zend_Environment_Module_Ini::$_type
- Zend_Environment_Module_Os::$_type
- Zend_Environment_Module_Security::$_type
- Zend_Environment_Module_Server::$_type

#### Inherited Variables

Inherited from Zend_Environment_Container_Abstract

> Zend_Environment_Container_Abstract::$_data
> Zend_Environment_Container_Abstract::$_ptr

Methods
Constructor __construct (line 59)

Constructor requires a unique id

- access: public

void __construct (string $id)

- string $id

getId (line 146)

Retrieve Module id.

- access: public

string getId ()

Implementation of:

Zend_Environment_Module_Interface::getId()
  Returns the unique id of a module

getType (line 156)

Retrieve Module type.

- access: public

string getType ()

Implementation of:

Zend_Environment_Module_Interface::getType()
  Returns the type of the module as defined by the protected property $_type

_init (line 72)

The _init() method is where the module is propagated. Since the methods for populating the fields can vary this is left to each concrete module to implement.

- access: protected
- abstract:

void _init ()

Redefined in descendants as:

- Zend_Environment_Module_Cli::_init()
- Zend_Environment_Module_Core::_init()
- Zend_Environment_Module_Extension::_init()
- Zend_Environment_Module_Ini::_init()
- Zend_Environment_Module_Os::_init()
- Zend_Environment_Module_Security::_init()
- Zend_Environment_Module_Server::_init()

_parsePhpInfo (line 100)

Convert phpinfo output to an array.

As phpinfo() output can vary from section to section, the methods for extracting text vary for each. Where multiple values exists for a directive within a section, these are converted to arrays.

Directives are also converted to an underscore-based name to allow legal property names.

- access: protected

array _parsePhpInfo (string $section)

- string $section

_underscore (line 80)

Convert keys to valid property ids.

- access: protected

string _underscore (string $key)

- string $key

#### Inherited Methods

Inherited From Zend_Environment_Container_Abstract

> Zend_Environment_Container_Abstract::asArray()
> Zend_Environment_Container_Abstract::count()
> Zend_Environment_Container_Abstract::current()
> Zend_Environment_Container_Abstract::key()
> Zend_Environment_Container_Abstract::next()
> Zend_Environment_Container_Abstract::rewind()
> Zend_Environment_Container_Abstract::valid()
> Zend_Environment_Container_Abstract::__get()
> Zend_Environment_Container_Abstract::__isset()
> Zend_Environment_Container_Abstract::__set()

Class Constants
PATH_PHP_MANUAL = 'http://www.php.net/manual/en/' (line 47)

Constants to Zend Framework / PHP paths

Documentation generated on Wed, 21 Feb 2007 12:02:11 -0800 by phpDocumentor 1.3.1