/** * Create a new instance */ function System_Folders_Cached() { parent::System_Folders(); }
/** * Returns the windows directory (if any). * NULL is returned if the system is not Windows. * * @return string The windows directory, NULL if not on windows * * @access public */ function getWindows() { if ($this->sys != SYS_WINDOWS) { return null; } $strWindows = null; $arEnv = $_SERVER + $_ENV; if (isset($arEnv['SystemRoot'])) { $strWindows = $arEnv['SystemRoot']; } else { if (isset($arEnv['windir'])) { $strWindows = $arEnv['windir']; } else { $strWindows = System_Folders::tryPaths($this->arWindowsDirs); } } //no env variable return $this->addTrailingSlash($this->fixWindowsPath($strWindows)); }
/** * __construct * * @access public * @return void */ public function __construct() { $sf = new System_Folders(); self::$cacheOptions['cacheDir'] = $sf->getTemp(); }