MediaWiki master
SpecialBlankpage.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Specials;
8
10
19 public function __construct() {
20 parent::__construct( 'Blankpage' );
21 }
22
24 public function execute( $par ) {
25 $this->setHeaders();
26 $this->getOutput()->addWikiMsg( 'intentionallyblankpage' );
27 }
28}
29
31class_alias( SpecialBlankpage::class, 'SpecialBlankpage' );
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getOutput()
Get the OutputPage being used for this instance.
Shortcut to construct a special page which is unlisted by default.
Blank page designed for basic benchmarking of MediaWiki.
execute( $par)
Default execute method Checks user permissions.This must be overridden by subclasses; it will be made...