Minify_Loader

Class autoloader.

Defined (1)

The class is defined in the following location(s).

/lib/Minify/Minify/Loader.php  
  1. class Minify_Loader { 
  2. public function loadClass($class) 
  3. $file = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR; 
  4. $file .= strtr($class, "\\_", DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR) . '.php'; 
  5. if (is_readable($file)) { 
  6. require $file; 
  7.  
  8. static public function register() 
  9. $inst = new self(); 
  10. spl_autoload_register(array($inst, 'loadClass'));