34 parent::__construct(
'PermanentLink' );
35 $this->mAllowedRedirectParams = [];
43 $subpage = intval( $subpage );
44 if ( $subpage === 0 ) {
47 $this->mAddedRedirectParams[
'oldid'] = $subpage;
59 private function showForm() {
60 HTMLForm::factory(
'ooui', [
64 'label-message' =>
'permanentlink-revid',
67 ->setSubmitTextMsg(
'permanentlink-submit' )
68 ->setSubmitCallback( [ $this,
'onFormSubmit' ] )
73 $revid = $formData[
'revid'];
75 $url = $title->getFullUrlForRedirect();
92class_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 By default the message key is the canonical name of...
addHelpLink( $to, $overrideBaseUrl=false)
Adds help link with an icon via page indicators.