Re: Config class running

From: Date: Sun, 18 Aug 2002 16:23:42 +0000
Subject: Re: Config class running
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8487@lists.php.net to get a copy of this message
Hi I have no problem with a rewrite and commiting that to CVS, but as it looks like you're changing the API of a stable class signficantly: How do we warn the people about that, and how can I download the old class later, when the new API is released. Or is this not possible anymore then and I have to rewrite my scripts, if i want to redestribute them. I know, that I can redistribute the old Config classes to avoid this stuff, but anyway... These are just some questions, which popped up in my head. I'm not against introducing a rewrite, but could you maybe release it somewhere, so we can have a look at it :) chregu On Sun, 18 Aug 2002, Bertrand Mansion wrote: > Hi, > > I have been working on the config class recently and it is almost ready. At > the moment, it only parses PHP .ini files with comments (doesn't use > php_parse_ini) and Apache configuration files (httpd.conf style). > > The improvements makes it a totally new class. The API has changed a lot and > the class now works with tree structures, just like the XML_Tree class, but > with references to parents. Every item in the configuration datasource is > considered as an object which has the following methods: > > - addItem > - insertItem > - removeItem > - getItem > - getItemIndex > - getParent > - setContent > ... Some accessor methods. > > Some methods are available from the subclass container: > > - toString (in case it's possible) > - parseDatasrc > - writeDatasrc > > The config object in itself is just an initializer, nothing more. Most of > the work is done in the Config_Container where the logic is. > > I am ready to make a commit to CVS, probably with a new release tag so that > users understand the API has changed and are still able to use the old > version if they prefer. > > I am leaving next week for holidays for 2 weeks, so let me know if you are > interested to see it in the CVS. > > Cheers, > > Bertrand Mansion > Mamasam > > > -- nam...christian stocker adr...bremgartnerstr. 66, ch-8003 zurich pho...+41 1 451 6021 www...http://phant.ch/chregu mob...+41 76 561 8860 ema...chregu@phant.ch wor...+41 1 240 5670 gpg...0x5CE1DECB

« previous php.pear.dev (#8487) next »