PHP Class ManaPHP\Http\Cookies

Inheritance: extends ManaPHP\Component, implements ManaPHP\Http\CookiesInterface
Afficher le fichier Open project: manaphp/manaphp

Protected Properties

Свойство Type Description
$_cookies array
$_deletedCookies array

Méthodes publiques

Méthode Description
delete ( string $name ) : static Deletes a cookie by its name
get ( string $name ) : mixed | null Gets a cookie
has ( string $name ) : boolean Check if a cookie is defined in the bag or exists in the $_COOKIE
send ( ) : void Sends the cookies to the client Cookies are not sent if headers are sent in the current request
set ( string $name, mixed $value, integer $expire, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = true ) : static Sets a cookie to be sent at the end of the request

Méthodes protégées

Méthode Description
_decrypt ( string $value ) : string
_encrypt ( string $value ) : string

Method Details

_decrypt() protected méthode

protected _decrypt ( string $value ) : string
$value string
Résultat string

_encrypt() protected méthode

protected _encrypt ( string $value ) : string
$value string
Résultat string

delete() public méthode

Deletes a cookie by its name
public delete ( string $name ) : static
$name string
Résultat static

get() public méthode

Gets a cookie
public get ( string $name ) : mixed | null
$name string
Résultat mixed | null

has() public méthode

Check if a cookie is defined in the bag or exists in the $_COOKIE
public has ( string $name ) : boolean
$name string
Résultat boolean

send() public méthode

Sends the cookies to the client Cookies are not sent if headers are sent in the current request
public send ( ) : void
Résultat void

set() public méthode

Sets a cookie to be sent at the end of the request
public set ( string $name, mixed $value, integer $expire, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = true ) : static
$name string
$value mixed
$expire integer
$path string
$domain string
$secure boolean
$httpOnly boolean
Résultat static

Property Details

$_cookies protected_oe property

protected array $_cookies
Résultat array

$_deletedCookies protected_oe property

protected array $_deletedCookies
Résultat array