MediaWiki
1.23.5
|
Public Member Functions | |
getcookie ( $name) | |
getheader ( $key) | |
getStatusCode () | |
Get the HTTP response code, null if not set. More... | |
header ( $string, $replace=true, $http_response_code=null) | |
Stores a HTTP header. More... | |
setcookie ( $name, $value, $expire=0, $options=null) | |
Private Attributes | |
$code | |
$cookies | |
$headers | |
Definition at line 119 of file WebResponse.php.
FauxResponse::getcookie | ( | $name | ) |
FauxResponse::getheader | ( | $key | ) |
string | $key | The name of the header to get (case insensitive). |
Definition at line 153 of file WebResponse.php.
References headers.
FauxResponse::getStatusCode | ( | ) |
Get the HTTP response code, null if not set.
Definition at line 167 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 |
null | int | $http_response_code | Forces the HTTP response code to the specified value. |
Reimplemented from WebResponse.
Definition at line 130 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 179 of file WebResponse.php.
|
private |
Definition at line 122 of file WebResponse.php.
Referenced by getStatusCode().
|
private |
Definition at line 121 of file WebResponse.php.
|
private |
Definition at line 120 of file WebResponse.php.