[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/http-foundation/ -> BinaryFileResponse.php (summary)

(no description)

File Size: 367 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BinaryFileResponse:: (14 methods):
  __construct()
  create()
  setFile()
  getFile()
  setAutoLastModified()
  setAutoEtag()
  setContentDisposition()
  prepare()
  hasValidIfRangeHeader()
  sendContent()
  setContent()
  getContent()
  trustXSendfileTypeHeader()
  deleteFileAfterSend()


Class: BinaryFileResponse  - X-Ref

BinaryFileResponse represents an HTTP response delivering a file.

__construct($file, $status = 200, $headers = [], $public = true, $contentDisposition = null, $autoEtag = false, $autoLastModified = true)   X-Ref

param: \SplFileInfo|string $file               The file to stream
param: int                 $status             The response status code
param: array               $headers            An array of response headers
param: bool                $public             Files are public by default
param: string|null         $contentDisposition The type of Content-Disposition to set automatically with the filename
param: bool                $autoEtag           Whether the ETag header should be automatically set
param: bool                $autoLastModified   Whether the Last-Modified header should be automatically set

create($file = null, $status = 200, $headers = [], $public = true, $contentDisposition = null, $autoEtag = false, $autoLastModified = true)   X-Ref

param: \SplFileInfo|string $file               The file to stream
param: int                 $status             The response status code
param: array               $headers            An array of response headers
param: bool                $public             Files are public by default
param: string|null         $contentDisposition The type of Content-Disposition to set automatically with the filename
param: bool                $autoEtag           Whether the ETag header should be automatically set
param: bool                $autoLastModified   Whether the Last-Modified header should be automatically set
return: static

setFile($file, $contentDisposition = null, $autoEtag = false, $autoLastModified = true)   X-Ref
Sets the file to stream.

param: \SplFileInfo|string $file               The file to stream
param: string              $contentDisposition
param: bool                $autoEtag
param: bool                $autoLastModified
return: $this

getFile()   X-Ref
Gets the file.

return: File The file to stream

setAutoLastModified()   X-Ref
Automatically sets the Last-Modified header according the file modification date.


setAutoEtag()   X-Ref
Automatically sets the ETag header according to the checksum of the file.


setContentDisposition($disposition, $filename = '', $filenameFallback = '')   X-Ref
Sets the Content-Disposition header with the given filename.

param: string $disposition      ResponseHeaderBag::DISPOSITION_INLINE or ResponseHeaderBag::DISPOSITION_ATTACHMENT
param: string $filename         Optionally use this UTF-8 encoded filename instead of the real name of the file
param: string $filenameFallback A fallback filename, containing only ASCII characters. Defaults to an automatically encoded filename
return: $this

prepare(Request $request)   X-Ref
{@inheritdoc}


hasValidIfRangeHeader($header)   X-Ref
No description

sendContent()   X-Ref
Sends the file.

{@inheritdoc}

setContent($content)   X-Ref
{@inheritdoc}


getContent()   X-Ref
{@inheritdoc}


trustXSendfileTypeHeader()   X-Ref
Trust X-Sendfile-Type header.


deleteFileAfterSend($shouldDelete)   X-Ref
If this is set to true, the file will be unlinked after the request is sent
Note: If the X-Sendfile header is used, the deleteFileAfterSend setting will not be used.

param: bool $shouldDelete
return: $this



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1