Re: [Fwd: Re: [PEAR] DataObject tweak ok with DB and MDB2]

From: Date: Wed, 06 Apr 2005 20:55:45 +0000
Subject: Re: [Fwd: Re: [PEAR] DataObject tweak ok with DB and MDB2]
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18556@lists.php.net to get a copy of this message
On Apr 6, 2005 1:42 PM, Dan Rossi <pear@electroteque.org> wrote: > > On 07/04/2005, at 2:31 AM, Justin Patrin wrote: > >>> > > > > Well...I think the thing you think did nothing actually did something. > > > > $db_options = PEAR::getStaticProperty($driver,'options'); > > > > This gets the options set for the driver. So to set these for DB you > > do the same kind of thing you're already doing for DB_DO. > > > > $config =& PEAR::getStaticProperty('DB', 'options'); > > $config = array('someOption' => 'someValue', 'etc' => > > 'etc'); > > > > And then you start using DB_DO and it should pull the options for DB. > > You should be able to do the same for MDB2 as DB_DO will still pull > > the options. Uncomment that line again and switch to using it unstead > > of the config array in the DB_DO global. > > Crap that could be an issue then, cant we dynamically set that up > within the DB_DO ? I have the getstatic property setup within my class > which is then calling the db_Do's , I dont think we should have to set > it outside really. > I really don't know to what you're referring here. If you set it in DB_DO's options its basically the same as setting it for (M)DB itself. You can just add a section to your ini file. You're going to have to set your options *somewhere*, why not pull them from the statuc properties that PEAR gives you? > > > > > I've submitted patched to DB_DO before and if we get this working > > properly I would think that Alan wouldn't mind a patch to get this > > working. > > Ok i am sending through my changes today ! > -- Justin Patrin

« previous php.pear.general (#18556) next »