MediaWiki  REL1_21
ProtectAction.php
Go to the documentation of this file.
00001 <?php
00033 class ProtectAction extends FormlessAction {
00034 
00035         public function getName() {
00036                 return 'protect';
00037         }
00038 
00039         public function onView() {
00040                 return null;
00041         }
00042 
00043         public function show() {
00044 
00045                 $this->page->protect();
00046 
00047         }
00048 
00049 }
00050 
00058 class UnprotectAction extends ProtectAction {
00059 
00060         public function getName() {
00061                 return 'unprotect';
00062         }
00063 
00064         public function show() {
00065 
00066                 $this->page->unprotect();
00067 
00068         }
00069 
00070 }