|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($name, $value, $domain, $expires=null, $path=null, $secure=false) | |
| getName () | |
| getValue () | |
| getDomain () | |
| getPath () | |
| getExpiryTime () | |
| isSecure () | |
| isExpired ($now=null) | |
| isSessionCookie () | |
| match ($uri, $matchSessionCookies=true, $now=null) | |
| __toString () | |
Static Public Member Functions | |
| static | fromString ($cookieStr, $refUri=null, $encodeValue=true) |
| static | matchCookieDomain ($cookieDomain, $host) |
| static | matchCookiePath ($cookiePath, $path) |
Protected Attributes | |
| $name | |
| $value | |
| $expires | |
| $domain | |
| $path | |
| $secure | |
| $encodeValue | |
Definition at line 47 of file Cookie.php.
| __construct | ( | $ | name, |
| $ | value, | ||
| $ | domain, | ||
| $ | expires = null, |
||
| $ | path = null, |
||
| $ | secure = false |
||
| ) |
Cookie object constructor
| string | $name | |
| string | $value | |
| string | $domain | |
| int | $expires | |
| string | $path | |
| bool | $secure |
Definition at line 110 of file Cookie.php.
| __toString | ( | ) |
Get the cookie as a string, suitable for sending as a "Cookie" header in an HTTP request
Definition at line 266 of file Cookie.php.
| static fromString | ( | $ | cookieStr, |
| $ | refUri = null, |
||
| $ | encodeValue = true |
||
| ) | [static] |
Generate a new Cookie object from a cookie string (for example the value of the Set-Cookie HTTP header)
| string | $cookieStr | |
| Zend_Uri_Http | string | $refUri | Reference URI for default values (domain, path) |
| boolean | $encodeValue | Weither or not the cookie's value should be passed through urlencode/urldecode |
The expiration is past Tue, 19 Jan 2038 03:14:07 UTC the maximum for 32-bit signed integer. Zend_Date can get around that limit.
Definition at line 284 of file Cookie.php.


| getDomain | ( | ) |
Get cookie domain
Definition at line 158 of file Cookie.php.

| getExpiryTime | ( | ) |
Get the expiry time of the cookie, or null if no expiry time is set
Definition at line 178 of file Cookie.php.
| getName | ( | ) |
| getPath | ( | ) |
Get the cookie path
Definition at line 168 of file Cookie.php.

| getValue | ( | ) |
| 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" |
Definition at line 201 of file Cookie.php.

| isSecure | ( | ) |
Check whether the cookie should only be sent over secure connections
Definition at line 188 of file Cookie.php.
| isSessionCookie | ( | ) |
Check whether the cookie is a session cookie (has no expiry time set)
Definition at line 216 of file Cookie.php.

Checks whether the cookie should be sent or not in a specific scenario
| string | Zend_Uri_Http | $uri | URI to check against (secure, domain, path) |
| boolean | $matchSessionCookies | Whether to send session cookies |
| int | $now | Override the current time when checking for expiry time |
Definition at line 229 of file Cookie.php.

| static matchCookieDomain | ( | $ | cookieDomain, |
| $ | host | ||
| ) | [static] |
Check if a cookie's domain matches a host name.
Used by Zend_Http_Cookie and Zend_Http_CookieJar for cookie matching
| string | $cookieDomain | |
| string | $host |
Definition at line 377 of file Cookie.php.

| static matchCookiePath | ( | $ | cookiePath, |
| $ | path | ||
| ) | [static] |
Check if a cookie's path matches a URL path
Used by Zend_Http_Cookie and Zend_Http_CookieJar for cookie matching
| string | $cookiePath | |
| string | $path |
Definition at line 410 of file Cookie.php.

$domain [protected] |
Definition at line 75 of file Cookie.php.
$encodeValue [protected] |
Definition at line 96 of file Cookie.php.
$expires [protected] |
Definition at line 68 of file Cookie.php.
$name [protected] |
Definition at line 54 of file Cookie.php.
$path [protected] |
Definition at line 82 of file Cookie.php.
$secure [protected] |
Definition at line 89 of file Cookie.php.
$value [protected] |
Definition at line 61 of file Cookie.php.