MediaWiki  REL1_22
CookieJar Class Reference

List of all members.

Public Member Functions

 parseCookieResponseHeader ($cookie, $domain)
 Parse the content of an Set-Cookie HTTP Response header.
 serializeToHttpRequest ($path, $domain)
 setCookie ($name, $value, $attr)
 Set a cookie in the cookie jar.

Private Attributes

 $cookie = array()

Detailed Description

Definition at line 194 of file Cookie.php.


Member Function Documentation

CookieJar::parseCookieResponseHeader ( cookie,
domain 
)

Parse the content of an Set-Cookie HTTP Response header.

Parameters:
$cookieString
string$domaincookie's domain
Returns:
null

Definition at line 239 of file Cookie.php.

References $cookie, $name, $value, array(), as, list, setCookie(), and Cookie\validateCookieDomain().

CookieJar::serializeToHttpRequest ( path,
domain 
)
See also:
Cookie::serializeToHttpRequest
Returns:
string

Definition at line 218 of file Cookie.php.

References $cookies, $path, $serialized, array(), and as.

CookieJar::setCookie ( name,
value,
attr 
)

Set a cookie in the cookie jar.

Make sure only one cookie per-name exists.

See also:
Cookie::set()

Definition at line 201 of file Cookie.php.

References $name, and $value.

Referenced by parseCookieResponseHeader().


Member Data Documentation

CookieJar::$cookie = array() [private]

Definition at line 195 of file Cookie.php.

Referenced by parseCookieResponseHeader().


The documentation for this class was generated from the following file: