프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$file | |||
$ioService | eZ\Publish\Core\IO\IOServiceInterface | ||
$maxlen | |||
$offset | |||
$trustXSendfileTypeHeader |
메소드 | 설명 | |
---|---|---|
__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 ( ) : |
||
리턴 | 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 |
리턴 |
protected BinaryFile,eZ\Publish\Core\IO\Values $file | ||
리턴 |
protected IOServiceInterface,eZ\Publish\Core\IO $ioService | ||
리턴 | eZ\Publish\Core\IO\IOServiceInterface |