WireTempDir class

Located in file /wire/core/WireTempDir.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the WireTempDir class also inherits all the methods and properties of: Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
WireTempDir::create()
string

@deprecated Use init() method instead

 
WireTempDir::createName()
string

Create a randomized name for runtime temp dir

 
WireTempDir::get()
string

Returns a temporary directory (path)

 
WireTempDir::init()
string

Initialize temporary directory

 
WireTempDir::maintenance()
bool

Perform maintenance by cleaning up old temporary directories

 
WireTempDir::remove()
bool

Removes the temporary directory created by this object

 
WireTempDir::removeAll()
None

Clear all temporary directories created by this class

 
WireTempDir::setRemove()
$this

Call this with 'false' to prevent temp dir from being removed automatically when object is destructed

 

Additional methods and properties

In addition to the methods and properties above, WireTempDir also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.252