AW: AW: [PEAR-DEV] [RfC] XML_Serializer
| From: | Stephan Schmidt | Date: | Tue, 29 Jul 2003 15:09:06 +0000 |
| Subject: | AW: AW: [PEAR-DEV] [RfC] XML_Serializer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-18894@lists.php.net to get a copy of this message | ||
Hi,
> a) use an option var to map classname=>'toXMLmethod'
> -- if this is set use it. (if it returns an array, - use that via the
> serialize array method..)
I'm not sure if I understand, what you want to be included.
Is it:
serialize( $myObj, array( "serializeMethod" => "myPersonalToXML" );
and then:
$data = $myObj->myPersonalToXML(), if this method exists.
Or would you prefer a hash table where a methodname for each class could be
specified?
> b) attempt to look for a toXML method
> -- if there is one - use it.
I'll surely implment this.
> +1 = I can see this being usefull for a few things..
Me too :-)
Stephan