cvs: pear /XML_Serializer Serializer.php
| From: | Stephan Schmidt | Date: | Thu, 23 Dec 2004 10:28:03 +0000 |
| Subject: | cvs: pear /XML_Serializer Serializer.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-27781@lists.php.net to get a copy of this message | ||
schst Thu Dec 23 05:28:03 2004 EDT
Modified files:
/pear/XML_Serializer Serializer.php
Log:
added default value for the encoding option
http://cvs.php.net/diff.php/pear/XML_Serializer/Serializer.php?r1=1.29&r2=1.30&ty=u
Index: pear/XML_Serializer/Serializer.php
diff -u pear/XML_Serializer/Serializer.php:1.29 pear/XML_Serializer/Serializer.php:1.30
--- pear/XML_Serializer/Serializer.php:1.29 Wed Dec 22 05:05:28 2004
+++ pear/XML_Serializer/Serializer.php Thu Dec 23 05:28:03 2004
@@ -16,7 +16,7 @@
// | Authors: Stephan Schmidt <schst@php-tools.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Serializer.php,v 1.29 2004/12/22 10:05:28 schst Exp $
+// $Id: Serializer.php,v 1.30 2004/12/23 10:28:03 schst Exp $
/**
* uses PEAR error management
@@ -112,6 +112,7 @@
'linebreak' => "\n", //
string used for newlines
'typeHints' => false, //
automatically add type hin attributes
'addDecl' => false, // add an XML
declaration
+ 'encoding' => null, // encoding
specified in the XML declaration
'defaultTagName' => 'XML_Serializer_Tag', //
tag used for indexed arrays or invalid names
'classAsTagName' => false, // use
classname for objects in indexed arrays
'keyAttribute' => '_originalKey', //
attribute where original key is stored