MediaWiki master
|
Inherits MediaWiki\Request\WebResponse.
Public Member Functions | |
getCookie ( $name) | |
getCookieData ( $name) | |
getCookies () | |
getHeader ( $key) | |
getStatusCode () | |
Get the HTTP response code, null if not set. | |
hasCookies () | |
Checks whether this request is performing cookie operations.
| |
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=[]) | |
setCookieConfig (Config $cookieConfig) | |
statusHeader ( $code) | |
Public Member Functions inherited from MediaWiki\Request\WebResponse | |
clearCookie ( $name, $options=[]) | |
Unset a browser cookie. | |
disableForPostSend () | |
Disable setters for post-send processing. | |
Additional Inherited Members | |
Protected Attributes inherited from MediaWiki\Request\WebResponse | |
bool | $disableForPostSend = false |
Used to disable setters before running jobs post-request (T191537) | |
Static Protected Attributes inherited from MediaWiki\Request\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 33 of file FauxResponse.php.
MediaWiki\Request\FauxResponse::getCookie | ( | $name | ) |
MediaWiki\Request\FauxResponse::getCookieData | ( | $name | ) |
MediaWiki\Request\FauxResponse::getCookies | ( | ) |
Definition at line 189 of file FauxResponse.php.
MediaWiki\Request\FauxResponse::getHeader | ( | $key | ) |
string | $key | The name of the header to get (case insensitive). |
Reimplemented from MediaWiki\Request\WebResponse.
Definition at line 89 of file FauxResponse.php.
MediaWiki\Request\FauxResponse::getStatusCode | ( | ) |
Get the HTTP response code, null if not set.
Reimplemented from MediaWiki\Request\WebResponse.
Definition at line 100 of file FauxResponse.php.
MediaWiki\Request\FauxResponse::hasCookies | ( | ) |
Checks whether this request is performing cookie operations.
Reimplemented from MediaWiki\Request\WebResponse.
Definition at line 196 of file FauxResponse.php.
MediaWiki\Request\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 MediaWiki\Request\WebResponse.
Definition at line 50 of file FauxResponse.php.
References MediaWiki\Request\WebResponse\disableForPostSend().
MediaWiki\Request\FauxResponse::headersSent | ( | ) |
Test if headers have been sent.
Reimplemented from MediaWiki\Request\WebResponse.
Definition at line 81 of file FauxResponse.php.
MediaWiki\Request\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 MediaWiki\Request\WebResponse.
Definition at line 127 of file FauxResponse.php.
References MediaWiki\Config\Config\get().
MediaWiki\Request\FauxResponse::setCookieConfig | ( | Config | $cookieConfig | ) |
Config | $cookieConfig |
Definition at line 117 of file FauxResponse.php.
MediaWiki\Request\FauxResponse::statusHeader | ( | $code | ) |
int | $code | Status code |
Reimplemented from MediaWiki\Request\WebResponse.
Definition at line 77 of file FauxResponse.php.