cvs: peardoc /en/package/xml/xml-serializer/xml-unserializer options.xml

From: Date: Sun, 20 Mar 2005 18:04:55 +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-5706@lists.php.net to get a copy of this message
schst Sun Mar 20 13:04:55 2005 EDT Modified files: /peardoc/en/package/xml/xml-serializer/xml-unserializer options.xml Log: added missing options http://cvs.php.net/diff.php/peardoc/en/package/xml/xml-serializer/xml-unserializer/options.xml?r1=1.3&r2=1.4&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.3 peardoc/en/package/xml/xml-serializer/xml-unserializer/options.xml:1.4 --- peardoc/en/package/xml/xml-serializer/xml-unserializer/options.xml:1.3 Tue Mar 8 17:13:09 2005 +++ peardoc/en/package/xml/xml-serializer/xml-unserializer/options.xml Sun Mar 20 13:04:55 2005 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.xml.xml-serializer.xml-unserializer.options"> <refnamediv> <refname>XML_Unserializer Options</refname> @@ -38,12 +38,27 @@ </thead> <tbody> <row> - <entry>complexTaype</entry> + <entry>complexType</entry> <entry>'array' or 'object'</entry> <entry>'array'</entry> <entry>Defines, whether nested tags should be returned as associative arrays or objects</entry> </row> <row> + <entry>tagAsClass</entry> + <entry>&true; or &false;</entry> + <entry>&true;</entry> + <entry> + Defines, whether the tag name should be used as the class name if complexType is set to 'object'. + If no class with the name of the tag exists, that class defined by 'defaultClass' is used. + </entry> + </row> + <row> + <entry>defaultClass</entry> + <entry>any string</entry> + <entry>stdClass</entry> + <entry>Defines the class that is used to create objects, if the complexType option is set to 'object'.</entry> + </row> + <row> <entry>keyAttribute</entry> <entry>any string or array</entry> <entry>'_originalKey'</entry> @@ -64,7 +79,11 @@ <entry>classAttribute</entry> <entry>any string</entry> <entry>'_class'</entry> - <entry>If XML_Unserializer creates an object, it will be an instance of stdClass, unless the tag has the attribute specified in this option. If it is set, the classname stored in the attribute value will be used.</entry> + <entry> + If XML_Unserializer creates an object, it will be an instance of the value specified with the defaultClass + option, unless the tag has the attribute specified in this option. If it is set, the classname stored in + the attribute value will be used. + </entry> </row> <row> <entry>parseAttributes</entry> @@ -106,6 +125,41 @@ code. </entry> </row> + <row> + <entry>encoding</entry> + <entry>any valid encoding string</entry> + <entry>null</entry> + <entry> + Defines the encoding of the original document. + </entry> + </row> + <row> + <entry>targetEncoding</entry> + <entry>any valid encoding string</entry> + <entry>null</entry> + <entry> + Defines the target encoding of the resulting data. + </entry> + </row> + <row> + <entry>decodeFunction</entry> + <entry>any valid PHP callback</entry> + <entry>null</entry> + <entry> + This option allows you to define a callback function or method, that will be applied to all character data + and attributes in the document before they are stored in the result. This allows you to decode any decoded data + in the XML or convert all content to lowercase. + </entry> + </row> + <row> + <entry>returnResult</entry> + <entry>&true; or &false;</entry> + <entry>&false;</entry> + <entry> + If set to &true; <function>XML_Unserializer::unserialize()</function> will return the result if the + document could be unserialized instead of just &true;. + </entry> + </row> </tbody> </tgroup> </table>

« previous php.pear.doc (#5706) next »