class TempFolder (View source)

Guesses location for temp folder

Methods

public static 
string
getTempFolder(string $base)

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

public static 
string
getTempFolderUsername()

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

protected static 
string
getTempParentFolder(string $base)

Return the parent folder of the temp folder.

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

static protected string getTempParentFolder(string $base)

Return the parent folder of the temp folder.

The temp folder will be a subfolder of this, named by username. This structure prevents permission problems.

Parameters

string $base

Return Value

string

Exceptions

Exception