MediaWiki  1.23.8
ProtectAction.php
Go to the documentation of this file.
1 <?php
34 
35  public function getName() {
36  return 'protect';
37  }
38 
39  public function onView() {
40  return null;
41  }
42 
43  public function show() {
44 
45  $this->page->protect();
46  }
47 }
48 
57 
58  public function getName() {
59  return 'unprotect';
60  }
61 
62  public function show() {
63 
64  $this->page->unprotect();
65  }
66 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
FormlessAction
An action which just does something, without showing a form first.
Definition: FormlessAction.php:29
UnprotectAction\show
show()
The main action entry point.
Definition: ProtectAction.php:62
ProtectAction\show
show()
The main action entry point.
Definition: ProtectAction.php:43
ProtectAction
Handle page protection.
Definition: ProtectAction.php:33
UnprotectAction
Handle page unprotection.
Definition: ProtectAction.php:56
ProtectAction\onView
onView()
Show something on GET request.
Definition: ProtectAction.php:39
UnprotectAction\getName
getName()
Return the name of the action this object responds to.
Definition: ProtectAction.php:58
ProtectAction\getName
getName()
Return the name of the action this object responds to.
Definition: ProtectAction.php:35
page
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values my talk page
Definition: hooks.txt:1956