class TempFolder (View source)

Guesses location for temp folder

Methods

static string
getTempFolder(string $base)

Returns the temporary folder path that silverstripe should use for its cache files.

static string
getTempFolderUsername()

Returns as best a representation of the current username as we can glean.

Details

static string getTempFolder(string $base)

Returns the temporary folder path that silverstripe should use for its cache files.

Parameters

string $base

The base path to use for determining the temporary path

Return Value

string

Path to temp

static string getTempFolderUsername()

Returns as best a representation of the current username as we can glean.

Return Value

string