Class Zend_Config

Description

Implements interfaces:

  • Countable (internal interface)
  • Iterator (internal interface)

  • license: New BSD License
  • copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Config.php (line 35)


	
			
Variable Summary
Method Summary
 Zend_Config __construct (array $array, [boolean $allowModifications = false])
 array asArray ()
 int count ()
 mixed current ()
 mixed key ()
 void next ()
 void rewind ()
 boolean valid ()
 boolean _isValidKeyName (string $key)
 mixed __get (string $name)
 boolean __isset (string $name)
 void __set (string $name, mixed $value)
Variables
mixed $_allowModifications (line 37)
  • access: protected
mixed $_data (line 39)
  • access: protected
mixed $_iterationPointerValid (line 38)
  • access: protected
Methods
Constructor __construct (line 53)

Zend_Config provides a property based interface to an array. The data are read only unless $allowModifications is set to true on construction.

Zend_Config also implements Countable and Iterator to facilitate easy access to the data.

  • access: public
  • throws: Zend_Config_Exception
Zend_Config __construct (array $array, [boolean $allowModifications = false])
  • array $array
  • boolean $allowModifications
asArray (line 121)

Return an associative array of the stored data.

  • access: public
array asArray ()
count (line 150)

Defined by Countable interface

  • access: public
int count ()

Implementation of:
Countable::count
current (line 160)

Defined by Iterator interface

  • access: public
mixed current ()

Implementation of:
Iterator::current
key (line 170)

Defined by Iterator interface

  • access: public
mixed key ()

Implementation of:
Iterator::key
next (line 179)

Defined by Iterator interface

  • access: public
void next ()

Implementation of:
Iterator::next
rewind (line 192)

Defined by Iterator interface

  • access: public
void rewind ()

Implementation of:
Iterator::rewind
valid (line 203)

Defined by Iterator interface

  • access: public
boolean valid ()

Implementation of:
Iterator::valid
_isValidKeyName (line 75)

Ensure that the key is a valid PHP property name

  • access: protected
boolean _isValidKeyName (string $key)
  • string $key
__get (line 86)

Magic function so that $obj->value will work.

  • access: public
mixed __get (string $name)
  • string $name
__isset (line 140)

Support isset() overloading on PHP 5.1

  • access: protected
boolean __isset (string $name)
  • string $name
__set (line 103)

Only allow setting of a property if $allowModifications was set to true on construction. Otherwise, throw an exception.

  • access: public
  • throws: Zend_Config_Exception
void __set (string $name, mixed $value)
  • string $name
  • mixed $value

Documentation generated on Fri, 30 Jun 2006 11:19:51 -0500 by phpDocumentor 1.3.0RC6