41 private $requestHandler =
null;
44 parent::__construct(
'PageData' );
58 $this->requestHandler = $requestHandler;
66 if ( $this->requestHandler ===
null ) {
67 $this->requestHandler = $this->newDefaultRequestHandler();
76 private function newDefaultRequestHandler() {
92 if ( !$this->requestHandler->canHandleRequest( $subPage, $this->getRequest() ) ) {
104 $this->
getOutput()->showErrorPage(
'pagedata-title',
'pagedata-text' );
118class_alias( SpecialPageData::class,
'SpecialPageData' );
Show an error that looks like an HTTP server error.
Request handler implementing a data interface for mediawiki pages.
Parent class for all special pages.
getRequest()
Get the WebRequest being used for this instance.
getOutput()
Get the OutputPage being used for this instance.
Special page to act as an endpoint for accessing raw page data.
initDependencies()
Initialize any un-initialized members from global context.
setRequestHandler(PageDataRequestHandler $requestHandler)
Sets the request handler to be used by the special page.
showForm()
Shows an informative page to the user; Called when there is no page to output.
isListed()
Whether this special page is listed in Special:SpecialPages.