*/ class Autoloader { /** * The method to include the source file for a given class to use in * the PHP spl_autoload_register function. * * @param string a name of a Scrivo class * * @return bool true if the source file was successfully included */ public static function load($class) { if (substr($class, 0, 10) !== "Highlight\\") { return false; } $c = str_replace("\\", "/", substr($class, 10)) . ".php"; $res = include __DIR__ . "/$c"; return $res == 1 ? true : false; } }