Class Zend_Config

Description

Implements interfaces:

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

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

Located in /Config.php (line 35)


	
			
Direct descendents
Class Description
 class Zend_Config_Ini
 class Zend_Config_Xml
Variable Summary
 integer $_count
 array $_data
 array $_extends
 integer $_index
Method Summary
 Zend_Config __construct (array $array, [boolean $allowModifications = false])
 array asArray ()
 int count ()
 mixed current ()
 mixed getSectionName ()
 mixed key ()
 void next ()
 void rewind ()
 array toArray ()
 boolean valid ()
 void _assertValidExtend (string $extendingSection, string $extendedSection)
 mixed __get (string $name)
 boolean __isset (string $name)
 void __set (string $name, mixed $value)
Variables
boolean $_allowModifications (line 42)

Whether in-memory modifications to configuration data are allowed

  • access: protected
integer $_count (line 56)

Number of elements in configuration data

  • access: protected
array $_data (line 63)

Contains array of configuration data

  • access: protected
array $_extends = array() (line 81)

This is used to track section inheritance. The keys are names of sections that extend other sections, and the values are the extended sections.

  • access: protected
integer $_index (line 49)

Iteration index

  • access: protected
mixed $_loadedSection (line 73)

Contains which config file sections were loaded. This is null if all sections were loaded, a string name if one section is loaded and an array of string names if multiple sections were loaded.

  • access: protected
Methods
Constructor __construct (line 95)

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.

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

Redefined in descendants as:
areAllSectionsLoaded (line 263)

Returns true if all sections were loaded

  • access: public
boolean areAllSectionsLoaded ()
asArray (line 172)

Return an associative array of the stored data.

  • deprecated:
  • access: public
array asArray ()
count (line 193)

Defined by Countable interface

  • access: public
int count ()

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

Defined by Iterator interface

  • access: public
mixed current ()

Implementation of:
Iterator::current
getSectionName (line 253)

Returns the section name(s) loaded.

  • access: public
mixed getSectionName ()
key (line 213)

Defined by Iterator interface

  • access: public
mixed key ()

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

Defined by Iterator interface

  • access: public
void next ()

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

Defined by Iterator interface

  • access: public
void rewind ()

Implementation of:
Iterator::rewind
toArray (line 153)

Return an associative array of the stored data.

  • access: public
array toArray ()
valid (line 243)

Defined by Iterator interface

  • access: public
boolean valid ()

Implementation of:
Iterator::valid
_assertValidExtend (line 276)

Throws an exception if $extendingSection may not extend $extendedSection, and tracks the section extension if it is valid.

  • throws: Zend_Config_Exception
  • access: protected
void _assertValidExtend (string $extendingSection, string $extendedSection)
  • string $extendingSection
  • string $extendedSection
__get (line 117)

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

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

Support isset() overloading on PHP 5.1

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

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

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

Documentation generated on Sun, 27 May 2007 23:21:47 -0700 by phpDocumentor 1.3.2