[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Class Minify_Loader 4 * @package Minify 5 */ 6 7 /** 8 * Class autoloader 9 * 10 * @package Minify 11 * @author Stephen Clay <[email protected]> 12 */ 13 class Minify_Loader { 14 public function loadClass($class) 15 { 16 $file = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR; 17 $file .= strtr($class, "\\_", DIRECTORY_SEPARATOR . DIRECTORY_SEPARATOR) . '.php'; 18 if (is_readable($file)) { 19 require $file; 20 } 21 } 22 23 static public function register() 24 { 25 $inst = new self(); 26 spl_autoload_register(array($inst, 'loadClass')); 27 } 28 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |