Documentation

File
in package

Table of Contents

Constants

ZIP_FIRST_4  = [ "PK\x03\x04", // what it looks like on my system "\x04\x03KP", ]

Properties

$useUploadTempDirectory  : bool
Use Temp or File Upload Temp for temporary files.

Methods

assertFile()  : void
Assert that given path is an existing file and is readable, otherwise throw exception.
fileExists()  : bool
Verify if a file exists.
getUseUploadTempDirectory()  : bool
Get the flag indicating whether the File Upload Temp directory should be used for temporary files.
realpath()  : string
Returns canonicalized absolute pathname, also for ZIP archives.
setUseUploadTempDirectory()  : void
Set the flag indicating whether the File Upload Temp directory should be used for temporary files.
sysGetTempDir()  : string
Get the systems temporary directory.
temporaryFilename()  : string
testFileNoThrow()  : bool
Same as assertFile, except return true/false and don't throw Exception.
validateZipFirst4()  : bool

Constants

ZIP_FIRST_4

private mixed ZIP_FIRST_4 = [ "PK\x03\x04", // what it looks like on my system "\x04\x03KP", ]

Properties

$useUploadTempDirectory

Use Temp or File Upload Temp for temporary files.

protected static bool $useUploadTempDirectory = false

Methods

assertFile()

Assert that given path is an existing file and is readable, otherwise throw exception.

public static assertFile(string $filename[, string $zipMember = '' ]) : void
Parameters
$filename : string
$zipMember : string = ''

fileExists()

Verify if a file exists.

public static fileExists(string $filename) : bool
Parameters
$filename : string
Return values
bool

getUseUploadTempDirectory()

Get the flag indicating whether the File Upload Temp directory should be used for temporary files.

public static getUseUploadTempDirectory() : bool
Return values
bool

realpath()

Returns canonicalized absolute pathname, also for ZIP archives.

public static realpath(string $filename) : string
Parameters
$filename : string
Return values
string

setUseUploadTempDirectory()

Set the flag indicating whether the File Upload Temp directory should be used for temporary files.

public static setUseUploadTempDirectory(bool $useUploadTempDir) : void
Parameters
$useUploadTempDir : bool

sysGetTempDir()

Get the systems temporary directory.

public static sysGetTempDir() : string
Return values
string

temporaryFilename()

public static temporaryFilename() : string
Return values
string

testFileNoThrow()

Same as assertFile, except return true/false and don't throw Exception.

public static testFileNoThrow(string $filename[, string|null $zipMember = null ]) : bool
Parameters
$filename : string
$zipMember : string|null = null
Return values
bool

validateZipFirst4()

private static validateZipFirst4(string $zipFile) : bool
Parameters
$zipFile : string
Return values
bool

        
On this page

Search results