Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (array $headers=[]) | |
__construct (array $headers=array()) | |
all () | |
all () | |
allPreserveCase () | |
allPreserveCase () | |
allPreserveCaseWithoutCookies () | |
allPreserveCaseWithoutCookies () | |
clearCookie ($name, $path='/', $domain=null, $secure=false, $httpOnly=true) | |
clearCookie ($name, $path='/', $domain=null, $secure=false, $httpOnly=true) | |
getCacheControlDirective ($key) | |
getCacheControlDirective ($key) | |
getCookies ($format=self::COOKIES_FLAT) | |
getCookies ($format=self::COOKIES_FLAT) | |
hasCacheControlDirective ($key) | |
hasCacheControlDirective ($key) | |
makeDisposition ($disposition, $filename, $filenameFallback='') | |
makeDisposition ($disposition, $filename, $filenameFallback='') | |
remove ($key) | |
remove ($key) | |
removeCookie ($name, $path='/', $domain=null) | |
removeCookie ($name, $path='/', $domain=null) | |
replace (array $headers=[]) | |
replace (array $headers=array()) | |
set ($key, $values, $replace=true) | |
set ($key, $values, $replace=true) | |
setCookie (Cookie $cookie) | |
setCookie (Cookie $cookie) | |
![]() | |
__toString () | |
__toString () | |
add (array $headers) | |
add (array $headers) | |
addCacheControlDirective ($key, $value=true) | |
addCacheControlDirective ($key, $value=true) | |
contains ($key, $value) | |
contains ($key, $value) | |
count () | |
count () | |
get ($key, $default=null) | |
get ($key, $default=null, $first=true) | |
getDate ($key, \DateTime $default=null) | |
getDate ($key, \DateTime $default=null) | |
getIterator () | |
getIterator () | |
has ($key) | |
has ($key) | |
keys () | |
keys () | |
removeCacheControlDirective ($key) | |
removeCacheControlDirective ($key) | |
Data Fields | |
const | COOKIES_ARRAY = 'array' |
const | COOKIES_FLAT = 'flat' |
const | DISPOSITION_ATTACHMENT = 'attachment' |
const | DISPOSITION_INLINE = 'inline' |
Protected Member Functions | |
computeCacheControlValue () | |
computeCacheControlValue () | |
![]() | |
getCacheControlHeader () | |
getCacheControlHeader () | |
parseCacheControl ($header) | |
parseCacheControl ($header) | |
Protected Attributes | |
$computedCacheControl = array() | |
$cookies = array() | |
$headerNames = array() | |
![]() | |
$cacheControl = array() | |
$headers = array() | |
const | LOWER = '-abcdefghijklmnopqrstuvwxyz' |
const | UPPER = '_ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
ResponseHeaderBag is a container for Response HTTP headers.
Definition at line 19 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
Symfony\Component\HttpFoundation\ResponseHeaderBag::__construct | ( | array | $headers = array() | ) |
Constructor.
array | $headers | An array of HTTP headers |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 56 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers.
Symfony\Component\HttpFoundation\ResponseHeaderBag::__construct | ( | array | $headers = [] | ) |
Constructor.
array | $headers | An array of HTTP headers |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 31 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers.
Symfony\Component\HttpFoundation\ResponseHeaderBag::all | ( | ) |
{Returns the headers.
string | null | $key | The name of the headers to return or null to get them all |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 93 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\ResponseHeaderBag\getCookies().
Symfony\Component\HttpFoundation\ResponseHeaderBag::all | ( | ) |
{Returns the headers.
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 107 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\ResponseHeaderBag\getCookies().
Referenced by Symfony\Component\HttpFoundation\ResponseHeaderBag\allPreserveCase().
Symfony\Component\HttpFoundation\ResponseHeaderBag::allPreserveCase | ( | ) |
Returns the headers, with original capitalizations.
Definition at line 50 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\ResponseHeaderBag\all().
Symfony\Component\HttpFoundation\ResponseHeaderBag::allPreserveCase | ( | ) |
Returns the headers, with original capitalizations.
Definition at line 70 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\ResponseHeaderBag\all().
Referenced by Symfony\Component\HttpFoundation\ResponseHeaderBag\allPreserveCaseWithoutCookies().
Symfony\Component\HttpFoundation\ResponseHeaderBag::allPreserveCaseWithoutCookies | ( | ) |
Definition at line 60 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\ResponseHeaderBag\allPreserveCase().
Symfony\Component\HttpFoundation\ResponseHeaderBag::allPreserveCaseWithoutCookies | ( | ) |
Definition at line 80 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\ResponseHeaderBag\allPreserveCase().
Symfony\Component\HttpFoundation\ResponseHeaderBag::clearCookie | ( | $name, | |
$path = '/' , |
|||
$domain = null , |
|||
$secure = false , |
|||
$httpOnly = true |
|||
) |
Clears a cookie in the browser.
string | $name | |
string | $path | |
string | $domain | |
bool | $secure | |
bool | $httpOnly | |
string | $sameSite |
Definition at line 257 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\ResponseHeaderBag\setCookie().
Symfony\Component\HttpFoundation\ResponseHeaderBag::clearCookie | ( | $name, | |
$path = '/' , |
|||
$domain = null , |
|||
$secure = false , |
|||
$httpOnly = true |
|||
) |
Clears a cookie in the browser.
string | $name | |
string | $path | |
string | $domain | |
bool | $secure | |
bool | $httpOnly |
Definition at line 265 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\ResponseHeaderBag\setCookie().
|
protected |
Returns the calculated value of the cache-control header.
This considers several other headers and calculates or modifies the cache-control header to a sensible, conservative value.
Definition at line 280 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\getCacheControlHeader(), and Symfony\Component\HttpFoundation\HeaderBag\has().
|
protected |
Returns the calculated value of the cache-control header.
This considers several other headers and calculates or modifies the cache-control header to a sensible, conservative value.
Definition at line 327 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\getCacheControlHeader(), and Symfony\Component\HttpFoundation\HeaderBag\has().
Referenced by Symfony\Component\HttpFoundation\ResponseHeaderBag\set().
Symfony\Component\HttpFoundation\ResponseHeaderBag::getCacheControlDirective | ( | $key | ) |
{Returns a Cache-Control directive value by name.
string | $key | The directive name |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 177 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
Symfony\Component\HttpFoundation\ResponseHeaderBag::getCacheControlDirective | ( | $key | ) |
{Returns a Cache-Control directive value by name.
string | $key | The directive name |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 181 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
Symfony\Component\HttpFoundation\ResponseHeaderBag::getCookies | ( | $format = self::COOKIES_FLAT | ) |
Returns an array with all cookies.
string | $format |
Definition at line 225 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\ResponseHeaderBag\$cookies.
Symfony\Component\HttpFoundation\ResponseHeaderBag::getCookies | ( | $format = self::COOKIES_FLAT | ) |
Returns an array with all cookies.
string | $format |
Definition at line 234 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\ResponseHeaderBag\$cookies.
Referenced by Symfony\Component\HttpFoundation\ResponseHeaderBag\all().
Symfony\Component\HttpFoundation\ResponseHeaderBag::hasCacheControlDirective | ( | $key | ) |
{Returns true if the Cache-Control directive is defined.
string | $key | The Cache-Control directive |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 169 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
Symfony\Component\HttpFoundation\ResponseHeaderBag::hasCacheControlDirective | ( | $key | ) |
{Returns true if the Cache-Control directive is defined.
string | $key | The Cache-Control directive |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 173 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
Symfony\Component\HttpFoundation\ResponseHeaderBag::makeDisposition | ( | $disposition, | |
$filename, | |||
$filenameFallback = '' |
|||
) |
Definition at line 267 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderUtils\makeDisposition().
Symfony\Component\HttpFoundation\ResponseHeaderBag::makeDisposition | ( | $disposition, | |
$filename, | |||
$filenameFallback = '' |
|||
) |
Generates a HTTP Content-Disposition field-value.
string | $disposition | One of "inline" or "attachment" |
string | $filename | A unicode string |
string | $filenameFallback | A string containing only ASCII characters that is semantically equivalent to $filename. If the filename is already ASCII, it can be omitted, or just copied from $filename |
Definition at line 285 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
Symfony\Component\HttpFoundation\ResponseHeaderBag::remove | ( | $key | ) |
{Removes a header.
string | $key | The HTTP header name |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 144 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
Symfony\Component\HttpFoundation\ResponseHeaderBag::remove | ( | $key | ) |
{Removes a header.
string | $key | The HTTP header name |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 152 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
Symfony\Component\HttpFoundation\ResponseHeaderBag::removeCookie | ( | $name, | |
$path = '/' , |
|||
$domain = null |
|||
) |
Removes a cookie from the array, but does not unset it in the browser.
string | $name | |
string | $path | |
string | $domain |
Definition at line 195 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
Symfony\Component\HttpFoundation\ResponseHeaderBag::removeCookie | ( | $name, | |
$path = '/' , |
|||
$domain = null |
|||
) |
Removes a cookie from the array, but does not unset it in the browser.
string | $name | |
string | $path | |
string | $domain |
Definition at line 204 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
Symfony\Component\HttpFoundation\ResponseHeaderBag::replace | ( | array | $headers = [] | ) |
{Replaces the current HTTP headers by a new set.
array | $headers | An array of HTTP headers |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 73 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers.
Symfony\Component\HttpFoundation\ResponseHeaderBag::replace | ( | array | $headers = array() | ) |
{Replaces the current HTTP headers by a new set.
array | $headers | An array of HTTP headers |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 93 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers.
Symfony\Component\HttpFoundation\ResponseHeaderBag::set | ( | $key, | |
$values, | |||
$replace = true |
|||
) |
{Sets a header by name.
string | $key | The key |
string | array | $values | The value or an array of values |
bool | $replace | Whether to replace the actual value or not (true by default) |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 113 of file vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\ResponseHeaderBag\computeCacheControlValue(), Symfony\Component\HttpFoundation\Cookie\fromString(), Symfony\Component\HttpFoundation\HeaderBag\parseCacheControl(), and Symfony\Component\HttpFoundation\ResponseHeaderBag\setCookie().
Symfony\Component\HttpFoundation\ResponseHeaderBag::set | ( | $key, | |
$values, | |||
$replace = true |
|||
) |
{Sets a header by name.
string | $key | The key |
string | array | $values | The value or an array of values |
bool | $replace | Whether to replace the actual value or not (true by default) |
Reimplemented from Symfony\Component\HttpFoundation\HeaderBag.
Definition at line 120 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\ResponseHeaderBag\computeCacheControlValue(), Symfony\Component\HttpFoundation\Cookie\fromString(), Symfony\Component\HttpFoundation\HeaderBag\parseCacheControl(), and Symfony\Component\HttpFoundation\ResponseHeaderBag\setCookie().
Symfony\Component\HttpFoundation\ResponseHeaderBag::setCookie | ( | Cookie | $cookie | ) |
Symfony\Component\HttpFoundation\ResponseHeaderBag::setCookie | ( | Cookie | $cookie | ) |
Sets a cookie.
Cookie | $cookie |
Definition at line 191 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
References Symfony\Component\HttpFoundation\Cookie\getDomain(), Symfony\Component\HttpFoundation\Cookie\getName(), and Symfony\Component\HttpFoundation\Cookie\getPath().
Referenced by Symfony\Component\HttpFoundation\ResponseHeaderBag\clearCookie(), and Symfony\Component\HttpFoundation\ResponseHeaderBag\set().
|
protected |
Definition at line 33 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
|
protected |
Definition at line 41 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
Referenced by Symfony\Component\HttpFoundation\ResponseHeaderBag\getCookies().
|
protected |
Definition at line 49 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
const Symfony\Component\HttpFoundation\ResponseHeaderBag::COOKIES_ARRAY = 'array' |
Definition at line 22 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
Referenced by Symfony\Component\HttpFoundation\Tests\ResponseHeaderBagTest\testCookiesWithSameNames(), Symfony\Component\HttpFoundation\Tests\ResponseHeaderBagTest\testRemoveCookie(), and Symfony\Component\HttpFoundation\Tests\ResponseHeaderBagTest\testRemoveCookieWithNullRemove().
const Symfony\Component\HttpFoundation\ResponseHeaderBag::COOKIES_FLAT = 'flat' |
Definition at line 21 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
const Symfony\Component\HttpFoundation\ResponseHeaderBag::DISPOSITION_ATTACHMENT = 'attachment' |
Definition at line 24 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
Referenced by Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testSetContentDispositionGeneratesSafeFallbackFilename().
const Symfony\Component\HttpFoundation\ResponseHeaderBag::DISPOSITION_INLINE = 'inline' |
Definition at line 25 of file lib/vendor/symfony/http-foundation/ResponseHeaderBag.php.
Referenced by Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest\testConstruction().