Login   Register  
PHP Classes
elePHPant
Icontem

Quickload: Load classes from multiple directories

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-09-01 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 308 All time: 6,501 This week: 1,438Up
Version License PHP version Categories  
quickload 1.0BSD License5.0PHP 5, Language
Description Author  

This class can be used to automatically load classes in scripts located in multiple directories.

When a class is loaded it scans a given lists of directories for class script files that start with the class name and have specific file name extensions. The class may exclude scanning given sub-directories.

The class loads the class script file that is found in the scanned directories.

The list of class scripts that is found may be cached in an INI file to avoid the overhead of scanning the search directories again when another class needs to be loaded.

Picture of Martin Lebert
Name: Martin Lebert <contact>
Classes: 3 packages by
Country: Germany Germany
Age: 48
All time rank: 1590103 in Germany Germany
Week rank: 1735 Down89 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • quickload.png
  Files folder image Files  
File Role Description
Files folder imageclasses (1 file)
Files folder imageexample (2 directories)
Accessible without login Plain text file autoload.php Aux. File invoking Quickload
Accessible without login Plain text file example.php Example Example script

  Files folder image Files  /  classes  
File Role Description
  Plain text file Quickload.class.php Class Main Quickload class

  Files folder image Files  /  example  
File Role Description
Files folder imageclasses (2 files, 1 directory)
Files folder imageclasses2 (2 files, 1 directory)

  Files folder image Files  /  example  /  classes  
File Role Description
Files folder imagetmp (1 file)
  Plain text file Autoload.class.php Aux. Example class
  Plain text file Motorbike.class.php Class Example class

  Files folder image Files  /  example  /  classes  /  tmp  
File Role Description
  Plain text file Foo.class.php Aux. Example class

  Files folder image Files  /  example  /  classes2  
File Role Description
Files folder imagetmp (1 file)
  Plain text file Smarty.class.inc Aux. Example class
  Plain text file Smarty_Compiler.class.inc Aux. Example class

  Files folder image Files  /  example  /  classes2  /  tmp  
File Role Description
  Plain text file Bar.class.php Aux. Example class

 Version Control Unique User Downloads Download Rankings  
 0%Total:308All time:6,501
 This week:0This week:1,438Up
 User Comments (1)  
 
Nice work, tested and working.
6 years ago (David Ferreira)
67%StarStarStarStar