\PhpOffice\PhpSpreadsheet\SharedFile

Summary

Methods
Properties
Constants
setUseUploadTempDirectory()
getUseUploadTempDirectory()
fileExists()
realpath()
sysGetTempDir()
assertFile()
No public properties found
No constants found
No protected methods found
$useUploadTempDirectory
N/A
No private methods found
No private properties found
N/A

Properties

$useUploadTempDirectory

$useUploadTempDirectory : bool

Use Temp or File Upload Temp for temporary files.

Type

bool

Methods

setUseUploadTempDirectory()

setUseUploadTempDirectory(bool  $useUploadTempDir) : void

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

Parameters

bool $useUploadTempDir

Use File Upload Temporary directory (true or false)

getUseUploadTempDirectory()

getUseUploadTempDirectory() : bool

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

Returns

bool —

Use File Upload Temporary directory (true or false)

fileExists()

fileExists(string  $pFilename) : bool

Verify if a file exists.

Parameters

string $pFilename

Filename

Returns

bool —

realpath()

realpath(string  $pFilename) : string

Returns canonicalized absolute pathname, also for ZIP archives.

Parameters

string $pFilename

Returns

string —

sysGetTempDir()

sysGetTempDir() : string

Get the systems temporary directory.

Returns

string —

assertFile()

assertFile(string  $filename) : void

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

Parameters

string $filename