[ Index ]

PHP Cross Reference of phpBB-3.2.8-deutsch

title

Body

[close]

/vendor/guzzlehttp/guzzle/src/Cookie/ -> SetCookie.php (summary)

(no description)

File Size: 373 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SetCookie:: (26 methods):
  fromString()
  __construct()
  __toString()
  toArray()
  getName()
  setName()
  getValue()
  setValue()
  getDomain()
  setDomain()
  getPath()
  setPath()
  getMaxAge()
  setMaxAge()
  getExpires()
  setExpires()
  getSecure()
  setSecure()
  getDiscard()
  setDiscard()
  getHttpOnly()
  setHttpOnly()
  matchesPath()
  matchesDomain()
  isExpired()
  validate()


Class: SetCookie  - X-Ref

Set-Cookie object

fromString($cookie)   X-Ref
Create a new SetCookie object from a string

param: string $cookie Set-Cookie header string
return: self

__construct(array $data = [])   X-Ref

param: array $data Array of cookie data provided by a Cookie parser

__toString()   X-Ref
No description

toArray()   X-Ref
No description

getName()   X-Ref
Get the cookie name

return: string

setName($name)   X-Ref
Set the cookie name

param: string $name Cookie name

getValue()   X-Ref
Get the cookie value

return: string

setValue($value)   X-Ref
Set the cookie value

param: string $value Cookie value

getDomain()   X-Ref
Get the domain

return: string|null

setDomain($domain)   X-Ref
Set the domain of the cookie

param: string $domain

getPath()   X-Ref
Get the path

return: string

setPath($path)   X-Ref
Set the path of the cookie

param: string $path Path of the cookie

getMaxAge()   X-Ref
Maximum lifetime of the cookie in seconds

return: int|null

setMaxAge($maxAge)   X-Ref
Set the max-age of the cookie

param: int $maxAge Max age of the cookie in seconds

getExpires()   X-Ref
The UNIX timestamp when the cookie Expires

return: mixed

setExpires($timestamp)   X-Ref
Set the unix timestamp for which the cookie will expire

param: int $timestamp Unix timestamp

getSecure()   X-Ref
Get whether or not this is a secure cookie

return: null|bool

setSecure($secure)   X-Ref
Set whether or not the cookie is secure

param: bool $secure Set to true or false if secure

getDiscard()   X-Ref
Get whether or not this is a session cookie

return: null|bool

setDiscard($discard)   X-Ref
Set whether or not this is a session cookie

param: bool $discard Set to true or false if this is a session cookie

getHttpOnly()   X-Ref
Get whether or not this is an HTTP only cookie

return: bool

setHttpOnly($httpOnly)   X-Ref
Set whether or not this is an HTTP only cookie

param: bool $httpOnly Set to true or false if this is HTTP only

matchesPath($path)   X-Ref
Check if the cookie matches a path value

param: string $path Path to check against
return: bool

matchesDomain($domain)   X-Ref
Check if the cookie matches a domain value

param: string $domain Domain to check against
return: bool

isExpired()   X-Ref
Check if the cookie is expired

return: bool

validate()   X-Ref
Check if the cookie is valid according to RFC 6265

return: bool|string Returns true if valid or an error message if invalid



Generated: Tue Apr 7 19:42:26 2020 Cross-referenced by PHPXref 0.7.1