Login   Register  
PHP Classes

Manager Class: Load classes when a function is called

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

  Author Author  
Picture of TB
Name: TB <e-mail contact>
Packages: 1 Browse all classes by TB Browse all classes by
Country: Romania Romania - PHP jobs in Romania
Age: ???
All time rank: Not yet ranked
Week rank: 197245 in Romania Romania
Innovation award
Innovation award
Nominee: 1x

  Detailed description   Download Download .zip .tar.gz  
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.

  Classes of TB  >  Manager Class  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
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: 452 users
All time rank: 5450
Week users: 0 users
Week rank: 1693 Equal
  Groups   Rate classes User ratings   Applications   Files Files  

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Language Constructs to assist in the language control View top rated classes

  Innovation Award  
PHP Programming Innovation award nominee
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

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Files folder imageclasses (2 files)
Plain text file Manager.class.php Class Manager Class File
Plain text file readme.txt Doc. Important readme file
Plain text file index.php Example Example file

  Files  /  Files folder image classes  
File Role Description
  Plain text file test.class.php Aux. An example class
  Plain text file test2.class.php Aux. A second example class

Download Download all files: manager_class.tar.gz manager_class.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.