Returns a temporary directory (path)
Usage
// basic usage
$string = $wireTempDir->get();
// usage with all arguments
$string = $wireTempDir->get(string $id = '');
Arguments
Name | Type(s) | Description |
---|---|---|
id (optional) | string | Optional identifier to use (default=autogenerate) |
Return value
string
Returns path
Exceptions
Method can throw exceptions on error:
WireException
- If can't create temporary dir
WireTempDir methods and properties
API reference based on ProcessWire core version 3.0.236