Login   Register  
PHP Classes
elePHPant
Icontem

I like the concept but found a flaw in the class.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Overload  >  All threads  >  I like the concept but found a flaw in the class.  >  (Un) Subscribe thread alerts  
Subject:I like the concept but found a flaw in the class.
Summary:Package rating comment
Messages:1
Author:Fabian Schmengler
Date:2009-12-09 19:31:20
 

Fabian Schmengler rated this package as follows:

Utility: Sufficient
Consistency: Good
Documentation: Good
Examples: Good

  1. I like the concept but found a flaw in the class.   Reply  
Picture of Fabian Schmengler
Fabian Schmengler
2009-12-09 19:31:20
I like the concept but found a flaw in the class. A function variant with no parameters will lead to an error because you try to access a protected method. On the other hand, if this does not result in an error in your PHP version you will have access to all protected methods ;-)

Therefore I changed line 91 from <code>$func = "";</code> to <code>$func = "_";</code> and declare overloaded methods without parameters with a trailing underscore.