MediaWiki  REL1_24
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         if ( $this->getContext()->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) {
00045             $out = $this->getOutput();
00046             $out->addModuleStyles( array(
00047                 'mediawiki.ui.input',
00048                 'mediawiki.ui.checkbox',
00049             ) );
00050         }
00051 
00052         $this->page->protect();
00053     }
00054 }
00055