ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct (array $setCookies=[]) | |
has ($name) | |
get ($name) | |
getAll () | |
with (SetCookie $setCookie) | |
without ($name) | |
renderIntoSetCookieHeader (ResponseInterface $response) | |
Render SetCookies into a Response. More... | |
Static Public Member Functions | |
static | fromSetCookieStrings ($setCookieStrings) |
Create SetCookies from a collection of SetCookie header value strings. More... | |
static | fromResponse (ResponseInterface $response) |
Create SetCookies from a Response. More... | |
Data Fields | |
const | SET_COOKIE_HEADER = 'Set-Cookie' |
The name of the Set-Cookie header. More... | |
Private Attributes | |
$setCookies = [] | |
Definition at line 7 of file SetCookies.php.
Dflydev\FigCookies\SetCookies::__construct | ( | array | $setCookies = [] | ) |
SetCookie[] | $setCookies |
Definition at line 22 of file SetCookies.php.
References Dflydev\FigCookies\SetCookies\$setCookies.
|
static |
Create SetCookies from a Response.
ResponseInterface | $response |
Definition at line 124 of file SetCookies.php.
References Psr\Http\Message\MessageInterface\getHeader().
Referenced by ILIAS\HTTP\Cookies\CookieJarFactoryImpl\fromResponse(), Dflydev\FigCookies\FigResponseCookies\get(), Dflydev\FigCookies\SetCookiesTest\it_creates_from_response(), Dflydev\FigCookies\SetCookiesTest\it_gets_and_updates_set_cookie_value_on_request(), Dflydev\FigCookies\FigResponseCookies\modify(), Dflydev\FigCookies\FigResponseCookies\remove(), and Dflydev\FigCookies\FigResponseCookies\set().
|
static |
Create SetCookies from a collection of SetCookie header value strings.
string[] | $setCookieStrings |
Definition at line 111 of file SetCookies.php.
Referenced by ILIAS\HTTP\Cookies\CookieJarFactoryImpl\fromCookieStrings(), Dflydev\FigCookies\SetCookiesTest\it_creates_from_set_cookie_strings(), Dflydev\FigCookies\SetCookiesTest\it_gets_set_cookie_by_name(), Dflydev\FigCookies\SetCookiesTest\it_knows_which_set_cookies_are_available(), and Dflydev\FigCookies\SetCookiesTest\it_renders_added_and_removed_set_cookies_header().
Dflydev\FigCookies\SetCookies::get | ( | $name | ) |
string | $name |
Definition at line 42 of file SetCookies.php.
References $name, and Dflydev\FigCookies\SetCookies\has().
Dflydev\FigCookies\SetCookies::getAll | ( | ) |
Definition at line 54 of file SetCookies.php.
Dflydev\FigCookies\SetCookies::has | ( | $name | ) |
string | $name |
Definition at line 33 of file SetCookies.php.
References $name.
Referenced by Dflydev\FigCookies\SetCookies\get().
Dflydev\FigCookies\SetCookies::renderIntoSetCookieHeader | ( | ResponseInterface | $response | ) |
Render SetCookies into a Response.
ResponseInterface | $response |
Definition at line 95 of file SetCookies.php.
References $response, Psr\Http\Message\MessageInterface\withAddedHeader(), and Psr\Http\Message\MessageInterface\withoutHeader().
Dflydev\FigCookies\SetCookies::with | ( | SetCookie | $setCookie | ) |
SetCookie | $setCookie |
Definition at line 63 of file SetCookies.php.
References Dflydev\FigCookies\SetCookie\getName().
Dflydev\FigCookies\SetCookies::without | ( | $name | ) |
string | $name |
Definition at line 76 of file SetCookies.php.
References $name.
|
private |
Definition at line 17 of file SetCookies.php.
Referenced by Dflydev\FigCookies\SetCookies\__construct().
const Dflydev\FigCookies\SetCookies::SET_COOKIE_HEADER = 'Set-Cookie' |
The name of the Set-Cookie header.
Definition at line 12 of file SetCookies.php.
Referenced by Dflydev\FigCookies\SetCookiesTest\it_creates_from_response(), Dflydev\FigCookies\FigCookiesTest\it_encrypts_and_decrypts_cookies(), Dflydev\FigCookies\SetCookiesTest\it_gets_and_updates_set_cookie_value_on_request(), Dflydev\FigCookies\FigResponseCookiesTest\it_gets_cookies(), Dflydev\FigCookies\FigResponseCookiesTest\it_modifies_cookies(), Dflydev\FigCookies\FigResponseCookiesTest\it_removes_cookies(), Dflydev\FigCookies\SetCookiesTest\it_renders_added_and_removed_set_cookies_header(), and Dflydev\FigCookies\FigResponseCookiesTest\it_sets_cookies().