ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
CookieFactory.php
Go to the documentation of this file.
1 <?php
2 
3 namespace ILIAS\HTTP\Cookies;
4 
15 interface CookieFactory
16 {
17 
26  public function create(string $name, string $value = null) : Cookie;
27 
28 
37  public function createRememberedForLongTime(string $name, string $value = null) : Cookie;
38 
39 
48  public function createExpired(string $name) : Cookie;
49 
50 
58  public function fromSetCookieString(string $string) : Cookie;
59 }
fromSetCookieString(string $string)
Creates the cookie from the cookie string.
createExpired(string $name)
Creates an already expired cookie.
Class CookieJarWrapperTest.
Definition: Cookie.php:3
create(string $name, string $value=null)
Create a new cookie with the given name and value.
if($format !==null) $name
Definition: metadata.php:230
createRememberedForLongTime(string $name, string $value=null)
Create a new cookie with the given name and value which expires in 5 years.