Design questions
| From: | Stephan Schmidt | Date: | Mon, 11 Aug 2003 12:05:09 +0000 |
| Subject: | Design questions | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-19504@lists.php.net to get a copy of this message | ||
Hi,
I'm currently working on the Unserialize-part of XML_Serializer. I'd
like to put all functionality of the Unserialer in a seperate class, as
in most cases either the serializer _or_ the unserializer is needed and
seldomly both classes have to be instantiated at once.
Should I add a new package XML_Unserializer, or should I put both
classes in the same package? If yes, how should the folder structure be?
XML/Serializer.php
XML/Unserializer.php
or
XML/Serializer.php
XML/Serializer/Unserializer.php
or
XML/Serializer/Serializer.php
XML/Serializer/Unserializer.php
I'd prefer the first structure, but I'm not sure whether it's allowed to
install more than one file per package in the category folder.
Stephan