ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CookieFactoryImpl.php
Go to the documentation of this file.
1<?php
2
3namespace ILIAS\HTTP\Cookies;
4
6
18{
19
23 public function create($name, $value = null)
24 {
25 return new CookieWrapper(SetCookie::create($name, $value));
26 }
27
28
32 public function createRememberedForLongTime($name, $value = null)
33 {
35 }
36
37
41 public function createExpired($name)
42 {
44 }
45
46
50 public function fromSetCookieString($string)
51 {
52 return new CookieWrapper(SetCookie::fromSetCookieString($string));
53 }
54}
An exception for terminatinating execution or to throw for unit testing.
static create($name, $value=null)
Definition: SetCookie.php:173
static createRememberedForever($name, $value=null)
Definition: SetCookie.php:178
fromSetCookieString($string)
Creates the cookie from the cookie string.Cookie
createRememberedForLongTime($name, $value=null)
Create a new cookie with the given name and value which expires in 5 years.Cookie
create($name, $value=null)
Create a new cookie with the given name and value.Cookie
createExpired($name)
Creates an already expired cookie.This is useful if the cookie should be deleted at the client end....
Class CookieJarWrapperTest.
Definition: Cookie.php:3