MediaWiki  REL1_24
EditAction.php
Go to the documentation of this file.
00001 <?php
00033 class EditAction extends FormlessAction {
00034 
00035     public function getName() {
00036         return 'edit';
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         $page = $this->page;
00052         $user = $this->getUser();
00053 
00054         if ( wfRunHooks( 'CustomEditor', array( $page, $user ) ) ) {
00055             $editor = new EditPage( $page );
00056             $editor->edit();
00057         }
00058     }
00059 }