Documentation

TemporaryDirectory
in package

Table of Contents

$forceCreate  : bool
$location  : string
$name  : string
__construct()  : mixed
create()  : self
delete()  : bool
empty()  : self
force()  : self
location()  : 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 = ''
Return values
mixed

location()

public location(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

Search results