MediaWiki master
SpecialBlankpage.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Specials;
22
24
33 public function __construct() {
34 parent::__construct( 'Blankpage' );
35 }
36
37 public function execute( $par ) {
38 $this->setHeaders();
39 $this->getOutput()->addWikiMsg( 'intentionallyblankpage' );
40 }
41}
42
44class_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.