ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct (array $cookies=[]) | |
has ($name) | |
get ($name) | |
getAll () | |
with (Cookie $cookie) | |
without ($name) | |
renderIntoCookieHeader (RequestInterface $request) | |
Render Cookies into a Request. More... | |
Static Public Member Functions | |
static | fromCookieString ($string) |
Create Cookies from a Cookie header value string. More... | |
static | fromRequest (RequestInterface $request) |
Create Cookies from a Request. More... | |
Data Fields | |
const | COOKIE_HEADER = 'Cookie' |
The name of the Cookie header. More... | |
Private Attributes | |
$cookies = [] | |
Definition at line 7 of file Cookies.php.
Dflydev\FigCookies\Cookies::__construct | ( | array | $cookies = [] | ) |
Cookie[] | $cookies |
Definition at line 22 of file Cookies.php.
References Dflydev\FigCookies\Cookies\$cookies.
|
static |
Create Cookies from a Cookie header value string.
$string |
Definition at line 110 of file Cookies.php.
References Dflydev\FigCookies\Cookie\listFromCookieString().
Referenced by Dflydev\FigCookies\CookiesTest\it_creates_from_cookie_string(), Dflydev\FigCookies\CookiesTest\it_gets_cookie_by_name(), Dflydev\FigCookies\CookiesTest\it_knows_which_cookies_are_available(), and Dflydev\FigCookies\CookiesTest\it_renders_added_and_removed_cookies_header().
|
static |
Create Cookies from a Request.
RequestInterface | $request |
Definition at line 121 of file Cookies.php.
References Psr\Http\Message\MessageInterface\getHeaderLine().
Referenced by Dflydev\FigCookies\FigRequestCookies\get(), Dflydev\FigCookies\CookiesTest\it_creates_from_request(), Dflydev\FigCookies\CookiesTest\it_gets_and_updates_cookie_value_on_request(), Dflydev\FigCookies\CookiesTest\it_gets_cookie_value_from_request(), Dflydev\FigCookies\FigRequestCookies\modify(), Dflydev\FigCookies\FigRequestCookies\remove(), and Dflydev\FigCookies\FigRequestCookies\set().
Dflydev\FigCookies\Cookies::get | ( | $name | ) |
$name |
Definition at line 42 of file Cookies.php.
References $name, and Dflydev\FigCookies\Cookies\has().
Dflydev\FigCookies\Cookies::getAll | ( | ) |
Definition at line 54 of file Cookies.php.
Dflydev\FigCookies\Cookies::has | ( | $name | ) |
$name |
Definition at line 33 of file Cookies.php.
References $name.
Referenced by Dflydev\FigCookies\Cookies\get().
Dflydev\FigCookies\Cookies::renderIntoCookieHeader | ( | RequestInterface | $request | ) |
Render Cookies into a Request.
RequestInterface | $request |
Definition at line 95 of file Cookies.php.
References Psr\Http\Message\MessageInterface\withHeader().
Dflydev\FigCookies\Cookies::with | ( | Cookie | $cookie | ) |
Cookie | $cookie |
Definition at line 63 of file Cookies.php.
References Dflydev\FigCookies\Cookie\getName().
Dflydev\FigCookies\Cookies::without | ( | $name | ) |
|
private |
Definition at line 17 of file Cookies.php.
Referenced by Dflydev\FigCookies\Cookies\__construct().
const Dflydev\FigCookies\Cookies::COOKIE_HEADER = 'Cookie' |
The name of the Cookie header.
Definition at line 12 of file Cookies.php.
Referenced by Dflydev\FigCookies\CookiesTest\it_creates_from_request(), Dflydev\FigCookies\FigCookiesTest\it_encrypts_and_decrypts_cookies(), Dflydev\FigCookies\CookiesTest\it_gets_and_updates_cookie_value_on_request(), Dflydev\FigCookies\CookiesTest\it_gets_cookie_value_from_request(), Dflydev\FigCookies\FigRequestCookiesTest\it_gets_cookies(), Dflydev\FigCookies\FigRequestCookiesTest\it_modifies_cookies(), Dflydev\FigCookies\FigRequestCookiesTest\it_removes_cookies(), Dflydev\FigCookies\CookiesTest\it_renders_added_and_removed_cookies_header(), Dflydev\FigCookies\CookiesTest\it_renders_new_cookies_into_empty_cookie_header(), and Dflydev\FigCookies\FigRequestCookiesTest\it_sets_cookies().