MediaWiki  1.34.0
SpecialPage Class Reference

Parent class for all special pages. More...

Inheritance diagram for SpecialPage:
Collaboration diagram for SpecialPage:

Public Member Functions

 __construct ( $name='', $restriction='', $listed=true, $function=false, $file='', $includable=false)
 Default constructor for special pages Derivative classes should call this from their constructor Note that if the user does not have the required level, an error message will be displayed by the default execute() method, without the global function ever being called. More...
 
 addHelpLink ( $to, $overrideBaseUrl=false)
 Adds help link with an icon via page indicators. More...
 
 checkPermissions ()
 Checks if userCanExecute, and if not throws a PermissionsError. More...
 
 checkReadOnly ()
 If the wiki is currently in readonly mode, throws a ReadOnlyError. More...
 
 displayRestrictionError ()
 Output an error message telling the user what access level they have to have. More...
 
 doesWrites ()
 Indicates whether this special page may perform database writes. More...
 
 execute ( $subPage)
 Default execute method Checks user permissions. More...
 
 getConfig ()
 Shortcut to get main config object. More...
 
 getContext ()
 Gets the context this SpecialPage is executed in. More...
 
 getDescription ()
 Returns the name that goes in the \<h1\> in the special page itself, and also the name that will be listed in Special:Specialpages. More...
 
 getFinalGroupName ()
 Get the group that the special page belongs in on Special:SpecialPage Use this method, instead of getGroupName to allow customization of the group name from the wiki side. More...
 
 getFullTitle ()
 Return the full title, including $par. More...
 
 getLanguage ()
 Shortcut to get user's language. More...
 
 getLinkRenderer ()
 
 getLocalName ()
 Get the localised name of the special page. More...
 
 getName ()
 Get the name of this Special Page. More...
 
 getOutput ()
 Get the OutputPage being used for this instance. More...
 
 getPageTitle ( $subpage=false)
 Get a self-referential title object. More...
 
 getRequest ()
 Get the WebRequest being used for this instance. More...
 
 getRestriction ()
 Get the permission that a user must have to execute this page. More...
 
 getSkin ()
 Shortcut to get the skin being used for this instance. More...
 
 getUser ()
 Shortcut to get the User executing this instance. More...
 
 including ( $x=null)
 Whether the special page is being evaluated via transclusion. More...
 
 isCached ()
 Is this page cached? Expensive pages are cached or disabled in miser mode. More...
 
 isExpensive ()
 Is this page expensive (for some definition of expensive)? Expensive pages are disabled or cached in miser mode. More...
 
 isIncludable ()
 Whether it's allowed to transclude the special page via {{Special:Foo/params}}. More...
 
 isListed ()
 Whether this special page is listed in Special:SpecialPages. More...
 
 isRestricted ()
 Can be overridden by subclasses with more complicated permissions schemes. More...
 
 listed ( $x=null)
 Get or set whether this special page is listed in Special:SpecialPages. More...
 
 maxIncludeCacheTime ()
 How long to cache page when it is being included. More...
 
 msg ( $key,... $params)
 Wrapper around wfMessage that sets the current context. More...
 
 outputHeader ( $summaryMessageKey='')
 Outputs a summary message on top of special pages Per default the message key is the canonical name of the special page May be overridden, i.e. More...
 
 prefixSearchSubpages ( $search, $limit, $offset)
 Return an array of subpages beginning with $search that this special page will accept. More...
 
 requireLogin ( $reasonMsg='exception-nologin-text', $titleMsg='exception-nologin')
 If the user is not logged in, throws UserNotLoggedIn error. More...
 
 run ( $subPage)
 Entry point. More...
 
 setContext ( $context)
 Sets the context this SpecialPage is executed in. More...
 
 setHeaders ()
 Sets headers - this should be called from the execute() method of all derived classes! More...
 
 setLinkRenderer (LinkRenderer $linkRenderer)
 
 setListed ( $listed)
 Set whether this page is listed in Special:Specialpages, at run-time. More...
 
 userCanExecute (User $user)
 Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction). More...
 

Static Public Member Functions

static getSafeTitleFor ( $name, $subpage=false)
 Get a localised Title object for a page name with a possibly unvalidated subpage. More...
 
static getTitleFor ( $name, $subpage=false, $fragment='')
 Get a localised Title object for a specified special page name If you don't need a full Title object, consider using TitleValue through getTitleValueFor() below. More...
 
static getTitleValueFor ( $name, $subpage=false, $fragment='')
 Get a localised TitleValue object for a specified special page name. More...
 

