WireTempDir::get() method

Returns a temporary directory (path)

Usage

// basic usage
$string = $wireTempDir->get();

// usage with all arguments
$string = $wireTempDir->get(string $id = '');

Arguments

NameType(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.244

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer