\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 : boolean

Use Temp or File Upload Temp for temporary files.

Type

boolean

Methods

setUseUploadTempDirectory()

setUseUploadTempDirectory(boolean  $useUploadTempDir) 

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

Parameters

boolean $useUploadTempDir

Use File Upload Temporary directory (true or false)

getUseUploadTempDirectory()

getUseUploadTempDirectory() : boolean

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

Returns

boolean —

Use File Upload Temporary directory (true or false)

fileExists()

fileExists(string  $pFilename) : boolean

Verify if a file exists.

Parameters

string $pFilename

Filename

Returns

boolean

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) 

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

Parameters

string $filename