ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Cookie helper. More...
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... | |
Static Public Member Functions | |
static | parseHeader ($header) |
Parse HTTP request Cookie: header and extract into a PHP associative array. More... | |
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 = [] | ) |
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.
References $name.
|
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().
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.
Slim\Http\Cookies::setDefaults | ( | array | $settings | ) |
|
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().
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().
|
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.