PHP Интерфейс ManaPHP\Http\CookiesInterface

Показать файл Открыть проект

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

Метод Описание
delete ( string $name ) : boolean Deletes a cookie by its name This method does not removes cookies from the $_COOKIE
get ( string $name ) : mixed Gets a cookie from the bag
has ( string $name ) : boolean Check if a cookie is defined in the bag or exists in the $_COOKIE
send ( ) Sends the cookies to the client
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

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

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

Deletes a cookie by its name This method does not removes cookies from the $_COOKIE
public delete ( string $name ) : boolean
$name string
Результат boolean

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

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

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
public send ( )

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