* @copyright 2010-2021 Webkul IN * @license https://store.webkul.com/license.html */ require_once __DIR__.'/PHPSQLParser.php'; function classAutoLoader($class) { // check if php sql parser file is called if(0 !== strpos($class, 'PHPSQLParser')) { return; } $className = end(explode('\\', $class)); if(class_exists($className)) { return; } $class = str_replace('PHPSQLParser\\', '', $class); // create path for required file $classFile = __DIR__.'/'.str_replace('\\', '/', $class).'.php'; if (!file_exists($classFile) || !is_file($classFile)) { return; } require $classFile; } spl_autoload_register('classAutoLoader');