oop :B

Steve Dibb sdibb at wonkabar.org
Thu May 13 19:29:07 MDT 2004


I'm an absolute oop nightmare...

Is there a way to pass an outside variable into an entire class when it 
is declared?

For example, I'm using PEAR's DB class, and I've already set $db = 
DB::connect($dsn); and I can pass $db to functions within the class, and 
then use $db->query() etc ... but I don't know how to pass it when I use 
my own class.

Can someone help?  This is all greek to me.

Steve



More information about the UPHPU mailing list