Re: [PHP-PEAR] RFC on merge of PHPLib and Pear
[email protected] (Björn Schotte) Wed, 7 Mar 2001 18:09:19 +0100
| Newsgroups | php.pear |
|---|---|
| Message-ID | <[email protected]> |
* 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 [email protected] http://rent-a-phpwizard.de/ [email protected] Software dev advocate: http://www.advogato.org/person/baerli/