MediaWiki REL1_34
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
Handle page deletion.
onView()
Show something on GET request.
getName()
Return the name of the action this object responds to.
show()
The main action entry point.
doesWrites()
Indicates whether this action may perform database writes.
An action which just does something, without showing a form first.