Robert Cummings wrote:

Are you looking to create a single point of access to any libraries your
application may wish to use

Yes. Instead of juggling 5-6 objects, just move around one object.

and to subsequently base this on a singleton
pattern (only one instance of the object may exist?)?

Yes. Currently in my code, there is the ADODB object, which is used as normal.
I pass this object by reference to Smarty so its plugins can access the DB if neccessary,
and two other classes that need DB access. Im going on the assumption, that
if one doesn't have to pass by reference, then dont do it, especially large objects,
and having multiple copies of them.


All of this is just a thought. Whether its feasable, is another story for my app....

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to