Temp
Less than 1 minute
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.
Methods
__construct
Temporary file constructor.
public __construct({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$name | NULL | An option name to give the temp file. Leaving this null will auto-generate a name. |
__destruct
Temporary file destructor.
public __destruct({Array})
This method will clean up the file on disk when the object falls out of scope.
Generated by Hazaar API Doc Generator