Documentation

TemporaryDirectory
in package

Table of Contents

Properties

$deleteWhenDestroyed  : bool
$forceCreate  : bool
$location  : string
$name  : string

Methods

__construct()  : mixed
__destruct()  : mixed
create()  : self
delete()  : bool
deleteWhenDestroyed()  : self
empty()  : self
exists()  : bool
force()  : self
getName()  : string
location()  : self
make()  : self
name()  : self
path()  : string
deleteDirectory()  : bool
getFullPath()  : string
getSystemTemporaryDirectory()  : string
isFilePath()  : bool
isValidDirectoryName()  : bool
removeFilenameFromPath()  : string
sanitizeName()  : string
sanitizePath()  : string

Properties

Methods

__construct()

public __construct([string $location = '' ]) : mixed
Parameters
$location : string = ''

deleteWhenDestroyed()

public deleteWhenDestroyed([bool $deleteWhenDestroyed = true ]) : self
Parameters
$deleteWhenDestroyed : bool = true
Return values
self

location()

public location(string $location) : self
Parameters
$location : string
Return values
self

make()

public static make([string $location = '' ]) : self
Parameters
$location : string = ''
Return values
self

name()

public name(string $name) : self
Parameters
$name : string
Return values
self

path()

public path([string $pathOrFilename = '' ]) : string
Parameters
$pathOrFilename : string = ''
Return values
string

deleteDirectory()

protected deleteDirectory(string $path) : bool
Parameters
$path : string
Return values
bool

getSystemTemporaryDirectory()

protected getSystemTemporaryDirectory() : string
Return values
string

isFilePath()

protected isFilePath(string $path) : bool
Parameters
$path : string
Return values
bool

isValidDirectoryName()

protected isValidDirectoryName(string $directoryName) : bool
Parameters
$directoryName : string
Return values
bool

removeFilenameFromPath()

protected removeFilenameFromPath(string $path) : string
Parameters
$path : string
Return values
string

sanitizeName()

protected sanitizeName(string $name) : string
Parameters
$name : string
Return values
string

sanitizePath()

protected sanitizePath(string $path) : string
Parameters
$path : string
Return values
string

        
On this page

Search results