Re: RFC on merge of PHPLib and Pear
| From: | Björn Schotte | Date: | Wed, 07 Mar 2001 17:09:19 +0000 |
| Subject: | Re: RFC on merge of PHPLib and Pear | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-1645@lists.php.net to get a copy of this message | ||
* Chuck Hagenbuch wrote:
> I just don't like the way phplib makes you subclass things just to change a
> parameter.
That's the nature of PHPLIB: subclass the generic classes to
fit your needs. That's a great and flexible way.
> I should be able to pass a parameter to the Auth_ip constructor to
> tell it what ips are valid,
Use the $GLOBALS[] name space or -- and there your argument
comes true that this could be improved -- change auth.php
that it calls $this->validatelogin() with a parameter (i.e.
Hash to be flexible).
> instead of having to change the class definition.
Where do you change the class definition? Nowhere.
--
Björn Schotte bjoern@php.net
http://rent-a-phpwizard.de/
bjoern@baer.main.de
Software dev advocate: http://www.advogato.org/person/baerli/