[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
File Size: | 93 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
HttpError:: (4 methods):
__construct()
getStatusCode()
report()
getHTML()
__construct( $httpCode, $content, $header = null ) X-Ref |
Constructor param: int $httpCode HTTP status code to send to the client param: string|Message $content Content of the message param: string|Message $header Content of the header (\<title\> and \<h1\>) |
getStatusCode() X-Ref |
Returns the HTTP status code supplied to the constructor. return: int |
report() X-Ref |
Report the HTTP error. Sends the appropriate HTTP status code and outputs an HTML page with an error message. |
getHTML() X-Ref |
Returns HTML for reporting the HTTP error. This will be a minimal but complete HTML document. return: string HTML |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |