Example #1
0
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);
        }
    }
}
Example #2
0
function phynxAutoloader($class_name)
{
    try {
        return findClass($class_name);
    } catch (ClassNotFoundException $e) {
        $_SESSION["classPaths"] = array();
        return findClass($class_name);
    }
}