MediaWiki  REL1_22
FauxResponse Class Reference
Inheritance diagram for FauxResponse:
Collaboration diagram for FauxResponse:

List of all members.

Public Member Functions

 getcookie ($name)
 getheader ($key)
 getStatusCode ()
 Get the HTTP response code, null if not set.
 header ($string, $replace=true, $http_response_code=null)
 Stores a HTTP header.
 setcookie ($name, $value, $expire=0, $options=null)

Private Attributes

 $code
 $cookies
 $headers

Detailed Description

Definition at line 126 of file WebResponse.php.


Member Function Documentation

Parameters:
$namestring
Returns:
string

Definition at line 194 of file WebResponse.php.

References $name, and cookies.

Parameters:
string$keyThe name of the header to get (case insensitive).
Returns:
string

Definition at line 160 of file WebResponse.php.

References $key, and headers.

Get the HTTP response code, null if not set.

Returns:
Int or null

Definition at line 174 of file WebResponse.php.

References code.

FauxResponse::header ( string,
replace = true,
http_response_code = null 
)

Stores a HTTP header.

Parameters:
string$stringheader to output
bool$replacereplace current similar header
$http_response_codenull|int Forces the HTTP response code to the specified value.

Reimplemented from WebResponse.

Definition at line 137 of file WebResponse.php.

References $key, code, headers, and list.

FauxResponse::setcookie ( name,
value,
expire = 0,
options = null 
)
Todo:
document.

It just ignore optional parameters.

Parameters:
string$namename of cookie
string$valuevalue to give cookie
int$expirenumber of seconds til cookie expires (Default: 0)
array$optionsignored

Reimplemented from WebResponse.

Definition at line 186 of file WebResponse.php.

References $name, $value, and cookies.


Member Data Documentation

FauxResponse::$code [private]

Definition at line 129 of file WebResponse.php.

FauxResponse::$cookies [private]

Definition at line 128 of file WebResponse.php.

FauxResponse::$headers [private]

Definition at line 127 of file WebResponse.php.


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