ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ILIAS\HTTP\Cookies\CookieFactory Interface Reference
+ Inheritance diagram for ILIAS\HTTP\Cookies\CookieFactory:
+ Collaboration diagram for ILIAS\HTTP\Cookies\CookieFactory:

Public Member Functions

 create ($name, $value=null)
 Create a new cookie with the given name and value. More...
 
 createRememberedForLongTime ($name, $value=null)
 Create a new cookie with the given name and value which expires in 5 years. More...
 
 createExpired ($name)
 Creates an already expired cookie. More...
 
 fromSetCookieString ($string)
 Creates the cookie from the cookie string. More...
 

Detailed Description

Definition at line 15 of file CookieFactory.php.

Member Function Documentation

◆ create()

ILIAS\HTTP\Cookies\CookieFactory::create (   $name,
  $value = null 
)

Create a new cookie with the given name and value.

Parameters
string$nameThe unique cookie name.
null | string$valueCookie value.
Returns
Cookie

Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.

◆ createExpired()

ILIAS\HTTP\Cookies\CookieFactory::createExpired (   $name)

Creates an already expired cookie.

This is useful if the cookie should be deleted at the client end.

Parameters
string$nameCookie name.
Returns
Cookie

Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.

◆ createRememberedForLongTime()

ILIAS\HTTP\Cookies\CookieFactory::createRememberedForLongTime (   $name,
  $value = null 
)

Create a new cookie with the given name and value which expires in 5 years.

Parameters
string$nameThe unique cookie name.
null | string$valueCookie value.
Returns
Cookie

Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.

◆ fromSetCookieString()

ILIAS\HTTP\Cookies\CookieFactory::fromSetCookieString (   $string)

Creates the cookie from the cookie string.

Parameters
string$stringCookie string.
Returns
Cookie

Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.


The documentation for this interface was generated from the following file: