MediaWiki master
UnprotectAction.php
Go to the documentation of this file.
1<?php
8namespace MediaWiki\Actions;
9
18
20 public function getName() {
21 return 'unprotect';
22 }
23
24 public function show() {
25 $this->getArticle()->unprotect();
26 }
27
29 public function doesWrites() {
30 return true;
31 }
32}
33
35class_alias( UnprotectAction::class, 'UnprotectAction' );
getArticle()
Get a Article object.
Definition Action.php:181
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.1.17string Lowercase name