MediaWiki  master
DeleteAction.php
Go to the documentation of this file.
1 <?php
29 
30  public function getName() {
31  return 'delete';
32  }
33 
34  public function onView() {
35  return null;
36  }
37 
38  public function show() {
40  $this->addHelpLink( 'Help:Sysop deleting and undeleting' );
41  $this->page->delete();
42  }
43 
44  public function doesWrites() {
45  return true;
46  }
47 }
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Definition: Action.php:395
useTransactionalTimeLimit()
Call wfTransactionalTimeLimit() if this request was POSTed.
Definition: Action.php:422
An action which just does something, without showing a form first.
Handle page deletion.