TempFolder
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.
static string
getTempFolderUsername()
Returns as best a representation of the current username as we can glean.
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.