MediaWiki
REL1_33
UnprotectAction.php
Go to the documentation of this file.
1
<?php
33
class
UnprotectAction
extends
ProtectAction
{
34
35
public
function
getName
() {
36
return
'unprotect'
;
37
}
38
39
public
function
show
() {
40
$this->page->unprotect();
41
}
42
43
public
function
doesWrites
() {
44
return
true
;
45
}
46
}
ProtectAction
Handle page protection.
Definition
ProtectAction.php:33
UnprotectAction
Handle page unprotection.
Definition
UnprotectAction.php:33
UnprotectAction\doesWrites
doesWrites()
Indicates whether this action may perform database writes.
Definition
UnprotectAction.php:43
UnprotectAction\getName
getName()
Return the name of the action this object responds to.
Definition
UnprotectAction.php:35
UnprotectAction\show
show()
The main action entry point.
Definition
UnprotectAction.php:39
includes
actions
UnprotectAction.php
Generated on Mon Nov 25 2024 15:49:01 for MediaWiki by
1.10.0