} return true; } else { return false; } // ignore others classes } } /** * Defines pdoMap root directory */ pdoMap::$rootPath = dirname(__FILE__) . '/'; /** * Defines default pdoMap directories */ pdoMap::$cachePath = pdoMap::$rootPath . 'cache/tmp/'; /** * Registers pdoMap Autoload Manager */ spl_autoload_register(array('pdoMap', 'autoload')); /** * Fix for php 5.2 */ if (!function_exists('get_called_class')) { function get_called_class($bt = false, $l = 1) { if (!$bt) { $bt = debug_backtrace(); } if (!isset($bt[$l])) { throw new Exception("Cannot find called class -> stack level too deep.");