/** * 设置根目录 * * @static * @param string $rootDir * @return void */ public static function setRootDirectory($rootDir) { if (!is_readable($rootDir) || !is_writable($rootDir)) { throw new ZtChart_Model_Storage_Exception('The root directory cannot be access.'); } self::$_rootDir = $rootDir; }