<?php
/**
* Main include file of the generic array library.
* @package genericarray
*/
/**
* Autoload function for generic array library.
* @access private
* @param string $className The name of the class to be loaded
*/
function autoload_genericarray_lib($className) {
$filename = dirname(__FILE__) . '/' . $className . '.php';
if (file_exists($filename)) {
require_once $filename;
return true;
}
if (ArrayOfGenericLoader::getInstance()->loadClass($className)) {
return true;
}
return false;
}
spl_autoload_register('autoload_genericarray_lib');
?>
|