Re: [Fwd: Issue with DB_DataObject]

From: Date: Fri, 07 Jan 2005 07:27:53 +0000
Subject: Re: [Fwd: Issue with DB_DataObject]
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-16771@lists.php.net to get a copy of this message
On Fri, 07 Jan 2005 07:11:19 +0100, Lukas Smith <lsmith@php.net> wrote: > daniel@electroteque.org wrote: > > Ok sorry people I have it working now, MDB2_DataObject that is :) This is > > a pretty insane idea,what I dont like is the ini settings, I am gonna look at an xml based > > config setting, but hopefully alightweight parser with caching. What I cant get is that > > alot of pear > > packages send config arrays tothe class where this one gets the $options variable as a > > global var. > > I think all PEAR packages should accept array configs. This leaves it to > the package user to determine where and how to store the configs .. in a > an array, xml, ini, database etc. > Yeah, the ini/global thing has always been strange. However, you can eschew the ini files and just override the table(), links(), and keys() functions to just return the correct arrays. This way you have no config files to parse and everything is stored in the DO. You could also put them in member vars and have those functions return them if you want. > regards, > Lukas > -- Justin Patrin

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