Zend Framework
1.12
|
Public Member Functions | |
__construct ($name=null, $value=null, $expires=null, $path=null, $domain=null, $secure=false, $httponly=false, $maxAge=null, $version=null) | |
Cookie object constructor. | |
getFieldName () | |
getFieldValue () | |
setName ($name) | |
getName () | |
setValue ($value) | |
getValue () | |
setVersion ($version) | |
Set version. | |
getVersion () | |
Get version. | |
setMaxAge ($maxAge) | |
Set Max-Age. | |
getMaxAge () | |
Get Max-Age. | |
setExpires ($expires) | |
getExpires ($inSeconds=false) | |
setDomain ($domain) | |
getDomain () | |
setPath ($path) | |
getPath () | |
setSecure ($secure) | |
isSecure () | |
setHttponly ($httponly) | |
isHttponly () | |
isExpired ($now=null) | |
Check whether the cookie has expired. | |
isSessionCookie () | |
Check whether the cookie is a session cookie (has no expiry time set) | |
isValidForRequest ($requestDomain, $path, $isSecure=false) | |
toString () | |
__toString () | |
toStringMultipleHeaders (array $headers) | |
Static Public Member Functions | |
static | fromString ($headerLine, $bypassHeaderFieldName=false) |
Generate a new Cookie object from a cookie string (for example the value of the Set-Cookie HTTP header) | |
Protected Attributes | |
$name = null | |
$value = null | |
$version = null | |
$maxAge = null | |
$expires = null | |
$domain = null | |
$path = null | |
$secure = null | |
$httponly = null | |
__construct | ( | $name = null , |
|
$value = null , |
|||
$expires = null , |
|||
$path = null , |
|||
$domain = null , |
|||
$secure = false , |
|||
$httponly = false , |
|||
$maxAge = null , |
|||
$version = null |
|||
) |
Cookie object constructor.
string | $name | |
string | $value | |
int | $expires | |
string | $path | |
string | $domain | |
bool | $secure | |
bool | $httponly | |
string | $maxAge | |
int | $version |
__toString | ( | ) |
|
static |
Generate a new Cookie object from a cookie string (for example the value of the Set-Cookie HTTP header)
$headerLine | ||
bool | $bypassHeaderFieldName |
getDomain | ( | ) |
getExpires | ( | $inSeconds = false | ) |
getFieldName | ( | ) |
getFieldValue | ( | ) |
Zend_Http_Header_Exception_RuntimeException |
getMaxAge | ( | ) |
Get Max-Age.
getName | ( | ) |
getPath | ( | ) |
getValue | ( | ) |
getVersion | ( | ) |
Get version.
isExpired | ( | $now = null | ) |
Check whether the cookie has expired.
Always returns false if the cookie is a session cookie (has no expiry time)
int | $now | Timestamp to consider as "now" |
isHttponly | ( | ) |
isSecure | ( | ) |
isSessionCookie | ( | ) |
Check whether the cookie is a session cookie (has no expiry time set)
isValidForRequest | ( | $requestDomain, | |
$path, | |||
$isSecure = false |
|||
) |
setDomain | ( | $domain | ) |
string | $domain |
setExpires | ( | $expires | ) |
int | $expires |
setHttponly | ( | $httponly | ) |
bool | $httponly |
setMaxAge | ( | $maxAge | ) |
Set Max-Age.
integer | $maxAge |
setName | ( | $name | ) |
string | $name |
setPath | ( | $path | ) |
string | $path |
setSecure | ( | $secure | ) |
boolean | $secure |
setValue | ( | $value | ) |
string | $value |
setVersion | ( | $version | ) |
Set version.
integer | $version |
toString | ( | ) |
toStringMultipleHeaders | ( | array | $headers | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |