\Hazaar\File
Temp
Create a temporary file

This class will create and manage a temporary file that is stored in the application runtime directory in a subdirectory called 'temp'. The file is not stateful, meaning it can only be used for the lifetime of the execution and once the file object falls out of scope it will be deleted automatically.

Tags

Since

2.3

Summary
Methods Properties Constants
No properties No constants
Methods
__construct()
__construct($name = null)
Temporary file constructor

Parameters

$namemixed

An option name to give the temp file. Leaving this null will auto-generate a name.

__destruct()
__destruct()
Temporary file destructor

This method will clean up the file on disk when the object falls out of scope.