|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Cookie helper. More...
Inheritance diagram for Slim\Http\Cookies:
Collaboration diagram for Slim\Http\Cookies:Public Member Functions | |
| __construct (array $cookies=[]) | |
| Create new cookies helper. More... | |
| setDefaults (array $settings) | |
| Set default cookie properties. More... | |
| get ($name, $default=null) | |
| Get request cookie. More... | |
| set ($name, $value) | |
| Set response cookie. More... | |
| toHeaders () | |
Convert to Set-Cookie headers. More... | |
| get ($name, $default=null) | |
| set ($name, $value) | |
| toHeaders () | |
Static Public Member Functions | |
| static | parseHeader ($header) |
Parse HTTP request Cookie: header and extract into a PHP associative array. More... | |
| static | parseHeader ($header) |
Protected Member Functions | |
| toHeader ($name, array $properties) | |
Convert to Set-Cookie header. More... | |
Protected Attributes | |
| $requestCookies = [] | |
| $responseCookies = [] | |
| $defaults | |
Cookie helper.
Definition at line 17 of file Cookies.php.
| Slim\Http\Cookies::__construct | ( | array | $cookies = [] | ) |
Create new cookies helper.
| array | $cookies |
Definition at line 54 of file Cookies.php.
| Slim\Http\Cookies::get | ( | $name, | |
$default = null |
|||
| ) |
Get request cookie.
| string | $name | Cookie name |
| mixed | $default | Cookie default value |
Implements Slim\Interfaces\Http\CookiesInterface.
Definition at line 77 of file Cookies.php.
|
static |
Parse HTTP request Cookie: header and extract into a PHP associative array.
| string | $header | The raw HTTP request Cookie: header |
| InvalidArgumentException | if the cookie data cannot be parsed |
Implements Slim\Interfaces\Http\CookiesInterface.
Definition at line 172 of file Cookies.php.
Referenced by Slim\Http\Request\createFromEnvironment().
Here is the caller graph for this function:| Slim\Http\Cookies::set | ( | $name, | |
| $value | |||
| ) |
Set response cookie.
| string | $name | Cookie name |
| string | array | $value | Cookie value, or cookie properties |
Implements Slim\Interfaces\Http\CookiesInterface.
Definition at line 88 of file Cookies.php.
References $name.
| Slim\Http\Cookies::setDefaults | ( | array | $settings | ) |
Set default cookie properties.
| array | $settings |
Definition at line 64 of file Cookies.php.
|
protected |
Convert to Set-Cookie header.
| string | $name | Cookie name |
| array | $properties | Cookie properties |
Definition at line 119 of file Cookies.php.
References $name, $result, and $timestamp.
Referenced by Slim\Http\Cookies\toHeaders().
Here is the caller graph for this function:| Slim\Http\Cookies::toHeaders | ( | ) |
Convert to Set-Cookie headers.
Implements Slim\Interfaces\Http\CookiesInterface.
Definition at line 101 of file Cookies.php.
References $name, and Slim\Http\Cookies\toHeader().
Here is the call graph for this function:
|
protected |
Definition at line 38 of file Cookies.php.
|
protected |
Definition at line 24 of file Cookies.php.
|
protected |
Definition at line 31 of file Cookies.php.