|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct (array $headers=[]) | |
| __construct (array $headers=array()) | |
| __toString () | |
| __toString () | |
| add (array $headers) | |
| add (array $headers) | |
| addCacheControlDirective ($key, $value=true) | |
| addCacheControlDirective ($key, $value=true) | |
| all () | |
| all () | |
| contains ($key, $value) | |
| contains ($key, $value) | |
| count () | |
| count () | |
| get ($key, $default=null) | |
| get ($key, $default=null, $first=true) | |
| getCacheControlDirective ($key) | |
| getCacheControlDirective ($key) | |
| getDate ($key, \DateTime $default=null) | |
| getDate ($key, \DateTime $default=null) | |
| getIterator () | |
| getIterator () | |
| has ($key) | |
| has ($key) | |
| hasCacheControlDirective ($key) | |
| hasCacheControlDirective ($key) | |
| keys () | |
| keys () | |
| remove ($key) | |
| remove ($key) | |
| removeCacheControlDirective ($key) | |
| removeCacheControlDirective ($key) | |
| replace (array $headers=[]) | |
| replace (array $headers=array()) | |
| set ($key, $values, $replace=true) | |
| set ($key, $values, $replace=true) | |
Protected Member Functions | |
| getCacheControlHeader () | |
| getCacheControlHeader () | |
| parseCacheControl ($header) | |
| parseCacheControl ($header) | |
Protected Attributes | |
| $cacheControl = array() | |
| $headers = array() | |
| const | LOWER = '-abcdefghijklmnopqrstuvwxyz' |
| const | UPPER = '_ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
HeaderBag is a container for HTTP headers.
Definition at line 19 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::__construct | ( | array | $headers = array() | ) |
Constructor.
| array | $headers | An array of HTTP headers |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 29 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers.
| Symfony\Component\HttpFoundation\HeaderBag::__construct | ( | array | $headers = [] | ) |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 27 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers.
| Symfony\Component\HttpFoundation\HeaderBag::__toString | ( | ) |
Returns the headers as a string.
Definition at line 39 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\HeaderBag\all().
| Symfony\Component\HttpFoundation\HeaderBag::__toString | ( | ) |
Returns the headers as a string.
Definition at line 41 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\HeaderBag\all().
| Symfony\Component\HttpFoundation\HeaderBag::add | ( | array | $headers | ) |
Adds new headers the current HTTP headers set.
| array | $headers | An array of HTTP headers |
Definition at line 96 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers.
Referenced by Symfony\Component\HttpFoundation\HeaderBag\replace().
| Symfony\Component\HttpFoundation\HeaderBag::add | ( | array | $headers | ) |
Adds new headers the current HTTP headers set.
Definition at line 96 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers.
| Symfony\Component\HttpFoundation\HeaderBag::addCacheControlDirective | ( | $key, | |
$value = true |
|||
| ) |
Adds a custom Cache-Control directive.
| string | $key | The Cache-Control directive name |
| mixed | $value | The Cache-Control directive value |
Definition at line 226 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\getCacheControlHeader().
| Symfony\Component\HttpFoundation\HeaderBag::addCacheControlDirective | ( | $key, | |
$value = true |
|||
| ) |
Adds a custom Cache-Control directive.
| string | $key | The Cache-Control directive name |
| mixed | $value | The Cache-Control directive value |
Definition at line 234 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\getCacheControlHeader().
| Symfony\Component\HttpFoundation\HeaderBag::all | ( | ) |
Returns the headers.
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 65 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers.
Referenced by Symfony\Component\HttpFoundation\HeaderBag\__toString(), Symfony\Component\HttpFoundation\HeaderBag\contains(), Symfony\Component\HttpFoundation\HeaderBag\get(), Symfony\Component\HttpFoundation\HeaderBag\has(), and Symfony\Component\HttpFoundation\HeaderBag\keys().
| Symfony\Component\HttpFoundation\HeaderBag::all | ( | ) |
Returns the headers.
| string | null | $key | The name of the headers to return or null to get them all |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 65 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers.
| Symfony\Component\HttpFoundation\HeaderBag::contains | ( | $key, | |
| $value | |||
| ) |
Returns true if the given HTTP header contains the given value.
| string | $key | The HTTP header name |
| string | $value | The HTTP value |
Definition at line 176 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::contains | ( | $key, | |
| $value | |||
| ) |
Returns true if the given HTTP header contains the given value.
| string | $key | The HTTP header name |
| string | $value | The HTTP value |
Definition at line 185 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\all().
| Symfony\Component\HttpFoundation\HeaderBag::count | ( | ) |
Returns the number of headers.
Definition at line 284 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
Referenced by Symfony\Component\HttpFoundation\HeaderBag\get().
| Symfony\Component\HttpFoundation\HeaderBag::count | ( | ) |
Returns the number of headers.
Definition at line 292 of file vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::get | ( | $key, | |
$default = null |
|||
| ) |
Returns a header value by name.
| string | $key | The header name |
| string | null | $default | The default value |
Definition at line 111 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\HeaderBag\all().
| Symfony\Component\HttpFoundation\HeaderBag::get | ( | $key, | |
$default = null, |
|||
$first = true |
|||
| ) |
Returns a header value by name.
| string | $key | The header name |
| mixed | $default | The default value |
| bool | $first | Whether to return the first value or all header values |
Definition at line 112 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, Symfony\Component\HttpFoundation\HeaderBag\all(), and Symfony\Component\HttpFoundation\HeaderBag\count().
| Symfony\Component\HttpFoundation\HeaderBag::getCacheControlDirective | ( | $key | ) |
Returns a Cache-Control directive value by name.
| string | $key | The directive name |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 252 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::getCacheControlDirective | ( | $key | ) |
Returns a Cache-Control directive value by name.
| string | $key | The directive name |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 260 of file vendor/symfony/http-foundation/HeaderBag.php.
|
protected |
Definition at line 289 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
Referenced by Symfony\Component\HttpFoundation\HeaderBag\addCacheControlDirective(), Symfony\Component\HttpFoundation\ResponseHeaderBag\computeCacheControlValue(), and Symfony\Component\HttpFoundation\HeaderBag\removeCacheControlDirective().
|
protected |
Definition at line 297 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderUtils\toString().
| Symfony\Component\HttpFoundation\HeaderBag::getDate | ( | $key, | |
| \DateTime | $default = null |
||
| ) |
Returns the HTTP header value converted to a date.
| string | $key | The parameter key |
| \DateTime | $default | The default value |
Definition at line 207 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::getDate | ( | $key, | |
| \DateTime | $default = null |
||
| ) |
Returns the HTTP header value converted to a date.
| string | $key | The parameter key |
Definition at line 215 of file vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::getIterator | ( | ) |
Returns an iterator for headers.
Definition at line 274 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::getIterator | ( | ) |
Returns an iterator for headers.
Definition at line 282 of file vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::has | ( | $key | ) |
Returns true if the HTTP header is defined.
| string | $key | The HTTP header |
Definition at line 163 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\all().
Referenced by Symfony\Component\HttpFoundation\ResponseHeaderBag\computeCacheControlValue().
| Symfony\Component\HttpFoundation\HeaderBag::has | ( | $key | ) |
Returns true if the HTTP header is defined.
| string | $key | The HTTP header |
Definition at line 172 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\all().
| Symfony\Component\HttpFoundation\HeaderBag::hasCacheControlDirective | ( | $key | ) |
Returns true if the Cache-Control directive is defined.
| string | $key | The Cache-Control directive |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 240 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::hasCacheControlDirective | ( | $key | ) |
Returns true if the Cache-Control directive is defined.
| string | $key | The Cache-Control directive |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 248 of file vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::keys | ( | ) |
Returns the parameter keys.
Definition at line 75 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\all().
| Symfony\Component\HttpFoundation\HeaderBag::keys | ( | ) |
Returns the parameter keys.
Definition at line 79 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\all().
|
protected |
Parses a Cache-Control HTTP header.
| string | $header | The value of the Cache-Control HTTP header |
Definition at line 311 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderUtils\combine(), and Symfony\Component\HttpFoundation\HeaderUtils\split().
|
protected |
Parses a Cache-Control HTTP header.
| string | $header | The value of the Cache-Control HTTP header |
Definition at line 315 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$cacheControl.
Referenced by Symfony\Component\HttpFoundation\ResponseHeaderBag\set(), and Symfony\Component\HttpFoundation\HeaderBag\set().
| Symfony\Component\HttpFoundation\HeaderBag::remove | ( | $key | ) |
Removes a header.
| string | $key | The HTTP header name |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 186 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::remove | ( | $key | ) |
Removes a header.
| string | $key | The HTTP header name |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 195 of file vendor/symfony/http-foundation/HeaderBag.php.
| Symfony\Component\HttpFoundation\HeaderBag::removeCacheControlDirective | ( | $key | ) |
Removes a Cache-Control directive.
| string | $key | The Cache-Control directive |
Definition at line 262 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\getCacheControlHeader().
| Symfony\Component\HttpFoundation\HeaderBag::removeCacheControlDirective | ( | $key | ) |
Removes a Cache-Control directive.
| string | $key | The Cache-Control directive |
Definition at line 270 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\getCacheControlHeader().
| Symfony\Component\HttpFoundation\HeaderBag::replace | ( | array | $headers = [] | ) |
Replaces the current HTTP headers by a new set.
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 87 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\HeaderBag\add().
| Symfony\Component\HttpFoundation\HeaderBag::replace | ( | array | $headers = array() | ) |
Replaces the current HTTP headers by a new set.
| array | $headers | An array of HTTP headers |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 85 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\$headers, and Symfony\Component\HttpFoundation\HeaderBag\add().
| Symfony\Component\HttpFoundation\HeaderBag::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 in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 139 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\parseCacheControl().
| Symfony\Component\HttpFoundation\HeaderBag::set | ( | $key, | |
| $values, | |||
$replace = true |
|||
| ) |
Sets a header by name.
| string | $key | The key |
| string | string[] | $values | The value or an array of values |
| bool | $replace | Whether to replace the actual value or not (true by default) |
Reimplemented in Symfony\Component\HttpFoundation\ResponseHeaderBag, and Symfony\Component\HttpFoundation\ResponseHeaderBag.
Definition at line 140 of file vendor/symfony/http-foundation/HeaderBag.php.
References Symfony\Component\HttpFoundation\HeaderBag\parseCacheControl().
|
protected |
Definition at line 22 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
Referenced by Symfony\Component\HttpFoundation\HeaderBag\parseCacheControl().
|
protected |
Definition at line 21 of file lib/vendor/symfony/http-foundation/HeaderBag.php.
Referenced by Symfony\Component\HttpFoundation\HeaderBag\__construct(), Symfony\Component\HttpFoundation\ResponseHeaderBag\__construct(), Symfony\Component\HttpFoundation\HeaderBag\__toString(), Symfony\Component\HttpFoundation\HeaderBag\add(), Symfony\Component\HttpFoundation\HeaderBag\all(), Symfony\Component\HttpFoundation\ResponseHeaderBag\all(), Symfony\Component\HttpFoundation\ResponseHeaderBag\allPreserveCase(), Symfony\Component\HttpFoundation\ResponseHeaderBag\allPreserveCaseWithoutCookies(), Symfony\Component\HttpFoundation\HeaderBag\get(), Symfony\Component\HttpFoundation\HeaderBag\replace(), and Symfony\Component\HttpFoundation\ResponseHeaderBag\replace().
|
protected |
Definition at line 22 of file vendor/symfony/http-foundation/HeaderBag.php.
|
protected |
Definition at line 21 of file vendor/symfony/http-foundation/HeaderBag.php.