MediaWiki
REL1_23
|
Show an error that looks like an HTTP server error. More...
Public Member Functions | |
__construct ($httpCode, $content, $header=null) | |
Constructor. | |
getHTML () | |
Returns HTML for reporting the HTTP error. | |
getStatusCode () | |
Returns the HTTP status code supplied to the constructor. | |
report () | |
Report the HTTP error. | |
Public Attributes | |
$content | |
$header | |
Private Attributes | |
$httpCode |
Show an error that looks like an HTTP server error.
Replacement for wfHttpError().
Definition at line 28 of file HttpError.php.
HttpError::__construct | ( | $ | httpCode, |
$ | content, | ||
$ | header = null |
||
) |
Returns HTML for reporting the HTTP error.
This will be a minimal but complete HTML document.
Reimplemented from MWException.
Definition at line 74 of file HttpError.php.
References $content, $header, content, and HttpStatus\getMessage().
Referenced by report().
Returns the HTTP status code supplied to the constructor.
Definition at line 50 of file HttpError.php.
Report the HTTP error.
Sends the appropriate HTTP status code and outputs an HTML page with an error message.
Reimplemented from MWException.
Definition at line 59 of file HttpError.php.
References getHTML(), HttpStatus\getMessage(), and print.
HttpError::$content |
Definition at line 29 of file HttpError.php.
Referenced by __construct(), and getHTML().
HttpError::$header |
Definition at line 29 of file HttpError.php.
Referenced by __construct(), and getHTML().
HttpError::$httpCode [private] |
Definition at line 29 of file HttpError.php.
Referenced by __construct().