Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($file, $status=200, $headers=array(), $public=true, $contentDisposition=null, $autoEtag=false, $autoLastModified=true) | |
__construct ($file, int $status=200, array $headers=[], bool $public=true, string $contentDisposition=null, bool $autoEtag=false, bool $autoLastModified=true) | |
deleteFileAfterSend ($shouldDelete) | |
deleteFileAfterSend ($shouldDelete=true) | |
getContent () | |
getContent () | |
getFile () | |
getFile () | |
prepare (Request $request) | |
prepare (Request $request) | |
sendContent () | |
sendContent () | |
setAutoEtag () | |
setAutoEtag () | |
setAutoLastModified () | |
setAutoLastModified () | |
setContent ($content) | |
setContent ($content) | |
setContentDisposition ($disposition, $filename='', $filenameFallback='') | |
setContentDisposition ($disposition, $filename='', $filenameFallback='') | |
setFile ($file, $contentDisposition=null, $autoEtag=false, $autoLastModified=true) | |
setFile ($file, $contentDisposition=null, $autoEtag=false, $autoLastModified=true) | |
![]() | |
__clone () | |
__clone () | |
__construct ($content='', $status=200, $headers=array()) | |
__construct ($content='', int $status=200, array $headers=[]) | |
__toString () | |
__toString () | |
expire () | |
expire () | |
getAge () | |
getAge () | |
getCharset () | |
getCharset () | |
getDate () | |
getDate () | |
getEtag () | |
getEtag () | |
getExpires () | |
getExpires () | |
getLastModified () | |
getLastModified () | |
getMaxAge () | |
getMaxAge () | |
getProtocolVersion () | |
getProtocolVersion () | |
getStatusCode () | |
getStatusCode () | |
getTtl () | |
getTtl () | |
getVary () | |
getVary () | |
hasVary () | |
hasVary () | |
isCacheable () | |
isCacheable () | |
isClientError () | |
isClientError () | |
isEmpty () | |
isEmpty () | |
isForbidden () | |
isForbidden () | |
isFresh () | |
isFresh () | |
isImmutable () | |
isInformational () | |
isInformational () | |
isInvalid () | |
isInvalid () | |
isNotFound () | |
isNotFound () | |
isNotModified (Request $request) | |
isNotModified (Request $request) | |
isOk () | |
isOk () | |
isRedirect ($location=null) | |
isRedirect (string $location=null) | |
isRedirection () | |
isRedirection () | |
isServerError () | |
isServerError () | |
isSuccessful () | |
isSuccessful () | |
isValidateable () | |
isValidateable () | |
mustRevalidate () | |
mustRevalidate () | |
send () | |
send () | |
sendHeaders () | |
sendHeaders () | |
setCache (array $options) | |
setCache (array $options) | |
setCharset ($charset) | |
setCharset (string $charset) | |
setClientTtl ($seconds) | |
setClientTtl (int $seconds) | |
setDate (\DateTime $date) | |
setDate (\DateTimeInterface $date) | |
setEtag ($etag=null, $weak=false) | |
setEtag (string $etag=null, bool $weak=false) | |
setExpires (\DateTime $date=null) | |
setExpires (\DateTimeInterface $date=null) | |
setImmutable (bool $immutable=true) | |
setLastModified (\DateTime $date=null) | |
setLastModified (\DateTimeInterface $date=null) | |
setMaxAge ($value) | |
setMaxAge (int $value) | |
setNotModified () | |
setNotModified () | |
setPrivate () | |
setPrivate () | |
setProtocolVersion ($version) | |
setProtocolVersion (string $version) | |
setPublic () | |
setPublic () | |
setSharedMaxAge ($value) | |
setSharedMaxAge (int $value) | |
setStatusCode ($code, $text=null) | |
setStatusCode (int $code, $text=null) | |
setTtl ($seconds) | |
setTtl (int $seconds) | |
setVary ($headers, $replace=true) | |
setVary ($headers, bool $replace=true) | |
Static Public Member Functions | |
static | create ($file=null, $status=200, $headers=[], $public=true, $contentDisposition=null, $autoEtag=false, $autoLastModified=true) |
static | create ($file=null, $status=200, $headers=array(), $public=true, $contentDisposition=null, $autoEtag=false, $autoLastModified=true) |
static | trustXSendfileTypeHeader () |
static | trustXSendfileTypeHeader () |
![]() | |
static | closeOutputBuffers ($targetLevel, $flush) |
static | closeOutputBuffers (int $targetLevel, bool $flush) |
static | create ($content='', $status=200, $headers=[]) |
static | create ($content='', $status=200, $headers=array()) |
Protected Attributes | |
$deleteFileAfterSend = false | |
$file | |
$maxlen = -1 | |
$offset = 0 | |
![]() | |
$charset | |
$content | |
$statusCode | |
$statusText | |
$version | |
Static Protected Attributes | |
static | $trustXSendfileTypeHeader = false |
BinaryFileResponse represents an HTTP response delivering a file.
Definition at line 26 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
Symfony\Component\HttpFoundation\BinaryFileResponse::__construct | ( | $file, | |
$status = 200 , |
|||
$headers = array() , |
|||
$public = true , |
|||
$contentDisposition = null , |
|||
$autoEtag = false , |
|||
$autoLastModified = true |
|||
) |
Constructor.
\SplFileInfo | string | $file | The file to stream |
int | $status | The response status code |
array | $headers | An array of response headers |
bool | $public | Files are public by default |
null | string | $contentDisposition | The type of Content-Disposition to set automatically with the filename |
bool | $autoEtag | Whether the ETag header should be automatically set |
bool | $autoLastModified | Whether the Last-Modified header should be automatically set |
Definition at line 52 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\$file, Symfony\Component\HttpFoundation\Response\$headers, Symfony\Component\HttpFoundation\BinaryFileResponse\setFile(), and Symfony\Component\HttpFoundation\Response\setPublic().
Symfony\Component\HttpFoundation\BinaryFileResponse::__construct | ( | $file, | |
int | $status = 200 , |
||
array | $headers = [] , |
||
bool | $public = true , |
||
string | $contentDisposition = null , |
||
bool | $autoEtag = false , |
||
bool | $autoLastModified = true |
||
) |
\SplFileInfo | string | $file | The file to stream |
int | $status | The response status code |
array | $headers | An array of response headers |
bool | $public | Files are public by default |
string | null | $contentDisposition | The type of Content-Disposition to set automatically with the filename |
bool | $autoEtag | Whether the ETag header should be automatically set |
bool | $autoLastModified | Whether the Last-Modified header should be automatically set |
Definition at line 50 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\$file, Symfony\Component\HttpFoundation\Response\$headers, Symfony\Component\HttpFoundation\BinaryFileResponse\setFile(), and Symfony\Component\HttpFoundation\Response\setPublic().
|
static |
\SplFileInfo | string | $file | The file to stream |
int | $status | The response status code |
array | $headers | An array of response headers |
bool | $public | Files are public by default |
string | null | $contentDisposition | The type of Content-Disposition to set automatically with the filename |
bool | $autoEtag | Whether the ETag header should be automatically set |
bool | $autoLastModified | Whether the Last-Modified header should be automatically set |
Definition at line 72 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\$file, and Symfony\Component\HttpFoundation\Response\$headers.
|
static |
\SplFileInfo | string | $file | The file to stream |
int | $status | The response status code |
array | $headers | An array of response headers |
bool | $public | Files are public by default |
null | string | $contentDisposition | The type of Content-Disposition to set automatically with the filename |
bool | $autoEtag | Whether the ETag header should be automatically set |
bool | $autoLastModified | Whether the Last-Modified header should be automatically set |
Definition at line 74 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\$file, and Symfony\Component\HttpFoundation\Response\$headers.
Referenced by Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testAcceptRangeNotOverriden(), Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testAcceptRangeOnUnsafeMethods(), Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testConstruction(), Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testFullFileRequests(), Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testInvalidRequests(), Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testRangeRequestsWithoutLastModifiedDate(), Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testRequests(), Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testRequestsWithoutEtag(), and Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testXSendfile().
Symfony\Component\HttpFoundation\BinaryFileResponse::deleteFileAfterSend | ( | $shouldDelete | ) |
If this is set to true, the file will be unlinked after the request is send Note: If the X-Sendfile header is used, the deleteFileAfterSend setting will not be used.
bool | $shouldDelete |
Definition at line 358 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
Referenced by Symfony\Component\HttpFoundation\BinaryFileResponse\deleteFileAfterSend(), and Symfony\Component\HttpFoundation\BinaryFileResponse\sendContent().
Symfony\Component\HttpFoundation\BinaryFileResponse::deleteFileAfterSend | ( | $shouldDelete = true | ) |
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.
bool | $shouldDelete |
Definition at line 356 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\deleteFileAfterSend().
Symfony\Component\HttpFoundation\BinaryFileResponse::getContent | ( | ) |
{Gets the current response content.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 335 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
Symfony\Component\HttpFoundation\BinaryFileResponse::getContent | ( | ) |
{Gets the current response content.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 337 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
Symfony\Component\HttpFoundation\BinaryFileResponse::getFile | ( | ) |
Gets the file.
Definition at line 125 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\$file.
Symfony\Component\HttpFoundation\BinaryFileResponse::getFile | ( | ) |
Gets the file.
Definition at line 127 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\$file.
Symfony\Component\HttpFoundation\BinaryFileResponse::prepare | ( | Request | $request | ) |
{Prepares the Response before it is sent to the client.This method tweaks the Response to ensure that it is compliant with RFC 2616. Most of the changes are based on the Request that is "associated" with this Response.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 188 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\Response\ensureIEOverSSLCompatibility(), Symfony\Component\HttpFoundation\Request\get(), Symfony\Component\HttpFoundation\Request\isMethodSafe(), Symfony\Component\HttpFoundation\Response\setProtocolVersion(), Symfony\Component\HttpFoundation\Response\setStatusCode(), and Symfony\Component\HttpFoundation\HeaderUtils\split().
Symfony\Component\HttpFoundation\BinaryFileResponse::prepare | ( | Request | $request | ) |
{Prepares the Response before it is sent to the client.This method tweaks the Response to ensure that it is compliant with RFC 2616. Most of the changes are based on the Request that is "associated" with this Response.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 190 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\Response\ensureIEOverSSLCompatibility(), Symfony\Component\HttpFoundation\Request\get(), Symfony\Component\HttpFoundation\Request\isMethodSafe(), Symfony\Component\HttpFoundation\Response\setProtocolVersion(), and Symfony\Component\HttpFoundation\Response\setStatusCode().
Symfony\Component\HttpFoundation\BinaryFileResponse::sendContent | ( | ) |
Sends the file.
{Sends content for the current web response.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 293 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\$file, Symfony\Component\HttpFoundation\BinaryFileResponse\deleteFileAfterSend(), and Symfony\Component\HttpFoundation\Response\isSuccessful().
Symfony\Component\HttpFoundation\BinaryFileResponse::sendContent | ( | ) |
Sends the file.
{Sends content for the current web response.
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 295 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\$file, Symfony\Component\HttpFoundation\BinaryFileResponse\deleteFileAfterSend(), and Symfony\Component\HttpFoundation\Response\isSuccessful().
Symfony\Component\HttpFoundation\BinaryFileResponse::setAutoEtag | ( | ) |
Automatically sets the ETag header according to the checksum of the file.
Definition at line 143 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\Response\setEtag().
Symfony\Component\HttpFoundation\BinaryFileResponse::setAutoEtag | ( | ) |
Automatically sets the ETag header according to the checksum of the file.
Definition at line 145 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\Response\setEtag().
Referenced by Symfony\Component\HttpFoundation\BinaryFileResponse\setFile().
Symfony\Component\HttpFoundation\BinaryFileResponse::setAutoLastModified | ( | ) |
Automatically sets the Last-Modified header according the file modification date.
Definition at line 133 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\Response\setLastModified().
Symfony\Component\HttpFoundation\BinaryFileResponse::setAutoLastModified | ( | ) |
Automatically sets the Last-Modified header according the file modification date.
Definition at line 135 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\Response\setLastModified().
Referenced by Symfony\Component\HttpFoundation\BinaryFileResponse\setFile().
Symfony\Component\HttpFoundation\BinaryFileResponse::setContent | ( | $content | ) |
{Sets the response content.Valid types are strings, numbers, null, and objects that implement a __toString() method.
mixed | $content | Content that can be cast to string |
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 323 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\Response\$content.
Symfony\Component\HttpFoundation\BinaryFileResponse::setContent | ( | $content | ) |
{Sets the response content.Valid types are strings, numbers, null, and objects that implement a __toString() method.
mixed | $content | Content that can be cast to string |
Reimplemented from Symfony\Component\HttpFoundation\Response.
Definition at line 325 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\Response\$content.
Symfony\Component\HttpFoundation\BinaryFileResponse::setContentDisposition | ( | $disposition, | |
$filename = '' , |
|||
$filenameFallback = '' |
|||
) |
Sets the Content-Disposition header with the given filename.
string | $disposition | ResponseHeaderBag::DISPOSITION_INLINE or ResponseHeaderBag::DISPOSITION_ATTACHMENT |
string | $filename | Optionally use this UTF-8 encoded filename instead of the real name of the file |
string | $filenameFallback | A fallback filename, containing only ASCII characters. Defaults to an automatically encoded filename |
Definition at line 159 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
Symfony\Component\HttpFoundation\BinaryFileResponse::setContentDisposition | ( | $disposition, | |
$filename = '' , |
|||
$filenameFallback = '' |
|||
) |
Sets the Content-Disposition header with the given filename.
string | $disposition | ResponseHeaderBag::DISPOSITION_INLINE or ResponseHeaderBag::DISPOSITION_ATTACHMENT |
string | $filename | Optionally use this filename instead of the real name of the file |
string | $filenameFallback | A fallback filename, containing only ASCII characters. Defaults to an automatically encoded filename |
Definition at line 161 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
Referenced by Symfony\Component\HttpFoundation\BinaryFileResponse\setFile().
Symfony\Component\HttpFoundation\BinaryFileResponse::setFile | ( | $file, | |
$contentDisposition = null , |
|||
$autoEtag = false , |
|||
$autoLastModified = true |
|||
) |
Sets the file to stream.
\SplFileInfo | string | $file | The file to stream |
string | $contentDisposition | |
bool | $autoEtag | |
bool | $autoLastModified |
FileException |
Definition at line 89 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\$file, Symfony\Component\HttpFoundation\BinaryFileResponse\setAutoEtag(), Symfony\Component\HttpFoundation\BinaryFileResponse\setAutoLastModified(), and Symfony\Component\HttpFoundation\BinaryFileResponse\setContentDisposition().
Symfony\Component\HttpFoundation\BinaryFileResponse::setFile | ( | $file, | |
$contentDisposition = null , |
|||
$autoEtag = false , |
|||
$autoLastModified = true |
|||
) |
Sets the file to stream.
\SplFileInfo | string | $file | The file to stream |
string | $contentDisposition | |
bool | $autoEtag | |
bool | $autoLastModified |
FileException |
Definition at line 91 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
References Symfony\Component\HttpFoundation\BinaryFileResponse\$file, Symfony\Component\HttpFoundation\BinaryFileResponse\setAutoEtag(), Symfony\Component\HttpFoundation\BinaryFileResponse\setAutoLastModified(), and Symfony\Component\HttpFoundation\BinaryFileResponse\setContentDisposition().
Referenced by Symfony\Component\HttpFoundation\BinaryFileResponse\__construct().
|
static |
Trust X-Sendfile-Type header.
Definition at line 343 of file vendor/symfony/http-foundation/BinaryFileResponse.php.
|
static |
Trust X-Sendfile-Type header.
Definition at line 345 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
Referenced by Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testXAccelMapping(), and Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testXSendfile().
|
protected |
Definition at line 39 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
|
protected |
Definition at line 36 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
Referenced by Symfony\Component\HttpFoundation\BinaryFileResponse\__construct(), Symfony\Component\HttpFoundation\BinaryFileResponse\create(), Symfony\Component\HttpFoundation\BinaryFileResponse\getFile(), Symfony\Component\HttpFoundation\BinaryFileResponse\sendContent(), and Symfony\Component\HttpFoundation\BinaryFileResponse\setFile().
|
protected |
Definition at line 38 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
|
protected |
Definition at line 37 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.
|
staticprotected |
Definition at line 28 of file lib/vendor/symfony/http-foundation/BinaryFileResponse.php.