/** * Add a path to the list of paths to search for classes. * * @param string $path The path to add. * @return boolean True if the path was added successfully, false if not. */ public static function addPath($path) { if(!is_dir($path)) { return false; } self::$loadPaths[] = $path; self::$loadPaths = array_unique(self::$loadPaths); return true; }