Abstract Class Zend_Environment_Module_Abstract

Description

Implements interfaces:

  • 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 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
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:
_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