MediaWiki  REL1_19
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 174 of file Cookie.php.


Member Function Documentation

CookieJar::parseCookieResponseHeader ( cookie,
domain 
)

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

Parameters:
$cookieString
$domainString: cookie's domain

Definition at line 217 of file Cookie.php.

References $cookie, setCookie(), and Cookie\validateCookieDomain().

Here is the call graph for this function:

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

Definition at line 197 of file Cookie.php.

References $path, and $serialized.

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 181 of file Cookie.php.

Referenced by parseCookieResponseHeader(), and MWHttpRequest\setCookie().

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 175 of file Cookie.php.

Referenced by parseCookieResponseHeader().


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