MediaWiki  1.34.0
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 }
FormlessAction
An action which just does something, without showing a form first.
Definition: FormlessAction.php:28
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
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:395
DeleteAction
Handle page deletion.
Definition: DeleteAction.php:28
Action\useTransactionalTimeLimit
useTransactionalTimeLimit()
Call wfTransactionalTimeLimit() if this request was POSTed.
Definition: Action.php:422
DeleteAction\show
show()
The main action entry point.
Definition: DeleteAction.php:38