View Source

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[{zone-template-instance:ZFPROP:Proposal Zone Template}


[Nick Daugherty|]


1.0 - 7 May 2010: Initial Draft.

Zend_Config_Writer_Db is a component for saving Zend_Config objects to a database table, rather than a flat file.



* This component *will* extend Zend_Config_Writer
* This component *will* save a Zend_Config object to a database table in a format that can be read by Zend_Config_Db

* Zend_Config_Exception
* Zend_Config_Writer
* Zend_Db_Table

Zend_Config_Writer_Db is the complement to Zend_Config_Db. It will write Zend_Config objects to a database as key/value pairs, where each table row is a key/value pair. Storing configurations in this way can have many benefits, perhaps the largest being that the Zend_Config object is more easily accessible from multiple places.

For example, a service that uses 3 application servers and 1 database server could store the configuration in the database and the 3 app servers read the configuration from the db. This has the immediate benefit of simpler updates, as the configuration only needs to be updated in one place, rather than in the saved Ini or Xml files on each app server.

* Milestone 1: [design notes will be published here|]
* Milestone 2: Working prototype checked into the incubator supporting use cases #1, #2, ...
* Milestone 3: Working prototype checked into the incubator supporting use cases #3 and #4.
* Milestone 4: Unit tests exist, work, and are checked into SVN.
* Milestone 5: Initial documentation exists.

* Zend_Config_Writer_Db




class Zend_Config_Writer_Db {