37 parent::__construct(
'PermanentLink' );
38 $this->mAllowedRedirectParams = [];
46 $subpage = intval( $subpage );
47 if ( $subpage === 0 ) {
50 $this->mAddedRedirectParams[
'oldid'] = $subpage;
62 private function showForm() {
63 HTMLForm::factory(
'ooui', [
67 'label-message' =>
'permanentlink-revid',
70 ->setSubmitTextMsg(
'permanentlink-submit' )
71 ->setSubmitCallback( [ $this,
'onFormSubmit' ] )
76 $revid = $formData[
'revid'];
78 $url = $title->getFullUrlForRedirect();
95class_alias( SpecialPermanentLink::class,
'SpecialPermanentLink' );
Shortcut to construct a special page alias.
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
getPageTitle( $subpage=false)
Get a self-referential title object.
getContext()
Gets the context this SpecialPage is executed in.
getOutput()
Get the OutputPage being used for this instance.
outputHeader( $summaryMessageKey='')
Outputs a summary message on top of special pages Per default the message key is the canonical name o...
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.