 |
|
Innovation award
 Nominee: 1x |
This class can load classes when a function is called.
It handles calls to non-existent functions by checking the name of the called function and loading a class with the same name including a script with derived name.
The name of the directory from where the class files are included is configurable.
If the called function includes an underscore character, the class also calls the class function with the name that follows the underscore character. Otherwise, the class calls the constructor function with the same name of the class.
|
|
| Name: |
Manager Class |
| Base name: |
manager_class |
| Description: |
Load classes when a function is called |
| Version: |
1.0 |
| PHP version: |
5.0 |
| License: |
BSD License |
| All time users: |
444 users |
| All time rank: |
5240 |
| Week users: |
0 users |
| Week rank: |
2015  |
| |
|
 October 2011
Number 9 |
Loading and initializing classes is often a tedious process that developers need to implement in their PHP scripts.
This manager class provides an alternative method that simplifies the process by loading a class automatically when a virtual function with the same name of the class to be loaded is called on the manager class.
The manager class takes care of both loading the classes and calling their initialization functions.
Manuel Lemos |
| There are not enough user ratings to display for this class. |
| |
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 |
|
|