Property | Type | Description | |
---|---|---|---|
$file | |||
$ioService | eZ\Publish\Core\IO\IOServiceInterface | ||
$maxlen | |||
$offset | |||
$trustXSendfileTypeHeader |
Method | Description | |
---|---|---|
__construct ( |
Constructor. | |
getContent ( ) | ||
getFile ( ) : |
Gets the file. | |
prepare ( |
||
sendContent ( ) | Sends the file. | |
setAutoLastModified ( ) | Automatically sets the Last-Modified header according the file modification date. | |
setContent ( $content ) | ||
setContentDisposition ( string $disposition, string $filename = '', string $filenameFallback = '' ) : |
Sets the Content-Disposition header with the given filename. | |
setFile ( SplFileInfo | string $file, string $contentDisposition = null, boolean $autoLastModified = true ) : |
Sets the file to stream. |
public __construct ( |
||
$binaryFile | The name of the file to stream | |
$ioService | eZ\Publish\Core\IO\IOServiceInterface | The name of the file to stream |
$status | integer | The response status code |
$headers | array | An array of response headers |
$public | boolean | Files are public by default |
$contentDisposition | null | string | The type of Content-Disposition to set automatically with the filename |
$autoLastModified | boolean | Whether the Last-Modified header should be automatically set |
public getFile ( ) : |
||
return | The file to stream |
public prepare ( |
||
$request |
public setAutoLastModified ( ) |
public setContentDisposition ( string $disposition, string $filename = '', string $filenameFallback = '' ) : |
||
$disposition | string | ResponseHeaderBag::DISPOSITION_INLINE or ResponseHeaderBag::DISPOSITION_ATTACHMENT |
$filename | string | Optionally use this filename instead of the real name of the file |
$filenameFallback | string | A fallback filename, containing only ASCII characters. Defaults to an automatically encoded filename |
return |
protected BinaryFile,eZ\Publish\Core\IO\Values $file | ||
return |
protected IOServiceInterface,eZ\Publish\Core\IO $ioService | ||
return | eZ\Publish\Core\IO\IOServiceInterface |