19 private $userOptionsLookup;
22 parent::__construct(
'EditRecovery' );
23 $this->userOptionsLookup = $userOptionsLookup;
34 parent::execute( $subPage );
39 if ( !$this->userOptionsLookup->getOption( $this->getUser(),
'editrecovery' ) ) {
40 if ( !$this->
getUser()->isNamed() ) {
42 $this->
getOutput()->showErrorPage(
'editrecovery',
'edit-recovery-special-user-unnamed' );
45 $this->
getOutput()->showErrorPage(
'editrecovery',
'edit-recovery-special-user-not-enabled' );
50 $this->
getOutput()->addModuleStyles(
'mediawiki.special.editrecovery.styles' );
51 $this->
getOutput()->addModules(
'mediawiki.special.editrecovery' );
54 [
'class' =>
'error mw-EditRecovery-special-nojs-notice' ],
55 $this->
msg(
'edit-recovery-nojs-placeholder' )
57 $placeholder = Html::rawElement(
'div', [
'class' =>
'mw-EditRecovery-special' ], $noJs );
58 $this->
getOutput()->addHTML( $placeholder );
Parent class for all special pages.
getUser()
Shortcut to get the User executing this instance.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.
getOutput()
Get the OutputPage being used for this instance.
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.