function load($classCall) { $names = getNames($classCall); if (checkRootNamespace($names)) { if (in_array('board', $names)) { loadBaseClass(end($names)); } elseif (in_array('apps', $names)) { loadApp(end($names), getAppType($names)); } else { findClass($names); } } }
function phynxAutoloader($class_name) { try { return findClass($class_name); } catch (ClassNotFoundException $e) { $_SESSION["classPaths"] = array(); return findClass($class_name); } }