Innovation Award
 April 2009
Number 6 |
Overloading is a feature built-in in some Object Oriented languages like C++.
It allows calling a class function with the same name but is implemented in multiple ways depending on the number and type of parameters that are passed to a function.
Currently PHP does not provide built-in functionality to provide overload support exactly like in C++. There is an overload extension in PECL but it is not exactly the same thing.
This class provides overload functionality emulation using PHP 5 magic methods.
Manuel Lemos |
This class implements class function overloading.
It is a base class that allows sub-classes to have functions that may be called in several ways using with a different number of arguments or arguments with different types.
The base class intercept calls to the overloaded functions and dispatches those calls according to the types and number of arguments.
| There are not enough user ratings to display for this class. |
No application links were specified for this class.

If you know an application of this package, send a message to the
author to add a link here.
| File |
Role |
Description |
Overload.class.php |
Class |
Overload-Class for "overloading in PHP" |
Example.php |
Example |
Example for overloading an object in PHP with some does and dont's |
Help.txt |
Doc. |
Summary of the functionality |
LICENSE.txt |
Lic. |
License |