MediaWiki
1.33.1
|
Public Member Functions | |
getCookie ( $name) | |
getCookieData ( $name) | |
getCookies () | |
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... | |
headersSent () | |
Test if headers have been sent. More... | |
setCookie ( $name, $value, $expire=0, $options=[]) | |
statusHeader ( $code) | |
Public Member Functions inherited from WebResponse | |
clearCookie ( $name, $options=[]) | |
Unset a browser cookie. More... | |
hasCookies () | |
Checks whether this request is performing cookie operations. More... | |
Private Attributes | |
$code | |
$cookies = [] | |
$headers | |
Additional Inherited Members | |
Static Public Member Functions inherited from WebResponse | |
static | disableForPostSend () |
Disable setters for post-send processing. More... | |
Static Protected Attributes inherited from WebResponse | |
static bool | $disableForPostSend = false |
Used to disable setters before running jobs post-request (T191537) More... | |
static array | $setCookies = [] |
Used to record set cookies, because PHP's setcookie() will happily send an identical Set-Cookie to the client. More... | |
Definition at line 26 of file FauxResponse.php.
FauxResponse::getCookie | ( | $name | ) |
string | $name |
Definition at line 129 of file FauxResponse.php.
References $name.
FauxResponse::getCookieData | ( | $name | ) |
string | $name |
Definition at line 140 of file FauxResponse.php.
References $name.
FauxResponse::getCookies | ( | ) |
FauxResponse::getHeader | ( | $key | ) |
string | $key | The name of the header to get (case insensitive). |
Reimplemented from WebResponse.
Definition at line 72 of file FauxResponse.php.
FauxResponse::getStatusCode | ( | ) |
Get the HTTP response code, null if not set.
Definition at line 83 of file FauxResponse.php.
References $code.
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 37 of file FauxResponse.php.
FauxResponse::headersSent | ( | ) |
Test if headers have been sent.
Reimplemented from WebResponse.
Definition at line 64 of file FauxResponse.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 93 of file FauxResponse.php.
References $name, $options, $value, $wgCookieDomain, $wgCookieExpiration, $wgCookieHttpOnly, $wgCookiePath, $wgCookiePrefix, $wgCookieSecure, and string.
FauxResponse::statusHeader | ( | $code | ) |
int | $code | Status code |
Reimplemented from WebResponse.
Definition at line 60 of file FauxResponse.php.
|
private |
Definition at line 29 of file FauxResponse.php.
Referenced by getStatusCode(), and statusHeader().
|
private |
Definition at line 28 of file FauxResponse.php.
Referenced by getCookies().
|
private |
Definition at line 27 of file FauxResponse.php.