MediaWiki  1.34.0
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->page->unprotect();
36  }
37 
38  public function doesWrites() {
39  return true;
40  }
41 }
UnprotectAction\show
show()
The main action entry point.
Definition: UnprotectAction.php:34
ProtectAction
Handle page protection (action=protect)
Definition: ProtectAction.php:28
UnprotectAction\doesWrites
doesWrites()
Indicates whether this action may perform database writes.
Definition: UnprotectAction.php:38
UnprotectAction
Handle page unprotection (action=unprotect)
Definition: UnprotectAction.php:28
UnprotectAction\getName
getName()
Return the name of the action this object responds to.
Definition: UnprotectAction.php:30