MediaWiki  REL1_19
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, $prefix=null, $domain=null)

Private Attributes

 $code
 $cookies
 $headers

Detailed Description

Definition at line 85 of file WebResponse.php.


Member Function Documentation

Parameters:
$namestring
Returns:
string

Definition at line 151 of file WebResponse.php.

Parameters:
$keystring
Returns:
string

Definition at line 117 of file WebResponse.php.

Get the HTTP response code, null if not set.

Returns:
Int or null

Definition at line 129 of file WebResponse.php.

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

Stores a HTTP header.

Parameters:
$stringString: header to output
$replaceBool: replace current similar header
$http_response_codenull|int Forces the HTTP response code to the specified value.

Reimplemented from WebResponse.

Definition at line 96 of file WebResponse.php.

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

It just ignore optional parameters.

Parameters:
$nameString: name of cookie
$valueString: value to give cookie
$expireInt: number of seconds til cookie expires (Default: 0)
$prefixTODO DOCUMENT (Default: null)
$domainTODO DOCUMENT (Default: null)

Reimplemented from WebResponse.

Definition at line 143 of file WebResponse.php.


Member Data Documentation

FauxResponse::$code [private]

Definition at line 88 of file WebResponse.php.

FauxResponse::$cookies [private]

Definition at line 87 of file WebResponse.php.

FauxResponse::$headers [private]

Definition at line 86 of file WebResponse.php.


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