MediaWiki
REL1_22
|
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 |
Definition at line 126 of file WebResponse.php.
FauxResponse::getcookie | ( | $ | name | ) |
FauxResponse::getheader | ( | $ | key | ) |
string | $key | The name of the header to get (case insensitive). |
Definition at line 160 of file WebResponse.php.
Get the HTTP response code, null if not set.
Definition at line 174 of file WebResponse.php.
References code.
FauxResponse::header | ( | $ | string, |
$ | replace = true , |
||
$ | http_response_code = null |
||
) |
Stores a HTTP header.
string | $string | header to output |
bool | $replace | replace current similar header |
$http_response_code | null|int Forces the HTTP response code to the specified value. |
Reimplemented from WebResponse.
Definition at line 137 of file WebResponse.php.
FauxResponse::setcookie | ( | $ | name, |
$ | value, | ||
$ | expire = 0 , |
||
$ | options = null |
||
) |
It just ignore optional parameters.
string | $name | name of cookie |
string | $value | value to give cookie |
int | $expire | number of seconds til cookie expires (Default: 0) |
array | $options | ignored |
Reimplemented from WebResponse.
Definition at line 186 of file WebResponse.php.
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.