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->getArticle()->delete();
42  }
43 
44  public function doesWrites() {
45  return true;
46  }
47 }
FormlessAction
An action which just does something, without showing a form first.
Definition: FormlessAction.php:30
DeleteAction\onView
onView()
Show something on GET request.
Definition: DeleteAction.php:34
DeleteAction\doesWrites
doesWrites()
Indicates whether this action may perform database writes.
Definition: DeleteAction.php:44
Action\getArticle
getArticle()
Get a Article object.
Definition: Action.php:289
DeleteAction\getName
getName()
Return the name of the action this object responds to.
Definition: DeleteAction.php:30
Action\addHelpLink
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Definition: Action.php:509
DeleteAction
Handle page deletion.
Definition: DeleteAction.php:28
Action\useTransactionalTimeLimit
useTransactionalTimeLimit()
Call wfTransactionalTimeLimit() if this request was POSTed.
Definition: Action.php:538
DeleteAction\show
show()
Stable to override.
Definition: DeleteAction.php:38