|
MediaWiki REL1_39
|


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