/** * Add a class to autoload * * @param string $classname The class name * @param string $file Full path to the file that holds the class * @return array|boolean Array of classes * @since 1.5 */ public static function ®ister($class = null, $file = null) { static $classes; if (!isset($classes)) { $classes = array(); } if ($class && is_file($file)) { // Force to lower case. $class = strtolower($class); $classes[$class] = $file; // In php4 we load the class immediately. if (version_compare(phpversion(), '5.0') < 0) { SomeLoader::load($class); } } return $classes; }