File
Table of Contents
| $useUploadTempDirectory | Use Temp or File Upload Temp for temporary files. | bool |
|---|---|---|
| setUseUploadTempDirectory() | Set the flag indicating whether the File Upload Temp directory should be used for temporary files. | void |
| getUseUploadTempDirectory() | Get the flag indicating whether the File Upload Temp directory should be used for temporary files. | bool |
| fileExists() | Verify if a file exists. | bool |
| realpath() | Returns canonicalized absolute pathname, also for ZIP archives. | string |
| sysGetTempDir() | Get the systems temporary directory. | string |
| temporaryFilename() | string | |
| assertFile() | Assert that given path is an existing file and is readable, otherwise throw exception. | void |
Properties
$useUploadTempDirectory
Use Temp or File Upload Temp for temporary files.
protected
static bool
$useUploadTempDirectory
= false
Methods
setUseUploadTempDirectory()
Set the flag indicating whether the File Upload Temp directory should be used for temporary files.
public
static setUseUploadTempDirectory(
$useUploadTempDir :
bool
)
: void
Parameters
- $useUploadTempDir : bool
Use File Upload Temporary directory (true or false)
getUseUploadTempDirectory()
Get the flag indicating whether the File Upload Temp directory should be used for temporary files.
public
static getUseUploadTempDirectory(
)
: bool
Return values
bool —Use File Upload Temporary directory (true or false)
fileExists()
Verify if a file exists.
public
static fileExists(
$pFilename :
string
)
: bool
Parameters
- $pFilename : string
Filename
Return values
boolrealpath()
Returns canonicalized absolute pathname, also for ZIP archives.
public
static realpath(
$pFilename :
string
)
: string
Parameters
- $pFilename : string
Return values
stringsysGetTempDir()
Get the systems temporary directory.
public
static sysGetTempDir(
)
: string
Return values
stringtemporaryFilename()
public
static temporaryFilename(
)
: string
Return values
stringassertFile()
Assert that given path is an existing file and is readable, otherwise throw exception.
public
static assertFile(
$filename :
string
)
: void
Parameters
- $filename : string