PHP Класс Amp\Artax\Cookie\ArrayCookieJar

Наследование: implements Amp\Artax\Cookie\CookieJar
Показать файл Открыть проект

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

Метод Описание
get ( string $domain, string $path = '', string $name = null ) : array Retrieve all cookies matching the specified constraints
getAll ( ) : array Retrieve all stored cookies
remove ( Cookie $cookie ) : void Remove a specific cookie from storage
removeAll ( ) : void Remove all stored cookies
store ( Cookie $cookie ) : void Store a cookie

Приватные методы

Метод Описание
clearExpiredCookies ( )
matchesDomain ( $requestDomain, $cookieDomain )
matchesPath ( $requestPath, $cookiePath )

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

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

Retrieve all cookies matching the specified constraints
public get ( string $domain, string $path = '', string $name = null ) : array
$domain string
$path string
$name string
Результат array Returns an array (possibly empty) of all cookie matches

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

Retrieve all stored cookies
public getAll ( ) : array
Результат array Returns array in the format $arr[$domain][$path][$cookieName]

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

Remove a specific cookie from storage
public remove ( Cookie $cookie ) : void
$cookie Cookie
Результат void

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

Remove all stored cookies
public removeAll ( ) : void
Результат void

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

Store a cookie
public store ( Cookie $cookie ) : void
$cookie Cookie
Результат void