Re: [RfC] XML_Serializer
| From: | Lorenzo Alberton | Date: | Mon, 28 Jul 2003 22:37:42 +0000 |
| Subject: | Re: [RfC] XML_Serializer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-18851@lists.php.net to get a copy of this message | ||
On Mon, 28 Jul 2003 21:21:23 +0200, Stephan Schmidt wrote:
> Hi,
>
>
> I'd like to propose a new XML helper class entitled XML_Serilaizer.
> It provides a static method that serializes any data structure in
> an XML format. Currently arrays and objects are supported.
> [...]
> Waiting for your comments.
> Stephan
Love it already :-)
You have my +1 IF you remove that ugly $GLOBALS[]
usage. Just add some class vars for the options and set
them in the constructor or via an extra "_setOptions()"
method (called by the constructor). Thus you can also
get rid of "_adjustOptions()", since you can simply leave
the default class-vars values.
BTW... also having a matching UNserializer would be really cool...
Best regards,
Lorenzo