Sisow_Autoload

Generic autoloader for classes named in WordPress coding style.

Defined (1)

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

/includes/classes/Autoload.php  
  1. class Sisow_Autoload { 
  2.  
  3. public static function register() { 
  4. spl_autoload_register(array('self', 'spl_autoload_register')); 
  5.  
  6. public static function spl_autoload_register($class_name) { 
  7.  
  8. $class_path = dirname(__FILE__) . '/' . str_replace('_', '/', $class_name) . '.php'; 
  9.  
  10. if (file_exists($class_path)) { 
  11. require_once $class_path; 
  12.