PHP Class Amp\Artax\Cookie\ArrayCookieJar

Inheritance: implements Amp\Artax\Cookie\CookieJar
Afficher le fichier Open project: amphp/artax

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
clearExpiredCookies ( )
matchesDomain ( $requestDomain, $cookieDomain )
matchesPath ( $requestPath, $cookiePath )

Method Details

get() public méthode

Retrieve all cookies matching the specified constraints
public get ( string $domain, string $path = '', string $name = null ) : array
$domain string
$path string
$name string
Résultat array Returns an array (possibly empty) of all cookie matches

getAll() public méthode

Retrieve all stored cookies
public getAll ( ) : array
Résultat array Returns array in the format $arr[$domain][$path][$cookieName]

remove() public méthode

Remove a specific cookie from storage
public remove ( Cookie $cookie ) : void
$cookie Cookie
Résultat void

removeAll() public méthode

Remove all stored cookies
public removeAll ( ) : void
Résultat void

store() public méthode

Store a cookie
public store ( Cookie $cookie ) : void
$cookie Cookie
Résultat void