|
@@ -6,8 +6,8 @@
|
|
|
<classname>Zend_Config_Writer</classname> gives you the ability to write config
|
|
<classname>Zend_Config_Writer</classname> gives you the ability to write config
|
|
|
files out of <classname>Zend_Config</classname> objects. It works with an
|
|
files out of <classname>Zend_Config</classname> objects. It works with an
|
|
|
adapter-less system and thus is very easy to use. By default
|
|
adapter-less system and thus is very easy to use. By default
|
|
|
- <classname>Zend_Config_Writer</classname> ships with three adapters, which all
|
|
|
|
|
- work the same. You instantiate a writer with specific options, which
|
|
|
|
|
|
|
+ <classname>Zend_Config_Writer</classname> ships with four adapters, which are all
|
|
|
|
|
+ file-based. You instantiate a writer with specific options, which
|
|
|
can be <emphasis>filename</emphasis> and <emphasis>config</emphasis>. Then
|
|
can be <emphasis>filename</emphasis> and <emphasis>config</emphasis>. Then
|
|
|
you call the <methodname>write()</methodname> method of the writer and the config
|
|
you call the <methodname>write()</methodname> method of the writer and the config
|
|
|
file is created. You can also give <varname>$filename</varname> and
|
|
file is created. You can also give <varname>$filename</varname> and
|
|
@@ -29,13 +29,27 @@
|
|
|
</listitem>
|
|
</listitem>
|
|
|
<listitem>
|
|
<listitem>
|
|
|
<para>
|
|
<para>
|
|
|
|
|
+ <classname>Zend_Config_Writer_SimpleIni</classname>
|
|
|
|
|
+ </para>
|
|
|
|
|
+ </listitem>
|
|
|
|
|
+ <listitem>
|
|
|
|
|
+ <para>
|
|
|
<classname>Zend_Config_Writer_Xml</classname>
|
|
<classname>Zend_Config_Writer_Xml</classname>
|
|
|
</para>
|
|
</para>
|
|
|
</listitem>
|
|
</listitem>
|
|
|
</itemizedlist>
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<para>
|
|
<para>
|
|
|
- As an exception, <classname>Zend_Config_Writer_Ini</classname> has an additional
|
|
|
|
|
|
|
+ The difference between SimpleIni and Ini writer is their handling
|
|
|
|
|
+ with regard to sections. The Ini writer always writes the top-level
|
|
|
|
|
+ config elements into section names. The SimpleIni writer in contrast
|
|
|
|
|
+ writes out a config file without and section. All options are written
|
|
|
|
|
+ into the global namespace of the INI file.
|
|
|
|
|
+ </para>
|
|
|
|
|
+
|
|
|
|
|
+ <para>
|
|
|
|
|
+ As an addition the two INI writers <classname>Zend_Config_Writer_Ini</classname>
|
|
|
|
|
+ and <classname>Zend_Config_Writer_SimpleINi</classname> have an additional
|
|
|
option parameter <emphasis>nestSeparator</emphasis>, which defines with which
|
|
option parameter <emphasis>nestSeparator</emphasis>, which defines with which
|
|
|
character the single nodes are separated. The default is a single dot,
|
|
character the single nodes are separated. The default is a single dot,
|
|
|
like it is accepted by <classname>Zend_Config_Ini</classname> by default.
|
|
like it is accepted by <classname>Zend_Config_Ini</classname> by default.
|