MediaWiki master
UnprotectAction.php
Go to the documentation of this file.
1<?php
29
30 public function getName() {
31 return 'unprotect';
32 }
33
34 public function show() {
35 $this->getArticle()->unprotect();
36 }
37
38 public function doesWrites() {
39 return true;
40 }
41}
getArticle()
Get a Article object.
Definition Action.php:202
Handle page protection (action=protect)
Handle page unprotection (action=unprotect)
doesWrites()
Indicates whether POST requests handled by this action require write access to the wiki.
getName()
Return the name of the action this object responds to.