protected static function loadIncludePath($includes = null) { self::$base_path = getcwd(); $include_path = ""; if (is_null($includes)) { $includes = array('code', 'fonts', 'php-ga'); } foreach ($includes as $toInclude) { $include_path .= self::$base_path . '/../' . $toInclude . PATH_SEPARATOR; } $include_path = get_include_path() . PATH_SEPARATOR . $include_path; return $include_path; }