\adminmatrix\swoole\responseFile

Summary

Methods
Properties
Constants
__construct()
getFile()
setFile()
setAutoContentType()
setContentDisposition()
setAutoLastModified()
setAutoEtag()
No public properties found
DISPOSITION_ATTACHMENT
DISPOSITION_INLINE
sendData()
$header
$file
N/A
No private methods found
No private properties found
N/A

Constants

DISPOSITION_ATTACHMENT

DISPOSITION_ATTACHMENT = 'attachment'

DISPOSITION_INLINE

DISPOSITION_INLINE = 'inline'

Properties

$header

$header

$file

$file : \SplFileInfo

Type

\SplFileInfo —

Methods

__construct()

__construct(mixed  $file, ?string  $contentDisposition = null, bool  $autoEtag = true, bool  $autoLastModified = true, bool  $autoContentType = true) : mixed

Parameters

mixed $file
?string $contentDisposition
bool $autoEtag
bool $autoLastModified
bool $autoContentType

Returns

mixed —

getFile()

getFile() : mixed

Returns

mixed —

setFile()

setFile(mixed  $file, ?string  $contentDisposition = null, bool  $autoEtag = true, bool  $autoLastModified = true, bool  $autoContentType = true) : mixed

Parameters

mixed $file
?string $contentDisposition
bool $autoEtag
bool $autoLastModified
bool $autoContentType

Returns

mixed —

setAutoContentType()

setAutoContentType() : mixed

Returns

mixed —

setContentDisposition()

setContentDisposition(string  $disposition, string  $filename = '') : mixed

Parameters

string $disposition
string $filename

Returns

mixed —

setAutoLastModified()

setAutoLastModified() : mixed

Returns

mixed —

setAutoEtag()

setAutoEtag() : mixed

Returns

mixed —

sendData()

sendData(string  $data) : void

Parameters

string $data