MediaWiki REL1_31
DeleteAction.php
Go to the documentation of this file.
1<?php
34
35 public function getName() {
36 return 'delete';
37 }
38
39 public function onView() {
40 return null;
41 }
42
43 public function show() {
45 $this->addHelpLink( 'Help:Sysop deleting and undeleting' );
46 $this->page->delete();
47 }
48
49 public function doesWrites() {
50 return true;
51 }
52}
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Definition Action.php:388
useTransactionalTimeLimit()
Call wfTransactionalTimeLimit() if this request was POSTed.
Definition Action.php:416
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.