MediaWiki fundraising/REL1_35
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}
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.
Definition Action.php:519
getArticle()
Get a Article object.
Definition Action.php:289
useTransactionalTimeLimit()
Call wfTransactionalTimeLimit() if this request was POSTed.
Definition Action.php:546
Handle page deletion.
onView()
Show something on GET request.
getName()
Return the name of the action this object responds to.
show()
Stable to override.
doesWrites()
Indicates whether this action may perform database writes.
An action which just does something, without showing a form first.