Re: Config class
| From: | Bertrand Mansion | Date: | Thu, 25 Jul 2002 14:50:09 +0000 |
| Subject: | Re: Config class | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7984@lists.php.net to get a copy of this message | ||
le 25/07/02 15:32, Alexander Merz à alexander.merz@t-online.de a écrit :
> Bertrand Mansion wrote:
>
>
>> Yes, I would like to add methods for delete, add, replace lines in config
>> files. Presently, configuration parameter lines are not stored in the data
>> array, I would like to add that.
>
> This is not directly Config related, what you want is something like
> File_Passwd, which directly works on a file - Config works on
> 'containers'. Such a container can base on a Package like File_Passwd.
I found some other design problems in the Config class:
The container classes, ex: IniFile.php or even the dummy container class,
don't have a constructor but you pass parameters to these classes as if they
had one. Is this a normal behaviour ?
The container instance variable is not declared in Config.php before its
first use.
I have thought about your statement here above and actually, the Config
class I am working on doesn't belong to the File category as it should also
handle various DB containers.
Bertrand Mansion
Mamasam