Re: [PHP] adding methods to classes

2001-04-07 Thread Yasuo Ohgaki
""Dean Hall"" <[EMAIL PROTECTED]> wrote in message 9ao8dc$s6t$[EMAIL PROTECTED]">news:9ao8dc$s6t$[EMAIL PROTECTED]... > Stupid me. Just extend the class. > > Now the real question: > > Is there any dynamic binding in PHP? You can do simlar thing with Variable Function. For example. class foo {

Re: [PHP] adding methods to classes

2001-04-07 Thread Dean Hall
Stupid me. Just extend the class. Now the real question: Is there any dynamic binding in PHP? Can I override a method in a subclass? Dean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To conta

[PHP] adding methods to classes

2001-04-07 Thread Dean Hall
Does PHP allow you to add methods to a class outside the class definition? This seems not to be straightforward since class prototypes are not allowed. For instance, what I'm trying to do is add a method to the DB class (in PEAR) that will do a database query, test if the result is an error/warni