View Source

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

{zone-data:component-name}
Zend_Config_Writer_Db
{zone-data}

{zone-data:proposer-list}
[Nick Daugherty|mailto:ndaugherty987@gmail.com]
{zone-data}

{zone-data:liaison}
TBD
{zone-data}

{zone-data:revision}
1.0 - 7 May 2010: Initial Draft.
{zone-data}

{zone-data:overview}
Zend_Config_Writer_Db is a component for saving Zend_Config objects to a database table, rather than a flat file.
{zone-data}

{zone-data:references}

{zone-data}

{zone-data:requirements}
* 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
{zone-data}

{zone-data:dependencies}
* Zend_Config_Exception
* Zend_Config_Writer
* Zend_Db_Table
{zone-data}

{zone-data:operation}
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.
{zone-data}

{zone-data:milestones}
* Milestone 1: [design notes will be published here|http://framework.zend.com/wiki/x/sg]
* 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.
{zone-data}

{zone-data:class-list}
* Zend_Config_Writer_Db
{zone-data}

{zone-data:use-cases}

{zone-data}

{zone-data:skeletons}
{code}

class Zend_Config_Writer_Db {

}
{code}
{zone-data}

{zone-template-instance}]]></ac:plain-text-body></ac:macro>