cvs: peardoc /en/package/xml/xml-serializer/xml-unserializer options.xml
| From: | Stephan Schmidt | Date: | Mon, 22 Nov 2004 22:25:24 +0000 |
| Subject: | cvs: peardoc /en/package/xml/xml-serializer/xml-unserializer options.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5188@lists.php.net to get a copy of this message | ||
schst Mon Nov 22 17:25:24 2004 EDT
Modified files:
/peardoc/en/package/xml/xml-serializer/xml-unserializer options.xml
Log:
updated options to reflect latest releases
http://cvs.php.net/diff.php/peardoc/en/package/xml/xml-serializer/xml-unserializer/options.xml?r1=1.1&r2=1.2&ty=u
Index: peardoc/en/package/xml/xml-serializer/xml-unserializer/options.xml
diff -u peardoc/en/package/xml/xml-serializer/xml-unserializer/options.xml:1.1
peardoc/en/package/xml/xml-serializer/xml-unserializer/options.xml:1.2
--- peardoc/en/package/xml/xml-serializer/xml-unserializer/options.xml:1.1 Wed May 26 09:21:26 2004
+++ peardoc/en/package/xml/xml-serializer/xml-unserializer/options.xml Mon Nov 22 17:25:24 2004
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.xml.xml-serializer.xml-unserializer.options">
<refnamediv>
<refname>XML_Unserializer Options</refname>
@@ -45,9 +45,14 @@
</row>
<row>
<entry>keyAttribute</entry>
- <entry>any string</entry>
+ <entry>any string or array</entry>
<entry>'_originalKey'</entry>
- <entry>If the attribute specified in this option exists for a tag, the value will be
used as key or property name in the parent object or array</entry>
+ <entry>
+ If the attribute specified in this option exists for a tag, the value will be used as key
+ or property name in the parent object or array. You may also specify an associative array
+ if you want to use differnt key attributes for different tags. In this case, the array
key
+ contains the tag name and the array vallue the corresponding attribute name.
+ </entry>
</row>
<row>
<entry>typeAttribute</entry>
@@ -91,6 +96,16 @@
<entry>array()</entry>
<entry>This allows you to map tag names to PHP classes. The names of the tags have
to be in the keys and the values contain the class names to use for each tag.</entry>
</row>
+ <row>
+ <entry>forceEnum</entry>
+ <entry>indexed array</entry>
+ <entry>array()</entry>
+ <entry>
+ This allows you to specify a list of tags which will automatically be converted to an
indexed array,
+ independent of the number of repetitions of the tag. This can save you a some if
conditions in your
+ code.
+ </entry>
+ </row>
</tbody>
</tgroup>
</table>