MediaWiki  REL1_23
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 
00056 class UnprotectAction extends ProtectAction {
00057 
00058     public function getName() {
00059         return 'unprotect';
00060     }
00061 
00062     public function show() {
00063 
00064         $this->page->unprotect();
00065     }
00066 }