Re: Re: serializer/unserializer

From: Date: Wed, 25 Aug 2004 06:52:06 +0000
Subject: Re: Re: serializer/unserializer
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32932@lists.php.net to get a copy of this message
Martin Jansen wrote:
On Tue Aug 24, 2004 at 04:5238PM +0200, Lukas Smith wrote:
XML/Serializer.php XML/Unserializer.php in the package XML_Serializer this is all good, except that doing things this way means that there is a class in the packacke not prefixed with the package name.
I'd probably opt for
    XML_Serializer::factory("serialize");
    vs.
    XML_Serializer::factory("unserialize");
But I also don't really mind breaking the naming rule in this case, because it is so obvious that a serializer always support deserializing as well.
What would be the class names then? XML_Serializer_Serializer XML_Serializer_Unserializer ? regards, Lukas

« previous php.pear.dev (#32932) next »