Re: Addition to DB/common.php ?
| From: | Chuck Hagenbuch | Date: | Fri, 02 Feb 2001 05:20:08 +0000 |
| Subject: | Re: Addition to DB/common.php ? | ||
| Groups: | php.pear | ||
| Request: | Send a blank email to php-pear+get-1247@lists.php.net to get a copy of this message | ||
Quoting Joao Prado Maia <jpm@phpbrasil.com>:
> Everyone is probably going to beat me up for this, but can I add these
> functions to DB/common.php ? I'm not sure if they would be categorized as
> pure 'bloat', but I figured I should ask anyway.
From your description, I don't think this belongs in DB_common at all.
> I could also create this as a subclass for DB.php and go from there, but
> it would be kinda too much abstraction and sub-layers of functions,
> wouldn't it ?
This sounds to me exactly the kind of thing that subclasses are for...
-chuck
--
Charles Hagenbuch, <chuck@horde.org>
"My intuitive grasp of math often leads me astray." -Me