|
MediaWiki
REL1_19
|


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 | |
Definition at line 85 of file WebResponse.php.
| FauxResponse::getcookie | ( | $ | name | ) |
| FauxResponse::getheader | ( | $ | key | ) |
Get the HTTP response code, null if not set.
Definition at line 129 of file WebResponse.php.
| FauxResponse::header | ( | $ | string, |
| $ | replace = true, |
||
| $ | http_response_code = null |
||
| ) |
Stores a HTTP header.
| $string | String: header to output |
| $replace | Bool: replace current similar header |
| $http_response_code | null|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 |
||
| ) |
It just ignore optional parameters.
| $name | String: name of cookie |
| $value | String: value to give cookie |
| $expire | Int: number of seconds til cookie expires (Default: 0) |
| $prefix | TODO DOCUMENT (Default: null) |
| $domain | TODO DOCUMENT (Default: null) |
Reimplemented from WebResponse.
Definition at line 143 of file WebResponse.php.
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.