Image_Transform thought
| From: | Dan Allen | Date: | Wed, 05 Jun 2002 06:28:43 +0000 |
| Subject: | Image_Transform thought | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-6736@lists.php.net to get a copy of this message | ||
I noticed the addition of the "driver" idea for Image_Transform
using the factory function and it is solid...however, the
require_once should not be in each driver file back to the parent,
rather, factory should do
factory($in_driver)
{
require_once 'Drivers/' . $in_driver . '.php';
etc ...
}
So the require goes inside of the factory function. At least that
is how DB.php works with connect() (which is like the factory
function for that class)
Dan
--
________________________________________________________________
Daniel Allen, <dan@mojavelinux.com>
http://www.mojavelinux.com/
________________________________________________________________
Since no one can ever know for certain whether or not his own
view of creation is the correct one, it is impossible for him
to know if someone else's is the wrong one.
________________________________________________________________