Protected Member Functions

 addFeedLinks ( $params)
 Adds RSS/atom links. More...
 
 afterExecute ( $subPage)
 Gets called after. More...
 
 beforeExecute ( $subPage)
 Gets called before. More...
 
 buildPrevNextNavigation ( $offset, $limit, array $query=[], $atend=false, $subpage=false)
 Generate (prev x| next x) (20|50|100...) type links for paging. More...
 
 checkLoginSecurityLevel ( $level=null)
 Verifies that the user meets the security level, possibly reauthenticating them in the process. More...
 
 getCacheTTL ()
 
 getGroupName ()
 Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. More...
 
 getLoginSecurityLevel ()
 Tells if the special page does something security-sensitive and needs extra defense against a stolen account (e.g. More...
 
 getRobotPolicy ()
 Return the robot policy. More...
 
 getSubpagesForPrefixSearch ()
 Return an array of subpages that this special page will accept for prefix searches. More...
 
 prefixSearchString ( $search, $limit, $offset)
 Perform a regular substring search for prefixSearchSubpages. More...
 
 setReauthPostData (array $data)
 Record preserved POST data after a reauthentication. More...
 
 useTransactionalTimeLimit ()
 Call wfTransactionalTimeLimit() if this request was POSTed. More...
 

Static Protected Member Functions

static prefixSearchArray ( $search, $limit, array $subpages, $offset)
 Helper function for implementations of prefixSearchSubpages() that filter the values in memory (as opposed to making a query). More...
 

Protected Attributes

IContextSource $mContext
 Current request context. More...
 
 $mIncludable
 
 $mIncluding
 
 $mName
 
 $mRestriction
 

Private Attributes

MediaWiki Linker LinkRenderer null $linkRenderer
 
 $mListed
 
 $mLocalName
 

Detailed Description

Parent class for all special pages.

Includes some static functions for handling the special page list deprecated in favor of SpecialPageFactory.

Definition at line 37 of file SpecialPage.php.

Constructor & Destructor Documentation

◆ __construct()

SpecialPage::__construct (   $name = '',
  $restriction = '',
  $listed = true,
  $function = false,
  $file = '',
  $includable = false 
)

Default constructor for special pages Derivative classes should call this from their constructor Note that if the user does not have the required level, an error message will be displayed by the default execute() method, without the global function ever being called.

If you override execute(), you can recover the default behavior with userCanExecute() and displayRestrictionError()

Parameters
string$nameName of the special page, as seen in links and URLs
string$restrictionUser right required, e.g. "block" or "delete"
bool$listedWhether the page is listed in Special:Specialpages
callable | bool$functionUnused
string$fileUnused
bool$includableWhether the page can be included in normal pages

Definition at line 139 of file SpecialPage.php.

Member Function Documentation

◆ addFeedLinks()

SpecialPage::addFeedLinks (   $params)
protected

Adds RSS/atom links.

Parameters
array$params

Definition at line 810 of file SpecialPage.php.

References getConfig(), getOutput(), wfAppendQuery(), and wfScript().

Referenced by SpecialContributions\execute(), SpecialRecentChanges\outputFeedLinks(), and SpecialWatchlist\outputFeedLinks().

◆ addHelpLink()

SpecialPage::addHelpLink (   $to,
  $overrideBaseUrl = false 
)

Adds help link with an icon via page indicators.

Link target can be overridden by a local message containing a wikilink: the message key is: lowercase special page name + '-helppage'.

Parameters
string$toTarget MediaWiki.org page title or encoded URL.
bool$overrideBaseUrlWhether $url is a full URL, to avoid MW.o.
Since
1.25

Definition at line 828 of file SpecialPage.php.

References getName(), getOutput(), including(), Skin\makeUrl(), and msg().

Referenced by SpecialUncategorizedImages\__construct(), SpecialUncategorizedPages\__construct(), SpecialChangeContentModel\alterForm(), SpecialBlock\alterForm(), SpecialNuke\execute(), SpecialCiteThisPage\execute(), SpecialRenameuser\execute(), SpecialListFiles\execute(), SpecialApiSandbox\execute(), SpecialNewFiles\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialSpecialpages\execute(), SpecialCategories\execute(), SpecialLog\execute(), SpecialContributions\execute(), SpecialTrackingCategories\execute(), SpecialAllMessages\execute(), SpecialPreferences\execute(), SpecialAutoblockList\execute(), SpecialExport\execute(), SpecialPasswordPolicies\execute(), SpecialListGroupRights\execute(), SpecialGadgetUsage\execute(), SpecialDeletedContributions\execute(), SpecialUnblock\execute(), SpecialBlockList\execute(), SpecialWhatLinksHere\execute(), SpecialComparePages\execute(), SpecialTags\execute(), SpecialExpandTemplates\execute(), SpecialLinkSearch\execute(), SpecialWatchlist\execute(), CategoryTreePage\execute(), SpecialBotPasswords\execute(), UserrightsPage\execute(), SpecialUnwatchedPages\execute(), SpecialListDuplicatedFiles\execute(), SpecialNewpages\execute(), SpecialRecentChanges\execute(), SpecialListRedirects\execute(), SpecialUpload\execute(), SpecialMIMESearch\execute(), SpecialUndelete\execute(), SpecialBrokenRedirects\execute(), SpecialDoubleRedirects\execute(), SpecialRecentChangesLinked\getExtraOptions(), SpecialRandomInCategory\getFormFields(), SpecialSearch\setupPage(), SpecialGadgets\showExportForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialGadgets\showMainForm(), SpecialMergeHistory\showMergeForm(), SpecialNewSection\showNoRedirectPage(), SpecialPermanentLink\showNoRedirectPage(), and SpecialDiff\showNoRedirectPage().

◆ afterExecute()

SpecialPage::afterExecute (   $subPage)
protected

Gets called after.

See also
SpecialPage::execute.
Since
1.20
Parameters
string | null$subPage

Reimplemented in SpecialCachedPage.

Definition at line 609 of file SpecialPage.php.

Referenced by run().

◆ beforeExecute()

SpecialPage::beforeExecute (   $subPage)
protected

Gets called before.

See also
SpecialPage::execute. Return false to prevent calling execute() (since 1.27+).
Since
1.20
Parameters
string | null$subPage
Returns
bool|void

Reimplemented in LoginSignupSpecialPage, AuthManagerSpecialPage, and SpecialUserLogin.

Definition at line 598 of file SpecialPage.php.

Referenced by run().

◆ buildPrevNextNavigation()

SpecialPage::buildPrevNextNavigation (   $offset,
  $limit,
array  $query = [],
  $atend = false,
  $subpage = false 
)
protected

Generate (prev x| next x) (20|50|100...) type links for paging.

Parameters
int$offset
int$limit
array$queryOptional URL query parameter string
bool$atendOptional param for specified if this is the last page
string | bool$subpageOptional param for specifying subpage
Returns
string

Definition at line 930 of file SpecialPage.php.

References $title, and getPageTitle().

Referenced by QueryPage\execute(), and SpecialSearch\showResults().

◆ checkLoginSecurityLevel()

SpecialPage::checkLoginSecurityLevel (   $level = null)
protected

Verifies that the user meets the security level, possibly reauthenticating them in the process.

This should be used when the page does something security-sensitive and needs extra defense against a stolen account (e.g. a reauthentication). The authentication framework will make an extra effort to make sure the user account is not compromised. What that exactly means will depend on the system and user settings; e.g. the user might be required to log in again unless their last login happened recently, or they might be given a second-factor challenge.

Calling this method will result in one if these actions:

  • return true: all good.
  • return false and set a redirect: caller should abort; the redirect will take the user to the login page for reauthentication, and back.
  • throw an exception if there is no way for the user to meet the requirements without using a different access method (e.g. this functionality is only available from a specific IP).

Note that this does not in any way check that the user is authorized to use this special page (use checkPermissions() for that).

Parameters
string | null$levelA security level. Can be an arbitrary string, defaults to the page name.
Returns
bool False means a redirect to the reauthentication page has been set and processing of the special page should be aborted.
Exceptions
ErrorPageErrorIf the security level cannot be met, even with reauthentication.

Definition at line 406 of file SpecialPage.php.

References $title, MWCryptRand\generateHex(), getFullTitle(), getName(), getOutput(), getRequest(), getTitleFor(), PROTO_HTTPS, setReauthPostData(), wfArrayToCgi(), and wfMessage().

Referenced by MediaWiki\Extension\OATHAuth\Special\OATHManage\checkPermissions(), FormSpecialPage\execute(), and execute().

◆ checkPermissions()

◆ checkReadOnly()

◆ displayRestrictionError()

SpecialPage::displayRestrictionError ( )

Output an error message telling the user what access level they have to have.

Exceptions
PermissionsError

Definition at line 304 of file SpecialPage.php.

Referenced by MediaWiki\Extension\OATHAuth\Special\OATHManage\checkPermissions(), checkPermissions(), and QueryPage\execute().

◆ doesWrites()

◆ execute()

SpecialPage::execute (   $subPage)

Default execute method Checks user permissions.

This must be overridden by subclasses; it will be made abstract in a future version

Parameters
string | null$subPage

Reimplemented in ChangesListSpecialPage, LoginSignupSpecialPage, SpecialRecentChanges, MediaWiki\Extension\OATHAuth\Special\OATHManage, SpecialPageData, SpecialUploadStash, DisabledSpecialPage, SpecialWatchlist, SpecialExpandTemplates, SpecialChangeCredentials, RedirectSpecialPage, SpecialLinkAccounts, SpecialUnlinkAccounts, SpecialReplaceText, SpecialRunJobs, QueryPage, SpecialDoubleRedirects, FormSpecialPage, SpecialBrokenRedirects, SpecialUndelete, SpecialMIMESearch, SpecialUpload, SpecialListRedirects, SpecialRevisionDelete, SpecialNewpages, SpecialSearch, SpecialMergeHistory, SpecialEmailUser, SpecialFileDuplicateSearch, SpecialListDuplicatedFiles, SpecialUnwatchedPages, UserrightsPage, SpecialPasswordReset, SpecialEditTags, MovePageForm, SpecialBotPasswords, SpecialImport, SpecialPagesWithProp, SpecialResetTokens, SpecialMute, CategoryTreePage, SpecialLinkSearch, RandomPage, SpecialAllPages, SpecialChangeEmail, SpecialVersion, SpecialUserLogout, SpecialTags, SpecialPrefixindex, SpecialComparePages, SpecialBlockList, SpecialWhatLinksHere, SpecialUnblock, SpecialGadgetUsage, SpecialDeletedContributions, SpecialInterwiki, SpecialListGroupRights, SpecialPasswordPolicies, SpecialAutoblockList, SpecialExport, SpecialGoToInterwiki, SpecialAllMessages, SpecialListUsers, SpecialPreferences, SpecialStatistics, SpecialContributions, SpecialListGrants, SpecialTrackingCategories, WantedPagesPage, SpecialWithoutInterwiki, SpecialActiveUsers, SpecialCategories, SpecialLog, SpecialNewFiles, SpecialProtectedpages, SpecialProtectedtitles, SpecialSpecialpages, SpecialApiHelp, SpecialApiSandbox, SpecialBlankpage, SpecialJavaScriptTest, SpecialListFiles, SpecialRenameuser, SpecialCiteThisPage, SpecialGadgets, SpecialNuke, SpecialCaptcha, SpecialEditWatchlist, SpecialBookSources, SpecialConfirmEmail, and SpecialEmailInvalidate.

Definition at line 621 of file SpecialPage.php.

References checkLoginSecurityLevel(), checkPermissions(), getLoginSecurityLevel(), outputHeader(), and setHeaders().

Referenced by run().

◆ getCacheTTL()

SpecialPage::getCacheTTL ( )
protected
Returns
int Seconds that this page can be cached

Reimplemented in SpecialRecentChanges, and SpecialNewpages.

Definition at line 221 of file SpecialPage.php.

Referenced by maxIncludeCacheTime().

◆ getConfig()

SpecialPage::getConfig ( )

Shortcut to get main config object.

Returns
Config
Since
1.24

Definition at line 758 of file SpecialPage.php.

References getContext().

Referenced by SpecialGadgetUsage\__construct(), SpecialWatchlist\__construct(), addFeedLinks(), SpecialPasswordReset\alterForm(), SpecialNewFiles\buildForm(), SpecialUnlockdb\checkExecutePermissions(), SpecialLockdb\checkExecutePermissions(), SpecialBotPasswords\checkExecutePermissions(), SpecialImport\doImport(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialLog\execute(), SpecialTrackingCategories\execute(), SpecialListGrants\execute(), SpecialContributions\execute(), SpecialRunJobs\execute(), SpecialAllMessages\execute(), SpecialExport\execute(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), SpecialDeletedContributions\execute(), SpecialBlockList\execute(), SpecialWhatLinksHere\execute(), SpecialExpandTemplates\execute(), SpecialAllPages\execute(), SpecialVersion\execute(), SpecialLinkSearch\execute(), SpecialWatchlist\execute(), SpecialImport\execute(), SpecialEmailUser\execute(), SpecialSearch\execute(), QueryPage\execute(), ChangesListSpecialPage\execute(), SpecialNewpages\feed(), SpecialNewpages\feedTitle(), UserrightsPage\fetchUser(), QueryPage\getDBLimit(), SpecialVersion\getEntryPointInfo(), SpecialVersion\getExtensionCategory(), SpecialVersion\getExtensionCredits(), SpecialRecentChanges\getFeedQuery(), SpecialPageLanguage\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialBlock\getFormFields(), SpecialStatistics\getGroupStats(), SpecialActiveUsers\getIntroText(), SpecialProtectedtitles\getLevelMenu(), SpecialProtectedpages\getLevelMenu(), QueryPage\getLimitOffset(), ChangesListSpecialPage\getLinkDays(), SpecialImport\getMappingFormPart(), QueryPage\getMaxResults(), SpecialUnusedImages\getPageHeader(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), SpecialStatistics\getPageStats(), SpecialCiteThisPage\getParser(), SpecialShortPages\getQueryInfo(), SpecialUnusedImages\getQueryInfo(), WantedPagesPage\getQueryInfo(), SpecialLinkSearch\getQueryInfo(), SpecialRemoveCredentials\getRequestBlacklist(), SpecialLinkAccounts\getRequestBlacklist(), SpecialUnlinkAccounts\getRequestBlacklist(), SpecialChangeCredentials\getRequestBlacklist(), SpecialResetTokens\getTokensList(), SpecialStatistics\getUserStats(), SpecialSearch\goResult(), ChangesListSpecialPage\includeRcFiltersApp(), QueryPage\isCached(), QueryPage\isExpensive(), SpecialBotPasswords\isListed(), SpecialLinkSearch\linkParameters(), maxIncludeCacheTime(), SpecialBlock\maybeAlterFormDefaults(), SpecialUnlockdb\onSubmit(), SpecialLockdb\onSubmit(), SpecialRecentChanges\optionsPanel(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialAllPages\outputHTMLForm(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialGadgetUsage\outputResults(), SpecialUploadStash\outputThumbFromStash(), SpecialBlock\preText(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), ChangesListSpecialPage\registerFilters(), SpecialBotPasswords\save(), setHeaders(), SpecialWatchlist\setTopText(), MovePageForm\showForm(), SpecialImport\showForm(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialWhatLinksHere\showIndirectLinks(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialUndelete\undelete(), SpecialExport\validateLinkDepth(), and ChangesListSpecialPage\validateOptions().

◆ getContext()

SpecialPage::getContext ( )

Gets the context this SpecialPage is executed in.

Returns
IContextSource|RequestContext
Since
1.18

Definition at line 692 of file SpecialPage.php.

References $mContext, RequestContext\getMain(), and wfDebug().

Referenced by MergeHistoryPager\__construct(), SpecialLog\addHeader(), SpecialActiveUsers\buildForm(), SpecialBookSources\buildForm(), SpecialUndelete\diffHeader(), SpecialImport\doImport(), SpecialTags\doTagRow(), SpecialListFiles\execute(), SpecialApiHelp\execute(), SpecialCategories\execute(), SpecialNewFiles\execute(), SpecialActiveUsers\execute(), SpecialContributions\execute(), SpecialPreferences\execute(), SpecialStatistics\execute(), SpecialAllMessages\execute(), SpecialListUsers\execute(), SpecialAutoblockList\execute(), SpecialExport\execute(), SpecialDeletedContributions\execute(), SpecialUnblock\execute(), SpecialBlockList\execute(), SpecialComparePages\execute(), SpecialExpandTemplates\execute(), SpecialLinkSearch\execute(), SpecialPagesWithProp\execute(), SpecialFileDuplicateSearch\execute(), SpecialEmailUser\execute(), CategoryTreePage\executeInputForm(), SpecialNewpages\form(), SpecialListGroupRights\formatPermissions(), PageQueryPage\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialFewestRevisions\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialMostLinkedTemplates\formatResult(), SpecialMostLinked\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialShortPages\formatResult(), SpecialProtectedtitles\formatRow(), SpecialExpandTemplates\generateHtml(), AuthManagerSpecialPage\getAuthForm(), LoginSignupSpecialPage\getAuthForm(), SpecialEmailUser\getBlockedEmailError(), SpecialEditWatchlist\getClearForm(), getConfig(), SpecialUpload\getDupeWarning(), SpecialRecentChanges\getExtraOptions(), FormSpecialPage\getForm(), SpecialContributions\getForm(), getFullTitle(), getLanguage(), SpecialEditTags\getList(), SpecialRevisionDelete\getList(), SpecialEditWatchlist\getNormalForm(), getOutput(), SpecialWithoutInterwiki\getPageHeader(), SpecialMIMESearch\getPageHeader(), SpecialEditWatchlist\getRawForm(), AuthManagerSpecialPage\getRequest(), getRequest(), getSkin(), SpecialUpload\getUploadForm(), getUser(), SpecialExpandTemplates\makeForm(), ChangesListSpecialPage\makeLegend(), ChangesListStringOptionsFilterGroup\modifyQuery(), ChangesListBooleanFilter\modifyQuery(), msg(), SpecialPrefixindex\namespacePrefixForm(), CategoryTreeHooks\onSpecialTrackingCategoriesGenerateCatLink(), SpecialPageLanguage\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialAllPages\outputHTMLForm(), ImageQueryPage\outputResults(), SpecialTags\processCreateTagForm(), SpecialNuke\promptForm(), SpecialEmailUser\sendEmailForm(), AuthManagerSpecialPage\setRequest(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), SpecialLog\show(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialTags\showDeleteTagForm(), SpecialUndelete\showDiff(), UserrightsPage\showEditUserGroupsForm(), SpecialGadgets\showExportForm(), SpecialNewSection\showForm(), SpecialPermanentLink\showForm(), SpecialDiff\showForm(), SpecialInterwiki\showForm(), SpecialUndelete\showList(), SpecialProtectedpages\showOptions(), SpecialProtectedtitles\showOptions(), SpecialConfirmEmail\showRequestForm(), SpecialPreferences\showResetForm(), LoginSignupSpecialPage\showReturnToPage(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialUploadStash\showUploads(), SpecialPreferences\submitReset(), SpecialUserLogin\successfulAction(), and SpecialEmailUser\userForm().

◆ getDescription()

SpecialPage::getDescription ( )

Returns the name that goes in the \<h1\> in the special page itself, and also the name that will be listed in Special:Specialpages.

Derived classes can override this, but usually it is easier to keep the default behavior.

Returns
string

Reimplemented in SpecialEditTags, SpecialMute, SpecialDiff, SpecialCreateAccount, SpecialUserLogin, SpecialEmailUser, and SpecialInterwiki.

Definition at line 661 of file SpecialPage.php.

References msg().

Referenced by SpecialNewpages\feedTitle(), and setHeaders().

◆ getFinalGroupName()

SpecialPage::getFinalGroupName ( )

Get the group that the special page belongs in on Special:SpecialPage Use this method, instead of getGroupName to allow customization of the group name from the wiki side.

Returns
string Group of this special page
Since
1.21

Definition at line 853 of file SpecialPage.php.

References getGroupName(), getName(), and msg().

◆ getFullTitle()

SpecialPage::getFullTitle ( )

Return the full title, including $par.

Returns
Title
Since
1.18

Definition at line 768 of file SpecialPage.php.

References getContext().

Referenced by checkLoginSecurityLevel(), LoginSignupSpecialPage\execute(), AuthManagerSpecialPage\getAuthForm(), and AuthManagerSpecialPage\handleReauthBeforeExecute().

◆ getGroupName()

SpecialPage::getGroupName ( )
protected

Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.

Returns
string
Since
1.21

Reimplemented in ChangesListSpecialPage, SpecialBlock, SpecialUndelete, SpecialVersion, LoginSignupSpecialPage, UserrightsPage, MovePageForm, SpecialUpload, SpecialReplaceText, SpecialSearch, SpecialRevisionDelete, SpecialContributions, SpecialWhatLinksHere, SpecialImport, SpecialExport, SpecialInterwiki, SpecialNewpages, SpecialEmailUser, SpecialTags, SpecialEditTags, SpecialRenameuser, SpecialBotPasswords, SpecialNuke, SpecialAllPages, SpecialMergeHistory, SpecialRedirect, SpecialMediaStatistics, SpecialLog, SpecialRandomInCategory, SpecialStatistics, SpecialChangeContentModel, SpecialExpandTemplates, SpecialPrefixindex, SpecialPageLanguage, SpecialListGroupRights, SpecialUnblock, SpecialGadgetUsage, SpecialFileDuplicateSearch, SpecialGadgets, SpecialBlockList, SpecialPagesWithProp, SpecialLinkSearch, SpecialDeletedContributions, SpecialMIMESearch, SpecialDoubleRedirects, CategoryTreePage, SpecialBookSources, SpecialNewFiles, SpecialChangeEmail, SpecialJavaScriptTest, SpecialProtectedpages, SpecialBrokenRedirects, SpecialPasswordReset, SpecialPasswordPolicies, RandomPage, SpecialShortPages, SpecialProtectedtitles, SpecialComparePages, SpecialCreateAccount, SpecialActiveUsers, SpecialPreferences, SpecialAutoblockList, SpecialListRedirects, WantedFilesPage, SpecialUserLogin, SpecialResetTokens, SpecialUnwatchedPages, SpecialMostLinked, SpecialTrackingCategories, SpecialMostLinkedTemplates, SpecialWantedCategories, SpecialAllMessages, SpecialDiff, SpecialLockdb, SpecialMostInterwikis, SpecialMostCategories, SpecialWithoutInterwiki, SpecialListDuplicatedFiles, SpecialAncientPages, SpecialFewestRevisions, SpecialLonelyPages, SpecialUnusedTemplates, SpecialDeadendPages, SpecialMostLinkedCategories, WantedPagesPage, SpecialUnlockdb, SpecialGoToInterwiki, SpecialListFiles, SpecialUncategorizedPages, SpecialListGrants, SpecialUnusedImages, SpecialUnusedCategories, SpecialCiteThisPage, SpecialNewSection, SpecialPermanentLink, SpecialListUsers, SpecialUncategorizedImages, MostimagesPage, SpecialCategories, SpecialApiSandbox, SpecialWantedTemplates, SpecialFilepath, SpecialUserLogout, SpecialLongPages, SpecialMostRevisions, SpecialUnlinkAccounts, SpecialChangeCredentials, and SpecialLinkAccounts.

Definition at line 886 of file SpecialPage.php.

Referenced by getFinalGroupName().

◆ getLanguage()

SpecialPage::getLanguage ( )

Shortcut to get user's language.

Returns
Language
Since
1.19

Definition at line 749 of file SpecialPage.php.

References getContext().

Referenced by SpecialEditTags\buildCheckBoxes(), SpecialEditWatchlist\buildRemoveLine(), SpecialVersion\compare(), SpecialUndelete\diffHeader(), SpecialWatchlist\doHeader(), SpecialReplaceText\doSpecialReplaceText(), SpecialTags\doTagRow(), SpecialTrackingCategories\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialLinkSearch\execute(), SpecialFileDuplicateSearch\execute(), LoginSignupSpecialPage\execute(), QueryPage\execute(), SpecialJavaScriptTest\exportQUnit(), SpecialNewpages\filterLinks(), SpecialMyLanguage\findTitle(), SpecialUndelete\formatFileRow(), SpecialListGroupRights\formatPermissions(), SpecialPasswordPolicies\formatPolicies(), WantedQueryPage\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialFewestRevisions\formatResult(), SpecialUnusedTemplates\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialWantedCategories\formatResult(), SpecialAncientPages\formatResult(), SpecialMostLinkedTemplates\formatResult(), SpecialBrokenRedirects\formatResult(), SpecialMostLinked\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialDoubleRedirects\formatResult(), SpecialListRedirects\formatResult(), SpecialShortPages\formatResult(), SpecialGadgetUsage\formatResult(), SpecialMIMESearch\formatResult(), SpecialPagesWithProp\formatResult(), SpecialFileDuplicateSearch\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialNewpages\formatRow(), SpecialCachedPage\getCacheKey(), SpecialVersion\getCreditsForExtension(), SpecialStatistics\getEditStats(), SpecialVersion\getEntryPointInfo(), SpecialMediaStatistics\getExtensionList(), SpecialUndelete\getFileLink(), SpecialWhatLinksHere\getFilterPanel(), SpecialPageLanguage\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialStatistics\getGroupStats(), SpecialEditWatchlist\getNormalForm(), SpecialStatistics\getOtherStats(), SpecialUndelete\getPageLink(), SpecialStatistics\getPageStats(), SpecialWhatLinksHere\getPrevNext(), SpecialDeletedContributions\getSubTitle(), SpecialStatistics\getUserStats(), UserrightsPage\groupCheckboxes(), SpecialWhatLinksHere\listItem(), SpecialVersion\listToText(), LoginSignupSpecialPage\makeLanguageSelector(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialUserLogout\onSubmit(), SpecialRecentChanges\optionsPanel(), SpecialEditWatchlist\outputSubtitle(), SpecialNewpages\parseParams(), SpecialBlock\postText(), SpecialUpload\processVerificationError(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialRevisionDelete\showForm(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), SpecialConfirmEmail\showRequestForm(), SpecialUndelete\showRevision(), MovePageForm\showSubpagesList(), SpecialRevisionDelete\tryShowFile(), and SpecialWhatLinksHere\wlhLink().

◆ getLinkRenderer()

SpecialPage::getLinkRenderer ( )
Since
1.28
Returns
\MediaWiki\Linker\LinkRenderer

Definition at line 904 of file SpecialPage.php.

References $linkRenderer.

Referenced by SpecialEditWatchlist\buildRemoveLine(), SpecialContributions\contributionsSub(), SpecialUndelete\diffHeader(), SpecialWatchlist\doHeader(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialRenameuser\execute(), SpecialListFiles\execute(), SpecialCategories\execute(), SpecialNewFiles\execute(), SpecialProtectedpages\execute(), SpecialTrackingCategories\execute(), SpecialContributions\execute(), SpecialAllMessages\execute(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), SpecialDeletedContributions\execute(), SpecialNewpages\filterLinks(), PageQueryPage\formatResult(), WantedQueryPage\formatResult(), SpecialFewestRevisions\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialUnusedTemplates\formatResult(), SpecialUnusedCategories\formatResult(), SpecialMostCategories\formatResult(), SpecialUncategorizedCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialWantedCategories\formatResult(), SpecialAncientPages\formatResult(), SpecialMostLinkedTemplates\formatResult(), SpecialBrokenRedirects\formatResult(), SpecialMostLinked\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialDoubleRedirects\formatResult(), SpecialListRedirects\formatResult(), SpecialShortPages\formatResult(), SpecialMIMESearch\formatResult(), SpecialPagesWithProp\formatResult(), SpecialFileDuplicateSearch\formatResult(), SpecialLinkSearch\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialNewpages\formatRow(), SpecialVersion\getCreditsForExtension(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUnblock\getFields(), SpecialUndelete\getFileLink(), SpecialEmailUser\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialStatistics\getGroupStats(), SpecialUndelete\getPageLink(), SpecialStatistics\getPageStats(), SpecialDeletedContributions\getSubTitle(), SpecialUpload\getUploadForm(), SpecialStatistics\getUserStats(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), SpecialWhatLinksHere\listItem(), LoginSignupSpecialPage\load(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialRecentChanges\makeOptionsLink(), SpecialWhatLinksHere\makeSelfLink(), SpecialInterwiki\makeTable(), SpecialMostLinked\makeWlhLink(), WantedQueryPage\makeWlhLink(), SpecialMostLinkedTemplates\makeWlhLink(), SpecialMergeHistory\merge(), NukeHooks\nukeContributionsLinks(), RenameuserHooks\onContributionsToolLinks(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialSpecialpages\outputPageList(), SpecialEditWatchlist\outputSubtitle(), SpecialMediaStatistics\outputTableRow(), SpecialBlock\postText(), SpecialLog\show(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialRevisionDelete\showForm(), SpecialWhatLinksHere\showIndirectLinks(), SpecialInterwiki\showList(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), SpecialPrefixindex\showPrefixChunk(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialChangeCredentials\showSubpageList(), MovePageForm\showSubpagesList(), SpecialEditWatchlist\showTitles(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialUndelete\undelete(), and SpecialWhatLinksHere\wlhLink().

◆ getLocalName()

SpecialPage::getLocalName ( )

Get the localised name of the special page.

Returns
string

Definition at line 238 of file SpecialPage.php.

References $mLocalName.

◆ getLoginSecurityLevel()

SpecialPage::getLoginSecurityLevel ( )
protected

Tells if the special page does something security-sensitive and needs extra defense against a stolen account (e.g.

a reauthentication). What exactly that will mean is decided by the authentication framework.

Returns
bool|string False or the argument for AuthManager::securitySensitiveOperationStatus(). Typically a special page needing elevated security would return its name here.

Reimplemented in SpecialCreateAccount, SpecialChangeEmail, SpecialBotPasswords, AuthManagerSpecialPage, SpecialUserLogin, MediaWiki\Extension\OATHAuth\Special\DisableOATHForUser, and SpecialUnlinkAccounts.

Definition at line 360 of file SpecialPage.php.

Referenced by FormSpecialPage\execute(), and execute().

◆ getName()

SpecialPage::getName ( )

Get the name of this Special Page.

Returns
string

Reimplemented in SpecialDiff.

Definition at line 153 of file SpecialPage.php.

References $mName.

Referenced by addHelpLink(), checkLoginSecurityLevel(), QueryPage\delete(), RandomPage\execute(), QueryPage\execute(), QueryPage\fetchFromCache(), QueryPage\getCachedTimestamp(), SpecialRecentChanges\getExtraOptions(), getFinalGroupName(), FormSpecialPage\getForm(), SpecialEmailUser\getFormFields(), MediaWiki\Extension\OATHAuth\Special\DisableOATHForUser\getLoginSecurityLevel(), AuthManagerSpecialPage\getLoginSecurityLevel(), SpecialBotPasswords\getLoginSecurityLevel(), SpecialChangeEmail\getLoginSecurityLevel(), FormSpecialPage\getMessagePrefix(), QueryPage\getRecacheDB(), SpecialMytalk\getRedirect(), SpecialMypage\getRedirect(), SpecialAllMyUploads\getRedirect(), SpecialMyuploads\getRedirect(), SpecialMycontributions\getRedirect(), AuthManagerSpecialPage\getToken(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), LoginSignupSpecialPage\mainLoginForm(), SpecialBlock\maybeAlterFormDefaults(), SpecialLockdb\onSubmit(), MediaWiki\Extension\OATHAuth\Special\DisableOATHForUser\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialChangeEmail\onSuccess(), outputHeader(), SpecialEditWatchlist\outputSubtitle(), QueryPage\recache(), ChangesListSpecialPage\runMainQueryHook(), SpecialBotPasswords\save(), LoginSignupSpecialPage\showSuccessPage(), and SpecialCreateAccount\successfulAction().

◆ getOutput()

SpecialPage::getOutput ( )

Get the OutputPage being used for this instance.

Returns
OutputPage
Since
1.18

Definition at line 719 of file SpecialPage.php.

References getContext().

Referenced by SpecialCachedPage\addCachedHTML(), MediaWiki\Extension\OATHAuth\Special\OATHManage\addCustomContent(), addFeedLinks(), MediaWiki\Extension\OATHAuth\Special\OATHManage\addGeneralHelp(), SpecialLog\addHeader(), MediaWiki\Extension\OATHAuth\Special\OATHManage\addHeading(), addHelpLink(), MediaWiki\Extension\OATHAuth\Special\OATHManage\addModuleHTML(), SpecialRecentChanges\addModules(), ChangesListSpecialPage\addModules(), SpecialRevisionDelete\addUsageText(), SpecialPageLanguage\alterForm(), SpecialConfirmEmail\attemptConfirm(), SpecialEmailInvalidate\attemptInvalidate(), SpecialUserLogin\beforeExecute(), AuthManagerSpecialPage\beforeExecute(), checkLoginSecurityLevel(), MediaWiki\Extension\OATHAuth\Special\OATHManage\clearPage(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialContributions\contributionsSub(), SpecialRedirect\dispatch(), SpecialNuke\doDelete(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), SpecialReplaceText\doSpecialReplaceText(), MovePageForm\doSubmit(), UserrightsPage\editUserGroupsForm(), SpecialInterwiki\error(), SpecialRenameuser\execute(), SpecialListFiles\execute(), SpecialJavaScriptTest\execute(), SpecialApiHelp\execute(), SpecialApiSandbox\execute(), SpecialBlankpage\execute(), SpecialNewFiles\execute(), SpecialCategories\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialSpecialpages\execute(), SpecialLog\execute(), SpecialActiveUsers\execute(), SpecialUnlinkAccounts\execute(), SpecialLinkAccounts\execute(), SpecialContributions\execute(), RedirectSpecialPage\execute(), SpecialTrackingCategories\execute(), SpecialListGrants\execute(), SpecialPreferences\execute(), SpecialRunJobs\execute(), SpecialStatistics\execute(), SpecialAllMessages\execute(), SpecialListUsers\execute(), SpecialBookSources\execute(), SpecialExport\execute(), SpecialGoToInterwiki\execute(), SpecialAutoblockList\execute(), SpecialPasswordPolicies\execute(), SpecialInterwiki\execute(), SpecialListGroupRights\execute(), SpecialDeletedContributions\execute(), SpecialUnblock\execute(), SpecialBlockList\execute(), SpecialWhatLinksHere\execute(), SpecialComparePages\execute(), SpecialReplaceText\execute(), SpecialPrefixindex\execute(), SpecialConfirmEmail\execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialAllPages\execute(), SpecialChangeEmail\execute(), SpecialVersion\execute(), RandomPage\execute(), SpecialLinkSearch\execute(), DisabledSpecialPage\execute(), CategoryTreePage\execute(), SpecialWatchlist\execute(), SpecialMute\execute(), SpecialPagesWithProp\execute(), SpecialResetTokens\execute(), SpecialImport\execute(), SpecialBotPasswords\execute(), SpecialEditTags\execute(), SpecialPasswordReset\execute(), SpecialPageData\execute(), SpecialEditWatchlist\execute(), MediaWiki\Extension\OATHAuth\Special\OATHManage\execute(), UserrightsPage\execute(), SpecialUnwatchedPages\execute(), SpecialFileDuplicateSearch\execute(), SpecialEmailUser\execute(), SpecialMergeHistory\execute(), SpecialSearch\execute(), SpecialNewpages\execute(), SpecialRevisionDelete\execute(), SpecialRecentChanges\execute(), SpecialUndelete\execute(), LoginSignupSpecialPage\execute(), QueryPage\execute(), ChangesListSpecialPage\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), SpecialJavaScriptTest\exportQUnit(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\feed(), SpecialNewpages\form(), SpecialLog\getActionButtons(), SpecialChangeCredentials\getAuthFormDescriptor(), SpecialVersion\getCreditsForExtension(), SpecialContributions\getForm(), SpecialBlock\getFormFields(), MediaWiki\Extension\OATHAuth\Special\OATHManage\getGenericContent(), SpecialDeletedContributions\getSubTitle(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), LoginSignupSpecialPage\mainLoginForm(), SpecialInterwiki\makeTable(), SpecialBlock\maybeAlterFormDefaults(), SpecialMergeHistory\merge(), SpecialCachedPage\onCacheInitialized(), SpecialNewSection\onFormSubmit(), SpecialPermanentLink\onFormSubmit(), SpecialDiff\onFormSubmit(), SpecialRandomInCategory\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialInterwiki\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialResetTokens\onSuccess(), SpecialUnlockdb\onSuccess(), SpecialMute\onSuccess(), SpecialUserLogout\onSuccess(), SpecialLockdb\onSuccess(), SpecialChangeEmail\onSuccess(), MediaWiki\Extension\OATHAuth\Special\DisableOATHForUser\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialPageLanguage\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialBlock\onSuccess(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), outputHeader(), SpecialMediaStatistics\outputMediaType(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialRecentChangesLinked\outputNoResults(), ChangesListSpecialPage\outputNoResults(), SpecialSpecialpages\outputPageList(), SpecialMediaStatistics\outputResults(), SpecialEditWatchlist\outputSubtitle(), SpecialMediaStatistics\outputTableEnd(), SpecialGadgetUsage\outputTableEnd(), SpecialMediaStatistics\outputTableRow(), SpecialGadgetUsage\outputTableStart(), SpecialMediaStatistics\outputTableStart(), ChangesListSpecialPage\outputTimeout(), SpecialReplaceText\pageListForm(), SpecialJavaScriptTest\plainQUnit(), SpecialBlock\postText(), SpecialPageLanguage\preText(), SpecialBlock\preText(), SpecialUpload\processUpload(), SpecialNuke\promptForm(), SpecialUndelete\redirectToRevDel(), SpecialEmailUser\sendEmailForm(), SpecialUserLogin\setHeaders(), setHeaders(), SpecialNewFiles\setTopText(), SpecialRecentChangesLinked\setTopText(), SpecialRecentChanges\setTopText(), SpecialWatchlist\setTopText(), SpecialSearch\setupPage(), SpecialLog\show(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialCiteThisPage\showCitations(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialSearch\showCreateLink(), SpecialTags\showDeleteTagForm(), SpecialUndelete\showDiff(), MediaWiki\Extension\OATHAuth\Special\OATHManage\showDisableWarning(), UserrightsPage\showEditUserGroupsForm(), QueryPage\showEmptyText(), SpecialGadgets\showExportForm(), SpecialUndelete\showFile(), SpecialUndelete\showFileConfirmationForm(), SpecialInterwiki\showForm(), SpecialPageData\showForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialReplaceText\showForm(), SpecialSearch\showGoogleSearch(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialWhatLinksHere\showIndirectLinks(), SpecialFileDuplicateSearch\showList(), SpecialAutoblockList\showList(), SpecialBookSources\showList(), SpecialBlockList\showList(), SpecialInterwiki\showList(), SpecialUndelete\showList(), MovePageForm\showLogFragment(), SpecialGadgets\showMainForm(), SpecialMergeHistory\showMergeForm(), SpecialPrefixindex\showPrefixChunk(), SpecialConfirmEmail\showRequestForm(), SpecialPreferences\showResetForm(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialChangeCredentials\showSubpageList(), MovePageForm\showSubpages(), MovePageForm\showSubpagesList(), SpecialUserLogout\showSuccess(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialAutoblockList\showTotal(), SpecialUploadStash\showUpload(), SpecialUpload\showUploadForm(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialPreferences\submitReset(), SpecialChangeCredentials\success(), SpecialEditTags\success(), SpecialRevisionDelete\success(), SpecialCreateAccount\successfulAction(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), SpecialUndelete\undelete(), SpecialUpload\unsaveUploadedFile(), and ChangesListSpecialPage\validateOptions().

◆ getPageTitle()

SpecialPage::getPageTitle (   $subpage = false)

Get a self-referential title object.

Parameters
string | bool$subpage
Returns
Title
Since
1.23

Definition at line 672 of file SpecialPage.php.

References getTitleFor().

Referenced by SpecialActiveUsers\buildForm(), SpecialBookSources\buildForm(), buildPrevNextNavigation(), SpecialCiteThisPage\citationTag(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialUndelete\diffHeader(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialReplaceText\doSpecialReplaceText(), SpecialTags\doTagRow(), SpecialRenameuser\execute(), SpecialApiHelp\execute(), SpecialUnlinkAccounts\execute(), SpecialLinkAccounts\execute(), SpecialAutoblockList\execute(), SpecialWhatLinksHere\execute(), SpecialBlockList\execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialLinkSearch\execute(), SpecialWatchlist\execute(), SpecialImport\execute(), SpecialFileDuplicateSearch\execute(), SpecialEmailUser\execute(), SpecialSearch\execute(), LoginSignupSpecialPage\execute(), CategoryTreePage\executeInputForm(), SpecialNewpages\feed(), SpecialNewpages\filterLinks(), SpecialUndelete\formatFileRow(), SpecialUndelete\formatRevisionRow(), LoginSignupSpecialPage\getAuthForm(), SpecialEditWatchlist\getClearForm(), SpecialVersion\getCreditsForExtension(), SpecialContributions\getForm(), SpecialBotPasswords\getFormFields(), SpecialEditWatchlist\getNormalForm(), SpecialMIMESearch\getPageHeader(), SpecialEditWatchlist\getRawForm(), UserrightsPage\getSuccessURL(), SpecialUpload\getUploadForm(), AuthManagerSpecialPage\handleReturnBeforeExecute(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), LoginSignupSpecialPage\load(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialRecentChanges\makeOptionsLink(), SpecialInterwiki\makeTable(), SpecialPrefixindex\namespacePrefixForm(), SpecialPermanentLink\onFormSubmit(), SpecialDiff\onFormSubmit(), SpecialInterwiki\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialBotPasswords\onSuccess(), SpecialAllPages\outputHTMLForm(), SpecialReplaceText\pageListForm(), AuthManagerSpecialPage\performAuthenticationStep(), SpecialJavaScriptTest\plainQUnit(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialNuke\promptForm(), SpecialRecentChanges\setTopText(), SpecialWatchlist\setTopText(), SpecialSearch\setupPage(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), SpecialInterwiki\showForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialReplaceText\showForm(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialInterwiki\showList(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), SpecialMergeHistory\showMergeForm(), SpecialPrefixindex\showPrefixChunk(), SpecialConfirmEmail\showRequestForm(), SpecialPreferences\showResetForm(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialTags\showTagList(), SpecialUploadStash\showUploads(), SpecialPreferences\submitReset(), SpecialCreateAccount\successfulAction(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), ChangesListSpecialPage\validateOptions(), SpecialWhatLinksHere\whatlinkshereForm(), and SpecialWhatLinksHere\wlhLink().

◆ getRequest()

SpecialPage::getRequest ( )

Get the WebRequest being used for this instance.

Returns
WebRequest
Since
1.18

Reimplemented in AuthManagerSpecialPage.

Definition at line 709 of file SpecialPage.php.

References getContext().

Referenced by SpecialUserLogout\alterForm(), SpecialPasswordReset\alterForm(), SpecialBlock\alterForm(), SpecialChangeEmail\alterForm(), SpecialRevisionDelete\buildCheckBoxes(), SpecialActiveUsers\buildForm(), checkLoginSecurityLevel(), MediaWiki\Extension\OATHAuth\Special\OATHManage\checkPermissions(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialReplaceText\createJobsForTextReplacements(), SpecialRedirect\dispatchFile(), SpecialImport\doImport(), SpecialReplaceText\doSpecialReplaceText(), SpecialNuke\execute(), SpecialCiteThisPage\execute(), SpecialRenameuser\execute(), SpecialListFiles\execute(), SpecialApiHelp\execute(), SpecialLog\execute(), SpecialNewFiles\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialCategories\execute(), SpecialActiveUsers\execute(), SpecialContributions\execute(), SpecialWithoutInterwiki\execute(), SpecialPreferences\execute(), SpecialRunJobs\execute(), SpecialAllMessages\execute(), SpecialBookSources\execute(), SpecialExport\execute(), SpecialInterwiki\execute(), SpecialDeletedContributions\execute(), SpecialUnblock\execute(), SpecialBlockList\execute(), SpecialWhatLinksHere\execute(), SpecialPrefixindex\execute(), SpecialTags\execute(), SpecialExpandTemplates\execute(), SpecialAllPages\execute(), RandomPage\execute(), SpecialLinkSearch\execute(), SpecialWatchlist\execute(), CategoryTreePage\execute(), SpecialPagesWithProp\execute(), SpecialImport\execute(), MovePageForm\execute(), SpecialEditTags\execute(), SpecialPageData\execute(), SpecialEditWatchlist\execute(), UserrightsPage\execute(), SpecialFileDuplicateSearch\execute(), SpecialEmailUser\execute(), SpecialSearch\execute(), SpecialRevisionDelete\execute(), SpecialRecentChanges\execute(), SpecialMIMESearch\execute(), ChangesListSpecialPage\execute(), CategoryTreePage\executeInputForm(), SpecialRevisionDelete\extractBitParams(), SpecialWatchlist\fetchOptionsFromRequest(), ChangesListSpecialPage\fetchOptionsFromRequest(), ChangesListSpecialPage\getDefaultOptions(), FormSpecialPage\getForm(), SpecialContributions\getForm(), SpecialPasswordReset\getFormFields(), QueryPage\getLimitOffset(), SpecialNuke\getNewPages(), SpecialFilepath\getRedirect(), RedirectSpecialPage\getRedirectQuery(), SpecialReplaceText\getSelectedNamespaces(), SpecialEditWatchlist\getWatchlist(), SpecialVersion\IPInfo(), ChangesListSpecialPage\isStructuredFilterUiEnabled(), SpecialSearch\load(), SpecialUndelete\loadRequest(), SpecialUpload\loadRequest(), SpecialMergeHistory\loadRequestParams(), ChangesListSpecialPage\makeLegend(), SpecialBlock\maybeAlterFormDefaults(), MediaWiki\Extension\OATHAuth\Special\DisableOATHForUser\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialInterwiki\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialChangeEmail\onSuccess(), SpecialUpload\processUpload(), SpecialUndelete\redirectToRevDel(), SpecialBotPasswords\save(), SpecialSearch\saveNamespaces(), UserrightsPage\saveUserGroups(), MediaWiki\Extension\OATHAuth\Special\OATHManage\setAction(), MediaWiki\Extension\OATHAuth\Special\OATHManage\setModule(), SpecialChangeContentModel\setParameter(), SpecialBlock\setParameter(), SpecialRecentChanges\setTopText(), SpecialNewpages\setup(), MediaWiki\Extension\OATHAuth\Special\OATHManage\shouldShowDisableWarning(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFile(), SpecialInterwiki\showForm(), SpecialRevisionDelete\showForm(), SpecialExpandTemplates\showHtmlPreview(), SpecialUndelete\showSearchForm(), SpecialUserLogout\showSuccess(), SpecialCachedPage\startCache(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialPreferences\submitReset(), SpecialRevisionDelete\tryShowFile(), and useTransactionalTimeLimit().

◆ getRestriction()

SpecialPage::getRestriction ( )

Get the permission that a user must have to execute this page.

Returns
string

Definition at line 161 of file SpecialPage.php.

References $mRestriction.

◆ getRobotPolicy()

SpecialPage::getRobotPolicy ( )
protected

Return the robot policy.

Derived classes that override this can change the robot policy set by setHeaders() from the default 'noindex,nofollow'.

Returns
string
Since
1.23

Definition at line 779 of file SpecialPage.php.

Referenced by setHeaders().

◆ getSafeTitleFor()

static SpecialPage::getSafeTitleFor (   $name,
  $subpage = false 
)
static

Get a localised Title object for a page name with a possibly unvalidated subpage.

Parameters
string$name
string | bool$subpageSubpage string, or false to not use a subpage
Returns
Title|null Title object or null if the page doesn't exist

Definition at line 112 of file SpecialPage.php.

References Title\makeTitleSafe(), and NS_SPECIAL.

Referenced by EmailNotification\composeCommonMailtext(), SpecialFilepath\getRedirect(), Skin\makeSpecialUrl(), and Skin\makeSpecialUrlSubpage().

◆ getSkin()

◆ getSubpagesForPrefixSearch()

SpecialPage::getSubpagesForPrefixSearch ( )
protected

Return an array of subpages that this special page will accept for prefix searches.

If this method requires a query you might instead want to implement prefixSearchSubpages() directly so you can support $limit and $offset. This method is better for static-ish lists of things.

Returns
string[] subpages to search from

Reimplemented in SpecialTags, SpecialRedirect, SpecialEditWatchlist, SpecialLog, SpecialWatchlist, SpecialListUsers, and SpecialInterwiki.

Definition at line 490 of file SpecialPage.php.

Referenced by prefixSearchSubpages().

◆ getTitleFor()

static SpecialPage::getTitleFor (   $name,
  $subpage = false,
  $fragment = '' 
)
static

Get a localised Title object for a specified special page name If you don't need a full Title object, consider using TitleValue through getTitleValueFor() below.

Since
1.9
1.21 $fragment parameter added
Parameters
string$name
string | bool$subpageSubpage string, or false to not use a subpage
string$fragmentThe link fragment (after the "#")
Returns
Title
Exceptions
MWException

Definition at line 83 of file SpecialPage.php.

References Title\newFromTitleValue().

Referenced by FancyCaptcha\addCaptchaAPI(), SpecialConfirmEmail\attemptConfirm(), SpecialUserLogin\beforeExecute(), Linker\blockLink(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SpecialEditWatchlist\buildRemoveLine(), SpecialEditWatchlist\buildTools(), MediaWiki\Auth\AuthManager\checkAccountCreatePermissions(), checkLoginSecurityLevel(), MediaWiki\Permissions\PermissionManager\checkReadPermissions(), ApiFormatBase\closePrinter(), DifferenceEngine\deletedLink(), SpecialTags\doTagRow(), Linker\emailLink(), TidyUpT39714\execute(), ApiHelp\execute(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), MediaWiki\Extension\OATHAuth\Hook\GetPreferences\AuthModule\execute(), SpecialBlockList\execute(), ApiFeedContributions\execute(), ApiFeedWatchlist\execute(), SpecialWatchlist\execute(), SpecialResetTokens\execute(), SpecialEditWatchlist\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), OldChangesList\formatChangeLine(), LogFormatter\formatParameterValueForApi(), SpecialUnusedTemplates\formatResult(), SpecialListDuplicatedFiles\formatResult(), DeletedContribsPager\formatRevisionRow(), BlockListPager\formatValue(), ContentModelLogFormatter\getActionLinks(), MergeLogFormatter\getActionLinks(), MoveLogFormatter\getActionLinks(), BlockLogFormatter\getActionLinks(), DeleteLogFormatter\getActionLinks(), RevDelArchivedFileItem\getApiData(), RevDelFileItem\getApiData(), FancyCaptcha\getCaptchaInfo(), InfoAction\getContributors(), HistoryAction\getDescription(), RevDelArchiveItem\getDiffLink(), ApiFeedRecentChanges\getFeedObject(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUnblock\getFields(), FancyCaptcha\getFormInformation(), Title\getFullUrlForRedirect(), MWGrants\getGrantsLink(), SpecialStatistics\getGroupStats(), ApiHelp\getHelpInternal(), ChangeTagsLogItem\getHTML(), RevDelLogItem\getHTML(), RevDelArchivedFileItem\getLink(), RevDelFileItem\getLink(), RCCacheEntryFactory\getLogLink(), BlockLogFormatter\getMessageParameters(), ApiParamInfo\getModuleInfo(), InputBox\getMoveForm(), SearchNearMatcher\getNearMatchInternal(), SpecialStatistics\getPageStats(), getPageTitle(), TimelessTemplate\getPageTools(), ChangesListSpecialPage\getRcFiltersConfigSummary(), ChangesListSpecialPage\getRcFiltersConfigVars(), ManualLogEntry\getRecentChange(), SpecialAllMyUploads\getRedirect(), SpecialMyuploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialRedirectToSpecial\getRedirect(), RevDelArchiveItem\getRevisionLink(), InputBox\getSearchForm(), InputBox\getSearchForm2(), Skin\getSearchLink(), LogEventsList\getShowHideLinks(), UploadStashFile\getSpecialUrl(), SpecialDeletedContributions\getSubTitle(), MediaWiki\getTitle(), AllMessagesTablePager\getTitle(), ImageListPager\getTitle(), MediaWiki\Special\SpecialPageFactory\getTitleForAlias(), Skin\getUndeleteLink(), ImagePage\getUploadUrl(), Linker\getUploadUrl(), SpecialContributions\getUserLinks(), ExternalUserNames\getUserLinkTitle(), SpecialStatistics\getUserStats(), AuthManagerSpecialPage\handleReauthBeforeExecute(), ImageHistoryList\imageHistoryLine(), CreditsAction\link(), EnhancedChangesList\makeCacheGroupingKey(), GadgetHooks\makeLegacyWarning(), SpecialMostLinked\makeWlhLink(), WantedQueryPage\makeWlhLink(), SpecialMostLinkedTemplates\makeWlhLink(), RecentChangesUpdateJob\newCacheUpdateJob(), RecentChangesUpdateJob\newPurgeJob(), NukeHooks\nukeContributionsLinks(), RenameuserHooks\onContributionsToolLinks(), CiteThisPageHooks\onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink(), MarkpatrolledAction\onSubmit(), ConfirmEditHooks\onTitleReadWhitelist(), ImagePage\openShowImage(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialMediaStatistics\outputTableRow(), InfoAction\pageInfo(), SpecialReplaceText\pageListForm(), MediaWiki\parseTitle(), MediaWiki\performRequest(), SpecialBlock\postText(), SkinTemplate\prepareQuickTemplate(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), EnhancedChangesList\recentChangesBlockLine(), SpecialUndelete\redirectToRevDel(), CategoryTree\renderParents(), UserNotLoggedIn\report(), Linker\revDeleteLink(), LogPage\saveContent(), UserMailer\sendInternal(), McrUndoAction\show(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialGadgets\showExportForm(), SpecialReplaceText\showForm(), EditPage\showHeader(), SpecialInterwiki\showList(), LogEventsList\showOptions(), SpecialUserLogout\showSuccess(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), CoreParserFunctions\special(), Linker\specialLink(), SpecialEmailUser\submit(), RevDelLogList\suggestTarget(), MediaWiki\tryNormaliseRedirect(), ChangeTags\updateTagsWithChecks(), Linker\userToolLinks(), and MediaWiki\Preferences\DefaultPreferencesFactory\watchlistPreferences().

◆ getTitleValueFor()

static SpecialPage::getTitleValueFor (   $name,
  $subpage = false,
  $fragment = '' 
)
static

Get a localised TitleValue object for a specified special page name.

Since
1.28
Parameters
string$name
string | bool$subpageSubpage string, or false to not use a subpage
string$fragmentThe link fragment (after the "#")
Returns
TitleValue

Definition at line 98 of file SpecialPage.php.

References NS_SPECIAL.

Referenced by TagLogFormatter\getMessageParameters(), BlockListPager\getRestrictionListHTML(), Linker\normaliseSpecialPage(), and InfoAction\pageInfo().

◆ getUser()

SpecialPage::getUser ( )

Shortcut to get the User executing this instance.

Returns
User
Since
1.18

Definition at line 729 of file SpecialPage.php.

References getContext().

Referenced by MediaWiki\Extension\OATHAuth\Special\OATHManage\__construct(), UserrightsPage\addLogEntry(), SpecialRevisionDelete\addUsageText(), SpecialConfirmEmail\attemptConfirm(), SpecialEmailInvalidate\attemptInvalidate(), SpecialNewFiles\buildForm(), SpecialInterwiki\canModify(), UserrightsPage\changeableGroups(), SpecialChangeEmail\checkExecutePermissions(), SpecialBotPasswords\checkExecutePermissions(), SpecialCreateAccount\checkPermissions(), MediaWiki\Extension\OATHAuth\Special\OATHManage\checkPermissions(), checkPermissions(), SpecialEditWatchlist\cleanupWatchlist(), SpecialEditWatchlist\clearUserWatchedItems(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialWatchlist\countItems(), SpecialReplaceText\createJobsForTextReplacements(), SpecialWatchlist\cutoffselector(), SpecialUndelete\diffHeader(), SpecialRedirect\dispatchUser(), SpecialNuke\doDelete(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), SpecialRecentChanges\doMainQuery(), SpecialWatchlist\doMainQuery(), UserrightsPage\doSaveUserGroups(), SpecialReplaceText\doSpecialReplaceText(), MovePageForm\doSubmit(), SpecialNuke\execute(), SpecialRenameuser\execute(), SpecialApiSandbox\execute(), SpecialLog\execute(), SpecialUnlinkAccounts\execute(), SpecialContributions\execute(), SpecialPreferences\execute(), SpecialReplaceText\execute(), SpecialConfirmEmail\execute(), SpecialUserLogout\execute(), SpecialWatchlist\execute(), SpecialUploadStash\execute(), SpecialImport\execute(), MovePageForm\execute(), SpecialEditTags\execute(), UserrightsPage\execute(), SpecialEmailUser\execute(), SpecialRevisionDelete\execute(), SpecialUpload\execute(), SpecialUndelete\execute(), FormSpecialPage\execute(), LoginSignupSpecialPage\execute(), QueryPage\execute(), ChangesListSpecialPage\execute(), SpecialReplaceText\extractContext(), UserrightsPage\fetchUser(), SpecialNewpages\filterLinks(), SpecialUndelete\formatFileRow(), SpecialDoubleRedirects\formatResult(), SpecialFileDuplicateSearch\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialLog\getActionButtons(), SpecialMute\getBlacklist(), SpecialEmailUser\getBlockedEmailError(), SpecialAutoblockList\getBlockListPager(), SpecialBlockList\getBlockListPager(), ChangesListSpecialPage\getDefaultDays(), SpecialRecentChanges\getDefaultLimit(), ChangesListSpecialPage\getDefaultLimit(), SpecialEmailUser\getDescription(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileLink(), SpecialContributions\getForm(), SpecialEmailUser\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialResetTokens\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialBlock\getFormFields(), SpecialMute\getFormFields(), SpecialWatchlist\getLatestNotificationTimestamp(), SpecialSpecialpages\getPageGroups(), SpecialUndelete\getPageLink(), SpecialCiteThisPage\getParserOptions(), SpecialMypage\getRedirect(), SpecialMytalk\getRedirect(), SpecialAllMyUploads\getRedirect(), SpecialMyuploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialReplaceText\getTitlesForMoveAndUnmoveableTitles(), SpecialUpload\getWatchCheck(), SpecialEditWatchlist\getWatchlist(), SpecialEditWatchlist\getWatchlistInfo(), UserrightsPage\groupCheckboxes(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialUndelete\isAllowed(), SpecialPasswordReset\isListed(), ChangesListSpecialPage\isStructuredFilterUiEnabled(), SpecialNuke\listForm(), SpecialSearch\load(), AuthManagerSpecialPage\loadAuth(), SpecialUndelete\loadRequest(), SpecialUpload\loadRequest(), SpecialMergeHistory\loadRequestParams(), LoginSignupSpecialPage\mainLoginForm(), SpecialExpandTemplates\makeOutput(), SpecialBlock\maybeAlterFormDefaults(), SpecialMergeHistory\merge(), SpecialMute\muteTarget(), NukeHooks\nukeContributionsLinks(), RenameuserHooks\onContributionsToolLinks(), SpecialLockdb\onSubmit(), SpecialUserLogout\onSubmit(), MediaWiki\Extension\OATHAuth\Special\DisableOATHForUser\onSubmit(), SpecialChangeEmail\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialResetTokens\onSubmit(), SpecialPasswordReset\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialUserLogout\onSuccess(), SpecialChangeEmail\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialRecentChanges\optionsPanel(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialWatchlist\outputFeedLinks(), SpecialEditWatchlist\outputSubtitle(), SpecialNewpages\patrollable(), AuthManagerSpecialPage\performAuthenticationStep(), LoginSignupSpecialPage\postProcessFormDescriptor(), SpecialBlock\postText(), SpecialUpload\processUpload(), SpecialNuke\promptForm(), SpecialWatchlist\registerFilters(), SpecialRecentChanges\registerFilters(), ChangesListSpecialPage\registerFilters(), requireLogin(), SpecialEditWatchlist\runWatchUnwatchCompleteHook(), SpecialBotPasswords\save(), SpecialSearch\saveNamespaces(), SpecialUserLogin\setHeaders(), SpecialWatchlist\setTopText(), SpecialNewpages\setup(), SpecialTags\showActivateDeactivateForm(), SpecialRevisionDelete\showConvenienceLinks(), LoginSignupSpecialPage\showCreateAccountLink(), SpecialSearch\showCreateLink(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialGadgets\showMainForm(), SpecialUpload\showRecoverableUploadError(), SpecialConfirmEmail\showRequestForm(), SpecialPreferences\showResetForm(), SpecialUndelete\showRevision(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialEditWatchlist\submitRaw(), SpecialPreferences\submitReset(), SpecialConfirmEmail\submitSend(), SpecialChangeCredentials\success(), SpecialUserLogin\successfulAction(), SpecialCreateAccount\successfulAction(), SpecialRevisionDelete\tryShowFile(), SpecialUndelete\undelete(), SpecialMute\unmuteTarget(), SpecialEditWatchlist\unwatchTitles(), UserrightsPage\userCanChangeRights(), SpecialExport\userCanOverrideExportDepth(), SpecialEditWatchlist\watchTitles(), and SpecialWhatLinksHere\wlhLink().

◆ including()

◆ isCached()

SpecialPage::isCached ( )

Is this page cached? Expensive pages are cached or disabled in miser mode.

Used by QueryPage and subclasses, moved here so that Special:SpecialPages can safely call it for all special pages.

Returns
bool
Since
1.21

Reimplemented in QueryPage, and SpecialFileDuplicateSearch.

Definition at line 268 of file SpecialPage.php.

◆ isExpensive()

SpecialPage::isExpensive ( )

Is this page expensive (for some definition of expensive)? Expensive pages are disabled or cached in miser mode.

Originally used (and still overridden) by QueryPage and subclasses, moved here so that Special:SpecialPages can safely call it for all special pages.

Returns
bool

Reimplemented in QueryPage, SpecialWithoutInterwiki, SpecialGadgetUsage, SpecialMediaStatistics, SpecialDeadendPages, SpecialLonelyPages, SpecialUncategorizedPages, SpecialMostLinkedTemplates, SpecialUnwatchedPages, SpecialMostCategories, SpecialMostLinked, SpecialUncategorizedImages, SpecialListDuplicatedFiles, SpecialBrokenRedirects, SpecialDoubleRedirects, SpecialListRedirects, SpecialMIMESearch, SpecialMostInterwikis, SpecialAncientPages, SpecialFewestRevisions, MostimagesPage, SpecialUnusedTemplates, SpecialUnusedImages, WantedQueryPage, and SpecialUnusedCategories.

Definition at line 255 of file SpecialPage.php.

◆ isIncludable()

SpecialPage::isIncludable ( )

Whether it's allowed to transclude the special page via {{Special:Foo/params}}.

Returns
bool

Reimplemented in SpecialRecentChanges, SpecialApiHelp, IncludableSpecialPage, and WantedPagesPage.

Definition at line 200 of file SpecialPage.php.

References $mIncludable.

◆ isListed()

SpecialPage::isListed ( )

Whether this special page is listed in Special:SpecialPages.

Since
1.3 (r3583)
Returns
bool

Reimplemented in SpecialPasswordReset, SpecialResetTokens, SpecialDiff, SpecialPageData, SpecialNewSection, SpecialPermanentLink, SpecialBotPasswords, SpecialChangeEmail, SpecialUserLogout, UnlistedSpecialPage, SpecialUnlinkAccounts, SpecialChangeCredentials, and SpecialLinkAccounts.

Definition at line 172 of file SpecialPage.php.

References $mListed.

◆ isRestricted()

SpecialPage::isRestricted ( )

Can be overridden by subclasses with more complicated permissions schemes.

Returns
bool Should the page be displayed with the restricted-access pages?

Reimplemented in SpecialCreateAccount.

Definition at line 279 of file SpecialPage.php.

◆ listed()

SpecialPage::listed (   $x = null)

Get or set whether this special page is listed in Special:SpecialPages.

Since
1.6
Parameters
bool | null$x
Returns
bool

Definition at line 192 of file SpecialPage.php.

References wfSetVar().

◆ maxIncludeCacheTime()

SpecialPage::maxIncludeCacheTime ( )

How long to cache page when it is being included.

Note
If cache time is not 0, then the current user becomes an anon if you want to do any per-user customizations, than this method must be overriden to return 0.
Since
1.26
Returns
int Time in seconds, 0 to disable caching altogether, false to use the parent page's cache settings

Definition at line 214 of file SpecialPage.php.

References getCacheTTL(), and getConfig().

◆ msg()

SpecialPage::msg (   $key,
  $params 
)

Wrapper around wfMessage that sets the current context.

Since
1.16
Parameters
string | string[] | MessageSpecifier$key
mixed...$params
Returns
Message
See also
wfMessage

Implements MessageLocalizer.

Definition at line 792 of file SpecialPage.php.

References getContext(), and including().

Referenced by addHelpLink(), MediaWiki\Extension\OATHAuth\Special\DisableOATHForUser\alterForm(), SpecialUnlockdb\alterForm(), SpecialUserLogout\alterForm(), SpecialLockdb\alterForm(), SpecialPasswordReset\alterForm(), SpecialChangeEmail\alterForm(), SpecialBotPasswords\alterForm(), SpecialEditTags\buildCheckBoxes(), SpecialRevisionDelete\buildCheckBoxes(), SpecialNewFiles\buildForm(), SpecialEditWatchlist\buildRemoveLine(), SpecialComparePages\checkExistingRevision(), SpecialComparePages\checkExistingTitle(), SpecialEditWatchlist\clearUserWatchedItems(), SpecialReplaceText\createJobsForTextReplacements(), SpecialWatchlist\cutoffselector(), SpecialUndelete\diffHeader(), SpecialNuke\doDelete(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), SpecialReplaceText\doSpecialReplaceText(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialNuke\execute(), SpecialRenameuser\execute(), SpecialListFiles\execute(), SpecialJavaScriptTest\execute(), SpecialApiHelp\execute(), SpecialCategories\execute(), SpecialUnlinkAccounts\execute(), SpecialLinkAccounts\execute(), SpecialContributions\execute(), SpecialTrackingCategories\execute(), SpecialListGrants\execute(), SpecialPreferences\execute(), SpecialAllMessages\execute(), SpecialStatistics\execute(), SpecialListUsers\execute(), SpecialAutoblockList\execute(), SpecialExport\execute(), SpecialPasswordPolicies\execute(), SpecialListGroupRights\execute(), SpecialDeletedContributions\execute(), SpecialUnblock\execute(), SpecialWhatLinksHere\execute(), SpecialBlockList\execute(), SpecialPrefixindex\execute(), SpecialChangeCredentials\execute(), SpecialVersion\execute(), SpecialAllPages\execute(), CategoryTreePage\execute(), DisabledSpecialPage\execute(), SpecialPagesWithProp\execute(), SpecialEditWatchlist\execute(), UserrightsPage\execute(), SpecialFileDuplicateSearch\execute(), SpecialMergeHistory\execute(), SpecialUndelete\execute(), QueryPage\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\feed(), SpecialNewpages\feedItemDesc(), SpecialNewpages\filterLinks(), SpecialNewpages\form(), SpecialUndelete\formatFileRow(), SpecialListGroupRights\formatPermissions(), SpecialPasswordPolicies\formatPolicies(), WantedQueryPage\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialFewestRevisions\formatResult(), SpecialUnusedTemplates\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialListDuplicatedFiles\formatResult(), SpecialWantedCategories\formatResult(), SpecialBrokenRedirects\formatResult(), SpecialMostLinked\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialDoubleRedirects\formatResult(), SpecialShortPages\formatResult(), SpecialMIMESearch\formatResult(), SpecialPagesWithProp\formatResult(), SpecialLinkSearch\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialStatistics\formatRow(), SpecialNewpages\formatRow(), SpecialStatistics\formatRowHeader(), SpecialLog\getActionButtons(), SpecialReplaceText\getAnyWarningMessageBeforeReplace(), SpecialChangeCredentials\getAuthForm(), MostimagesPage\getCellHtml(), SpecialEditWatchlist\getClearForm(), SpecialCiteThisPage\getContentText(), SpecialVersion\getCreditsForExtension(), SpecialInterwiki\getDescription(), SpecialEmailUser\getDescription(), SpecialUserLogin\getDescription(), SpecialCreateAccount\getDescription(), SpecialDiff\getDescription(), SpecialMute\getDescription(), SpecialEditTags\getDescription(), getDescription(), SpecialUpload\getDupeWarning(), SpecialStatistics\getEditStats(), SpecialVersion\getEntryPointInfo(), SpecialUncategorizedCategories\getExceptionList(), SpecialVersion\getExtensionCredits(), SpecialVersion\getExternalLibraries(), SpecialRecentChangesLinked\getExtraOptions(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileComment(), SpecialUndelete\getFileUser(), SpecialWhatLinksHere\getFilterPanel(), getFinalGroupName(), FormSpecialPage\getForm(), SpecialMute\getForm(), SpecialContributions\getForm(), SpecialPageLanguage\getFormFields(), SpecialEmailUser\getFormFields(), SpecialResetTokens\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialChangeContentModel\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialBlock\getFormFields(), SpecialRedirect\getFormFields(), SpecialStatistics\getGroupStats(), SpecialActiveUsers\getIntroText(), SpecialProtectedtitles\getLevelMenu(), SpecialProtectedpages\getLevelMenu(), SpecialImport\getMappingFormPart(), SpecialEditWatchlist\getNormalForm(), RandomPage\getNsList(), SpecialStatistics\getOtherStats(), SpecialUnusedCategories\getPageHeader(), SpecialLonelyPages\getPageHeader(), SpecialDeadendPages\getPageHeader(), WantedFilesPage\getPageHeader(), SpecialDoubleRedirects\getPageHeader(), SpecialBrokenRedirects\getPageHeader(), SpecialUnusedImages\getPageHeader(), SpecialUnusedTemplates\getPageHeader(), LoginSignupSpecialPage\getPageHtml(), SpecialStatistics\getPageStats(), SpecialVersion\getParserFunctionHooks(), SpecialVersion\getParserTags(), SpecialWhatLinksHere\getPrevNext(), SpecialEditWatchlist\getRawForm(), SpecialVersion\getSkinCredits(), SpecialDeletedContributions\getSubTitle(), SpecialJavaScriptTest\getSummaryHtml(), SpecialMediaStatistics\getTableHeaderRow(), SpecialProtectedpages\getTypeMenu(), SpecialUpload\getUploadForm(), SpecialStatistics\getUserStats(), SpecialVersion\getWgHooks(), UserrightsPage\groupCheckboxes(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), SpecialWhatLinksHere\listItem(), LoginSignupSpecialPage\load(), SpecialUpload\loadRequest(), LoginSignupSpecialPage\mainLoginForm(), SpecialExpandTemplates\makeForm(), UserrightsPage\makeGroupNameList(), LoginSignupSpecialPage\makeLanguageSelector(), SpecialExpandTemplates\makeOutput(), SpecialInterwiki\makeTable(), WantedQueryPage\makeWlhLink(), SpecialMostLinkedTemplates\makeWlhLink(), SpecialMergeHistory\merge(), SpecialRecentChanges\namespaceFilterForm(), SpecialReplaceText\namespaceTables(), NukeHooks\nukeContributionsLinks(), RenameuserHooks\onContributionsToolLinks(), SpecialLockdb\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialUnlockdb\onSuccess(), SpecialLockdb\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialBlock\onSuccess(), SpecialVersion\openExtType(), SpecialRecentChanges\optionsPanel(), SpecialUploadStash\outputContents(), outputHeader(), SpecialUploadStash\outputLocalFile(), SpecialUploadStash\outputLocallyScaledThumb(), SpecialMediaStatistics\outputMediaType(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialRecentChangesLinked\outputNoResults(), ChangesListSpecialPage\outputNoResults(), SpecialSpecialpages\outputPageList(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialMediaStatistics\outputResults(), SpecialGadgetUsage\outputResults(), SpecialEditWatchlist\outputSubtitle(), SpecialMediaStatistics\outputTableEnd(), SpecialMediaStatistics\outputTableRow(), SpecialGadgetUsage\outputTableStart(), ChangesListSpecialPage\outputTimeout(), SpecialReplaceText\pageListForm(), SpecialUploadStash\parseKey(), SpecialBlock\postText(), SpecialBlock\preText(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), SpecialNuke\promptForm(), SpecialEmailUser\sendEmailForm(), SpecialUserLogin\setHeaders(), SpecialNewFiles\setTopText(), SpecialRecentChanges\setTopText(), SpecialWatchlist\setTopText(), SpecialSearch\setupPage(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialGadgets\showExportForm(), SpecialUndelete\showFileConfirmationForm(), SpecialInterwiki\showForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialReplaceText\showForm(), SpecialSearch\showGoogleSearch(), SpecialWatchlist\showHideCheck(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialWhatLinksHere\showIndirectLinks(), SpecialAutoblockList\showList(), SpecialBookSources\showList(), SpecialBlockList\showList(), SpecialInterwiki\showList(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), SpecialMergeHistory\showMergeForm(), SpecialProtectedpages\showOptions(), SpecialProtectedtitles\showOptions(), SpecialPrefixindex\showPrefixChunk(), SpecialUpload\showRecoverableUploadError(), SpecialConfirmEmail\showRequestForm(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialTags\showTagList(), SpecialEditWatchlist\showTitles(), SpecialAutoblockList\showTotal(), SpecialUpload\showUploadError(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialRevisionDelete\submit(), SpecialEditWatchlist\submitNormal(), SpecialEditWatchlist\submitRaw(), SpecialConfirmEmail\submitSend(), SpecialLinkAccounts\success(), SpecialEditTags\success(), SpecialRevisionDelete\success(), SpecialUserLogin\successfulAction(), SpecialCreateAccount\successfulAction(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), SpecialUndelete\undelete(), SpecialUpload\unsaveUploadedFile(), SpecialEmailUser\userForm(), SpecialChangeContentModel\validateTitle(), and SpecialWhatLinksHere\whatlinkshereForm().

◆ outputHeader()

SpecialPage::outputHeader (   $summaryMessageKey = '')

Outputs a summary message on top of special pages Per default the message key is the canonical name of the special page May be overridden, i.e.

by extensions to stick with the naming conventions for message keys: 'extensionname-xxx'

Parameters
string$summaryMessageKeyMessage key of the summary

Definition at line 639 of file SpecialPage.php.

References getName(), getOutput(), including(), and msg().

Referenced by SpecialRedirect\alterForm(), SpecialNuke\execute(), SpecialListFiles\execute(), SpecialNewFiles\execute(), SpecialProtectedtitles\execute(), SpecialProtectedpages\execute(), SpecialSpecialpages\execute(), SpecialCategories\execute(), SpecialLog\execute(), SpecialLinkAccounts\execute(), SpecialActiveUsers\execute(), SpecialUnlinkAccounts\execute(), SpecialTrackingCategories\execute(), SpecialListGrants\execute(), SpecialContributions\execute(), SpecialPreferences\execute(), SpecialListUsers\execute(), SpecialAutoblockList\execute(), SpecialExport\execute(), SpecialBookSources\execute(), SpecialInterwiki\execute(), SpecialPasswordPolicies\execute(), SpecialListGroupRights\execute(), SpecialDeletedContributions\execute(), SpecialUnblock\execute(), SpecialBlockList\execute(), SpecialWhatLinksHere\execute(), SpecialComparePages\execute(), SpecialPrefixindex\execute(), SpecialChangeCredentials\execute(), SpecialTags\execute(), SpecialVersion\execute(), SpecialAllPages\execute(), SpecialLinkSearch\execute(), DisabledSpecialPage\execute(), SpecialPagesWithProp\execute(), SpecialImport\execute(), MovePageForm\execute(), SpecialEditTags\execute(), SpecialEditWatchlist\execute(), UserrightsPage\execute(), SpecialFileDuplicateSearch\execute(), SpecialEmailUser\execute(), SpecialMergeHistory\execute(), SpecialNewpages\execute(), SpecialRevisionDelete\execute(), SpecialUpload\execute(), SpecialMIMESearch\execute(), SpecialUndelete\execute(), QueryPage\execute(), execute(), ChangesListSpecialPage\execute(), SpecialSearch\setupPage(), SpecialNewSection\showNoRedirectPage(), SpecialPermanentLink\showNoRedirectPage(), SpecialDiff\showNoRedirectPage(), and SpecialUploadStash\showUploads().

◆ prefixSearchArray()

static SpecialPage::prefixSearchArray (   $search,
  $limit,
array  $subpages,
  $offset 
)
staticprotected

Helper function for implementations of prefixSearchSubpages() that filter the values in memory (as opposed to making a query).

Since
1.24
Parameters
string$search
int$limit
array$subpages
int$offset
Returns
string[]

Definition at line 528 of file SpecialPage.php.

Referenced by SpecialPagesWithProp\prefixSearchSubpages(), and prefixSearchSubpages().

◆ prefixSearchString()

SpecialPage::prefixSearchString (   $search,
  $limit,
  $offset 
)
protected

Perform a regular substring search for prefixSearchSubpages.

Parameters
string$searchPrefix to search for
int$limitMaximum number of results to return (usually 10)
int$offsetNumber of results to skip (usually 0)
Returns
string[] Matching subpages

Definition at line 501 of file SpecialPage.php.

References $t, $title, and Title\newFromText().

Referenced by SpecialPageLanguage\prefixSearchSubpages(), SpecialRecentChangesLinked\prefixSearchSubpages(), SpecialPrefixindex\prefixSearchSubpages(), SpecialChangeContentModel\prefixSearchSubpages(), SpecialAllPages\prefixSearchSubpages(), SpecialWhatLinksHere\prefixSearchSubpages(), MovePageForm\prefixSearchSubpages(), and SpecialUndelete\prefixSearchSubpages().

◆ prefixSearchSubpages()

SpecialPage::prefixSearchSubpages (   $search,
  $limit,
  $offset 
)

Return an array of subpages beginning with $search that this special page will accept.

For example, if a page supports subpages "foo", "bar" and "baz" (as in Special:PageName/foo, etc.):

  • prefixSearchSubpages( "ba" ) should return [ "bar", "baz" ]
  • prefixSearchSubpages( "f" ) should return [ "foo" ]
  • prefixSearchSubpages( "z" ) should return []
  • prefixSearchSubpages( "" ) should return [ foo", "bar", "baz" ]
Parameters
string$searchPrefix to search for
int$limitMaximum number of results to return (usually 10)
int$offsetNumber of results to skip (usually 0)
Returns
string[] Matching subpages

Reimplemented in SpecialBlock, SpecialUndelete, UserrightsPage, MovePageForm, SpecialContributions, SpecialWhatLinksHere, SpecialEmailUser, SpecialRenameuser, SpecialAllPages, SpecialNuke, SpecialChangeContentModel, SpecialPrefixindex, SpecialPageLanguage, SpecialRecentChangesLinked, SpecialUnblock, SpecialFileDuplicateSearch, SpecialDeletedContributions, CategoryTreePage, SpecialPagesWithProp, SpecialListFiles, and SpecialCiteThisPage.

Definition at line 473 of file SpecialPage.php.

References getSubpagesForPrefixSearch(), and prefixSearchArray().

◆ requireLogin()

SpecialPage::requireLogin (   $reasonMsg = 'exception-nologin-text',
  $titleMsg = 'exception-nologin' 
)

If the user is not logged in, throws UserNotLoggedIn error.

The user will be redirected to Special:Userlogin with the given message as an error on the form.

Since
1.23
Parameters
string$reasonMsg[optional] Message key to be displayed on login page
string$titleMsg[optional] Passed on to UserNotLoggedIn constructor
Exceptions
UserNotLoggedIn

Definition at line 345 of file SpecialPage.php.

References getUser().

Referenced by MediaWiki\Extension\OATHAuth\Special\DisableOATHForUser\checkExecutePermissions(), SpecialChangeEmail\checkExecutePermissions(), MediaWiki\Extension\OATHAuth\Special\OATHManage\checkPermissions(), SpecialPreferences\execute(), SpecialConfirmEmail\execute(), SpecialWatchlist\execute(), SpecialMute\execute(), SpecialResetTokens\execute(), SpecialBotPasswords\execute(), and SpecialEditWatchlist\execute().

◆ run()

SpecialPage::run (   $subPage)
final

Entry point.

Since
1.20
Parameters
string | null$subPage

Definition at line 558 of file SpecialPage.php.

References afterExecute(), beforeExecute(), execute(), and Hooks\run().

◆ setContext()

SpecialPage::setContext (   $context)

Sets the context this SpecialPage is executed in.

Parameters
IContextSource$context
Since
1.18

Definition at line 682 of file SpecialPage.php.

References $context.

Referenced by SkinTemplate\buildNavUrls(), ApiQueryUsers\execute(), SpecialEmailUser\execute(), and LoginSignupSpecialPage\setSessionUserForCurrentRequest().

◆ setHeaders()

SpecialPage::setHeaders ( )

Sets headers - this should be called from the execute() method of all derived classes!

Reimplemented in SpecialUserLogin.

Definition at line 537 of file SpecialPage.php.

References getConfig(), getDescription(), getOutput(), and getRobotPolicy().

Referenced by SpecialCaptcha\execute(), SpecialNuke\execute(), SpecialCiteThisPage\execute(), SpecialRenameuser\execute(), SpecialListFiles\execute(), SpecialJavaScriptTest\execute(), SpecialApiSandbox\execute(), SpecialBlankpage\execute(), SpecialSpecialpages\execute(), SpecialLog\execute(), SpecialCategories\execute(), SpecialNewFiles\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialUnlinkAccounts\execute(), SpecialActiveUsers\execute(), SpecialLinkAccounts\execute(), SpecialEmailInvalidate\execute(), SpecialTrackingCategories\execute(), SpecialListGrants\execute(), SpecialContributions\execute(), SpecialAllMessages\execute(), SpecialListUsers\execute(), SpecialStatistics\execute(), SpecialPreferences\execute(), SpecialExport\execute(), SpecialGoToInterwiki\execute(), SpecialAutoblockList\execute(), SpecialBookSources\execute(), SpecialListGroupRights\execute(), SpecialInterwiki\execute(), SpecialPasswordPolicies\execute(), SpecialDeletedContributions\execute(), SpecialUnblock\execute(), SpecialWhatLinksHere\execute(), SpecialBlockList\execute(), SpecialReplaceText\execute(), SpecialComparePages\execute(), SpecialPrefixindex\execute(), SpecialConfirmEmail\execute(), SpecialTags\execute(), SpecialChangeCredentials\execute(), SpecialUserLogout\execute(), SpecialExpandTemplates\execute(), SpecialVersion\execute(), SpecialAllPages\execute(), RandomPage\execute(), SpecialLinkSearch\execute(), CategoryTreePage\execute(), DisabledSpecialPage\execute(), SpecialPagesWithProp\execute(), SpecialImport\execute(), MovePageForm\execute(), SpecialEditTags\execute(), SpecialEditWatchlist\execute(), UserrightsPage\execute(), SpecialFileDuplicateSearch\execute(), SpecialEmailUser\execute(), SpecialMergeHistory\execute(), SpecialNewpages\execute(), SpecialRevisionDelete\execute(), SpecialUpload\execute(), SpecialMIMESearch\execute(), SpecialUndelete\execute(), FormSpecialPage\execute(), LoginSignupSpecialPage\execute(), QueryPage\execute(), execute(), ChangesListSpecialPage\execute(), SpecialSearch\setupPage(), SpecialGadgets\showExportForm(), SpecialGadgets\showMainForm(), SpecialNewSection\showNoRedirectPage(), SpecialPermanentLink\showNoRedirectPage(), SpecialDiff\showNoRedirectPage(), and SpecialUploadStash\showUploads().

◆ setLinkRenderer()

SpecialPage::setLinkRenderer ( LinkRenderer  $linkRenderer)
Since
1.28
Parameters
\\MediaWiki\\Linker\\LinkRenderer$linkRenderer

Definition at line 916 of file SpecialPage.php.

References $linkRenderer.

◆ setListed()

SpecialPage::setListed (   $listed)

Set whether this page is listed in Special:Specialpages, at run-time.

Since
1.3
Parameters
bool$listed
Returns
bool

Definition at line 182 of file SpecialPage.php.

References wfSetVar().

◆ setReauthPostData()

SpecialPage::setReauthPostData ( array  $data)
protected

Record preserved POST data after a reauthentication.

This is called from checkLoginSecurityLevel() when returning from the redirect for reauthentication, if the redirect had been served in response to a POST request.

The base SpecialPage implementation does nothing. If your subclass uses getLoginSecurityLevel() or checkLoginSecurityLevel(), it should probably implement this to do something with the data.

Since
1.32
Parameters
array$data

Reimplemented in FormSpecialPage.

Definition at line 378 of file SpecialPage.php.

Referenced by checkLoginSecurityLevel().

◆ userCanExecute()

SpecialPage::userCanExecute ( User  $user)

Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction).

Can be overridden by sub- classes with more complicated permissions schemes.

Parameters
User$userThe user to check
Returns
bool Does the user have permission to view the page?

Reimplemented in SpecialUndelete, SpecialUpload, SpecialPasswordReset, and SpecialCreateAccount.

Definition at line 294 of file SpecialPage.php.

Referenced by checkPermissions(), and QueryPage\execute().

◆ useTransactionalTimeLimit()

Member Data Documentation

◆ $linkRenderer

MediaWiki Linker LinkRenderer null SpecialPage::$linkRenderer
private

Definition at line 67 of file SpecialPage.php.

Referenced by SpecialEditWatchlist\buildRemoveLine(), SpecialEditWatchlist\buildTools(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialRenameuser\execute(), SpecialTrackingCategories\execute(), SpecialPasswordPolicies\execute(), SpecialListGroupRights\execute(), SpecialNewpages\filterLinks(), WantedQueryPage\formatResult(), SpecialFewestRevisions\formatResult(), SpecialUnusedTemplates\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialAncientPages\formatResult(), SpecialBrokenRedirects\formatResult(), SpecialMostLinked\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialDoubleRedirects\formatResult(), SpecialListRedirects\formatResult(), SpecialShortPages\formatResult(), SpecialMIMESearch\formatResult(), SpecialFileDuplicateSearch\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialNewpages\formatRow(), SpecialEmailUser\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialStatistics\getGroupStats(), getLinkRenderer(), SpecialStatistics\getPageStats(), SpecialDeletedContributions\getSubTitle(), SpecialContributions\getUserLinks(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), SpecialMostLinked\makeWlhLink(), SpecialMergeHistory\merge(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialMediaStatistics\outputTableRow(), SpecialBlock\postText(), setLinkRenderer(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), SpecialSearch\showResults(), SpecialChangeCredentials\showSubpageList(), MovePageForm\showSubpagesList(), SpecialEditWatchlist\showTitles(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), and SpecialWhatLinksHere\wlhLink().

◆ $mContext

IContextSource SpecialPage::$mContext
protected

Current request context.

Definition at line 62 of file SpecialPage.php.

Referenced by getContext().

◆ $mIncludable

SpecialPage::$mIncludable
protected

Definition at line 56 of file SpecialPage.php.

Referenced by isIncludable().

◆ $mIncluding

SpecialPage::$mIncluding
protected

Definition at line 53 of file SpecialPage.php.

◆ $mListed

SpecialPage::$mListed
private

Definition at line 50 of file SpecialPage.php.

Referenced by isListed().

◆ $mLocalName

SpecialPage::$mLocalName
private

Definition at line 43 of file SpecialPage.php.

Referenced by getLocalName().

◆ $mName

SpecialPage::$mName
protected

Definition at line 40 of file SpecialPage.php.

Referenced by SpecialCachedPage\getCacheKey(), and getName().

◆ $mRestriction

SpecialPage::$mRestriction
protected

Definition at line 47 of file SpecialPage.php.

Referenced by getRestriction().


The documentation for this class was generated from the following file: