 |
|
Innovation award
 Nominee: 10x
Winner: 1x |
This class can be used to add class functions dynamically from script files.
It traps calls to inexistent class functions. The class loads script files with the same name as the called function and uses the loaded code to implement the missing functions.
|
|
| Name: |
Dynamic Methods |
| Base name: |
dynamic-methods |
| Description: |
Add class functions dynamically from script files |
| Version: |
1.0 |
| PHP version: |
5.3 |
| License: |
The PHP License |
| All time users: |
476 users |
| All time rank: |
5054 |
| Week users: |
0 users |
| Week rank: |
2015  |
| |
|
 January 2011
Number 5
Prize: One subscription to the PDF edition of the PHP Architect magazine |
One way to extend the functionality of a class is to load external plug-in scripts when certain functions are called.
The inconvenience of this approach is that usually needs to register somehow the functions that are implemented by plug-ins before calling them.
This class implements a more automatic approach that does not require prior plug-in registration.
It implements a default class call function which intercepts calls to missing functions and automatically loads on demand external plug-in scripts with names based on the called function.
Manuel Lemos |
| Ratings | Utility |
Consistency |
Documentation |
Examples |
Tests |
Videos |
Overall |
Rank |
| All time: |
Not sure (56.2%) |
Good (87.5%) |
Not sure (43.8%) |
Not sure (50.0%) |
- |
- |
Not sure (46.2%) |
1760 |
| Month: |
Not yet rated by the users |
| |
Applications that use 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.
| |
Files |
|
|