MediaWiki REL1_30
|
Public Member Functions | |
getCookie ( $name) | |
getCookieData ( $name) | |
getCookies () | |
getHeader ( $key) | |
getStatusCode () | |
Get the HTTP response code, null if not set. | |
header ( $string, $replace=true, $http_response_code=null) | |
Stores a HTTP header. | |
headersSent () | |
Test if headers have been sent. | |
setCookie ( $name, $value, $expire=0, $options=[]) | |
statusHeader ( $code) | |
Public Member Functions inherited from WebResponse | |
clearCookie ( $name, $options=[]) | |
Unset a browser cookie. | |
hasCookies () | |
Checks whether this request is performing cookie operations. | |
Private Attributes | |
$code | |
$cookies = [] | |
$headers | |
Additional Inherited Members | |
Static Protected Attributes inherited from WebResponse | |
static array | $setCookies = [] |
Used to record set cookies, because PHP's setcookie() will happily send an identical Set-Cookie to the client. | |
Definition at line 188 of file WebResponse.php.
FauxResponse::getCookie | ( | $name | ) |
FauxResponse::getCookieData | ( | $name | ) |
FauxResponse::getCookies | ( | ) |
FauxResponse::getHeader | ( | $key | ) |
string | $key | The name of the header to get (case insensitive). |
Reimplemented from WebResponse.
Definition at line 234 of file WebResponse.php.
References headers.
FauxResponse::getStatusCode | ( | ) |
Get the HTTP response code, null if not set.
Definition at line 248 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 199 of file WebResponse.php.
FauxResponse::headersSent | ( | ) |
Test if headers have been sent.
Reimplemented from WebResponse.
Definition at line 226 of file WebResponse.php.
FauxResponse::setCookie | ( | $name, | |
$value, | |||
$expire = 0, | |||
$options = [] ) |
string | $name | The name of the cookie. |
string | $value | The value to be stored in the cookie. |
int | null | $expire | Ignored in this faux subclass. |
array | $options | Ignored in this faux subclass. |
Reimplemented from WebResponse.
Definition at line 258 of file WebResponse.php.
References $name, $options, $value, $wgCookieDomain, $wgCookieExpiration, $wgCookieHttpOnly, $wgCookiePath, $wgCookiePrefix, $wgCookieSecure, cookies, and string.
FauxResponse::statusHeader | ( | $code | ) |
int | $code | Status code |
Reimplemented from WebResponse.
Definition at line 222 of file WebResponse.php.
References $code.
|
private |
Definition at line 191 of file WebResponse.php.
Referenced by getStatusCode(), and statusHeader().
|
private |
Definition at line 190 of file WebResponse.php.
Referenced by getCookies().
|
private |
Definition at line 189 of file WebResponse.php.