| Recommend this page to a friend! |
| Author | ||
![]() |
|
Innovation award![]() Nominee: 1x | |||||||||||||||||||
| Classes of David Bittencourt | > | phpPlugin | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Applications | |||||||
| Groups | ||
| Language | Constructs to assist in the language control | View top rated classes | |
| Code Generation | Compilers and tools that generate code automatically | View top rated classes |
| Innovation Award | ||
![]() June 2004 Number 2 Prize: One copy of the Zend Studio |
The usual method for extending a class to add new functionality without having to change the class code is to create a subclass with new functions and variables that implement the new functionality. However, if several people extend the same class with their own subclasses, it is difficult benefit from extensions developed by different people because their subclasses are separated. This class implements a very innovative solution for extending a class using independent plug-in functions. It works by generating a new subclass that combines multiple functions that are defined in separate script files. This way any developer may create a new class extension combining the functions defined by the plug-ins that they are interested, providing a more flexible and thus more powerful means of code reuse. Manuel Lemos |
| User ratings | ||
| Ratings | ||||||||
|---|---|---|---|---|---|---|---|---|
| All time: | ||||||||
| Month: | ||||||||
| Applications that use this class | ||
| File | Role | Description | ||
|---|---|---|---|---|
| Example | Example script | |||
| Class | Main class | |||
| Example | test.php | |||
| Files | / | |||
| File | Role | Description |
|---|---|---|
| |
Aux. | Plugin bar() for test.php and example.php |
| |
Aux. | Different bar() plugin for test.php and example.php |
| Download all files: phpplugin.tar.gz phpplugin.zip |