PHP Класс ManaPHP\Http\Cookies

Наследование: extends ManaPHP\Component, implements ManaPHP\Http\CookiesInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_cookies array
$_deletedCookies array

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
_decrypt ( string $value ) : string
_encrypt ( string $value ) : string

Описание методов

_decrypt() защищенный Метод

protected _decrypt ( string $value ) : string
$value string
Результат string

_encrypt() защищенный Метод

protected _encrypt ( string $value ) : string
$value string
Результат string

delete() публичный Метод

Deletes a cookie by its name
public delete ( string $name ) : static
$name string
Результат static

get() публичный Метод

Gets a cookie
public get ( string $name ) : mixed | null
$name string
Результат mixed | null

has() публичный Метод

Check if a cookie is defined in the bag or exists in the $_COOKIE
public has ( string $name ) : boolean
$name string
Результат boolean

send() публичный Метод

Sends the cookies to the client Cookies are not sent if headers are sent in the current request
public send ( ) : void
Результат void

set() публичный Метод

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
Результат static

Описание свойств

$_cookies защищенное свойство

protected array $_cookies
Результат array

$_deletedCookies защищенное свойство

protected array $_deletedCookies
Результат array