+ if (! static::directory_usable($basepath)) {\r
+ throw new Exception('Basepath ' . $basepath . ' isn\'t usable.');\r
+ }\r
+\r
+ $this->basepath = rtrim($basepath, DIRECTORY_SEPARATOR);\r
+\r
+ set_include_path(\r
+ get_include_path() . PATH_SEPARATOR\r
+ . $this->basepath . DIRECTORY_SEPARATOR . 'include' . PATH_SEPARATOR\r
+ . $this->basepath . DIRECTORY_SEPARATOR . 'library' . PATH_SEPARATOR\r
+ . $this->basepath . DIRECTORY_SEPARATOR . 'library/langdet' . PATH_SEPARATOR\r
+ . $this->basepath);\r
+\r
+\r