MediaWiki  master
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...
 
 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...
 
 getTitle ($subpage=false)
 Get a self-referential title object. 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...
 
 msg ()
 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...
 
 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. More...
 

Protected Member Functions

 addFeedLinks ($params)
 Adds RSS/atom links. More...
 
 afterExecute ($subPage)
 Gets called after. More...
 
 beforeExecute ($subPage)
 Gets called before. More...
 
 checkLoginSecurityLevel ($level=null)
 Verifies that the user meets the security level, possibly reauthenticating them in the process. More...
 
 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...
 
 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

 $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 36 of file SpecialPage.php.

Constructor & Destructor Documentation

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 114 of file SpecialPage.php.

References $name.

Member Function Documentation

SpecialPage::addFeedLinks (   $params)
protected

Adds RSS/atom links.

Parameters
array$params

Definition at line 724 of file SpecialPage.php.

References $params, as, getConfig(), getOutput(), wfAppendQuery(), and wfScript().

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

SpecialPage::addHelpLink (   $to,
  $overrideBaseUrl = false 
)
SpecialPage::afterExecute (   $subPage)
protected

Gets called after.

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

Definition at line 513 of file SpecialPage.php.

Referenced by run().

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

Definition at line 502 of file SpecialPage.php.

Referenced by run().

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$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 336 of file SpecialPage.php.

References $query, $request, $title, getFullTitle(), getName(), getOutput(), getRequest(), getTitleFor(), PROTO_HTTPS, true, wfArrayToCgi(), and wfMessage().

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

SpecialPage::displayRestrictionError ( )

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

Exceptions
PermissionsError

Definition at line 252 of file SpecialPage.php.

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

SpecialPage::doesWrites ( )

Indicates whether this special page may perform database writes.

Returns
bool
Since
1.27

Definition at line 783 of file SpecialPage.php.

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

Definition at line 525 of file SpecialPage.php.

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

Referenced by SpecialPageExecutor\getHTMLFromSpecialPage(), and run().

SpecialPage::getConfig ( )

Shortcut to get main config object.

Returns
Config
Since
1.24

Definition at line 671 of file SpecialPage.php.

References getContext().

Referenced by SpecialPasswordReset\__construct(), addFeedLinks(), SpecialPasswordReset\alterForm(), SpecialChangeEmailPreAuthManager\alterForm(), SpecialPasswordResetPreAuthManager\alterForm(), SpecialChangeEmailPreAuthManager\attemptChange(), ChangesListSpecialPage\buildMainQueryConds(), SpecialPasswordResetPreAuthManager\canChangePassword(), SpecialUnlockdb\checkExecutePermissions(), SpecialLockdb\checkExecutePermissions(), SpecialBotPasswords\checkExecutePermissions(), SpecialWatchlist\cutoffselector(), QueryPage\doFeed(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChanges\doMainQuery(), SpecialWatchlist\doMainQuery(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialApiSandbox\execute(), SpecialLog\execute(), SpecialExport\execute(), SpecialListGrants\execute(), DeletedContributionsPage\execute(), SpecialListGroupRights\execute(), SpecialRunJobs\execute(), SpecialWhatLinksHere\execute(), SpecialActiveUsers\execute(), SpecialWatchlist\execute(), SpecialAllMessages\execute(), SpecialExpandTemplates\execute(), SpecialImport\execute(), LinkSearchPage\execute(), SpecialEmailUser\execute(), QueryPage\execute(), SpecialNewpages\feed(), SpecialNewpages\feedTitle(), QueryPage\feedTitle(), UserrightsPage\fetchUser(), SpecialMyLanguage\findTitle(), LoginSignupSpecialPage\getAuthForm(), QueryPage\getDBLimit(), ChangesListSpecialPage\getDefaultOptions(), SpecialRecentChanges\getExtraOptions(), SpecialRecentChanges\getFeedQuery(), SpecialPageLanguage\getFormFields(), SpecialPasswordResetPreAuthManager\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialChangeEmailPreAuthManager\getFormFields(), SpecialChangePasswordPreAuthManager\getFormFields(), SpecialStatistics\getGroupStats(), SpecialProtectedtitles\getLevelMenu(), SpecialProtectedpages\getLevelMenu(), QueryPage\getLimitOffset(), SpecialImport\getMappingFormPart(), QueryPage\getMaxResults(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), SpecialStatistics\getPageStats(), UnusedimagesPage\getQueryInfo(), WantedPagesPage\getQueryInfo(), LinkSearchPage\getQueryInfo(), SpecialRemoveCredentials\getRequestBlacklist(), SpecialLinkAccounts\getRequestBlacklist(), SpecialUnlinkAccounts\getRequestBlacklist(), SpecialChangeCredentials\getRequestBlacklist(), SpecialLog\getSubpagesForPrefixSearch(), SpecialResetTokens\getTokensList(), SpecialStatistics\getUserStats(), SpecialSearch\goResult(), QueryPage\isCached(), QueryPage\isExpensive(), SpecialBotPasswords\isListed(), LinkSearchPage\linkParameters(), LoginFormPreAuthManager\mainLoginForm(), SpecialPrefixindex\namespacePrefixForm(), SpecialUnlockdb\onSubmit(), SpecialLockdb\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialPasswordResetPreAuthManager\onSubmit(), SpecialRecentChanges\optionsPanel(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialUploadStash\outputThumbFromStash(), SpecialLog\parseParams(), SpecialTrackingCategories\prepareTrackingCategoriesData(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), SpecialBotPasswords\save(), setHeaders(), SpecialWatchlist\setTopText(), SpecialSearch\shouldRunSuggestedQuery(), MovePageForm\showForm(), SpecialImport\showForm(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialWhatLinksHere\showIndirectLinks(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialUndelete\undelete(), and SpecialExport\validateLinkDepth().

SpecialPage::getContext ( )

Gets the context this SpecialPage is executed in.

Returns
IContextSource|RequestContext
Since
1.18

Definition at line 605 of file SpecialPage.php.

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

Referenced by MergeHistoryPager\__construct(), SpecialLog\addHeader(), LoginFormPreAuthManager\addNewAccount(), LoginFormPreAuthManager\authenticateUserData(), SpecialBookSources\buildForm(), SpecialUndelete\diffHeader(), SpecialImport\doImport(), SpecialNewFiles\execute(), SpecialListFiles\execute(), SpecialApiHelp\execute(), SpecialContributions\execute(), SpecialPreferences\execute(), SpecialStatistics\execute(), SpecialExport\execute(), DeletedContributionsPage\execute(), SpecialPagesWithProp\execute(), SpecialUnblock\execute(), SpecialBlockList\execute(), SpecialListUsers\execute(), SpecialActiveUsers\execute(), SpecialComparePages\execute(), SpecialExpandTemplates\execute(), SpecialCategories\execute(), LinkSearchPage\execute(), FileDuplicateSearchPage\execute(), SpecialEmailUser\execute(), SpecialNewpages\form(), PageQueryPage\formatResult(), FewestrevisionsPage\formatResult(), MostlinkedCategoriesPage\formatResult(), UnwatchedpagesPage\formatResult(), MostcategoriesPage\formatResult(), ShortPagesPage\formatResult(), MostinterwikisPage\formatResult(), MostlinkedTemplatesPage\formatResult(), MostlinkedPage\formatResult(), SpecialProtectedtitles\formatRow(), SpecialExpandTemplates\generateHtml(), AuthManagerSpecialPage\getAuthForm(), LoginSignupSpecialPage\getAuthForm(), SpecialEditWatchlist\getClearForm(), getConfig(), SpecialUpload\getDupeWarning(), FormSpecialPage\getForm(), getFullTitle(), getLanguage(), SpecialEditTags\getList(), SpecialRevisionDelete\getList(), SpecialEditWatchlist\getNormalForm(), getOutput(), WithoutInterwikiPage\getPageHeader(), MIMEsearchPage\getPageHeader(), SpecialEditWatchlist\getRawForm(), AuthManagerSpecialPage\getRequest(), getRequest(), getSkin(), DeletedContributionsPage\getSubTitle(), SpecialUpload\getUploadForm(), getUser(), SpecialCategories\initServices(), SpecialEditWatchlist\initServices(), SpecialExpandTemplates\makeForm(), ChangesListSpecialPage\makeLegend(), msg(), SpecialChangePasswordPreAuthManager\onSuccess(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialAllPages\outputHTMLForm(), ImageQueryPage\outputResults(), SpecialTags\processCreateTagForm(), LoginFormPreAuthManager\processLogin(), LoginFormPreAuthManager\resetLoginForm(), AuthManagerSpecialPage\setRequest(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), SpecialLog\show(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialTags\showDeleteTagForm(), SpecialUndelete\showDiff(), SpecialMergeHistory\showHistory(), SpecialUndelete\showList(), SpecialMergeHistory\showMergeForm(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), LoginSignupSpecialPage\showReturnToPage(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialUploadStash\showUploads(), SpecialPreferences\submitReset(), and SpecialUserLogin\successfulAction().

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

Definition at line 563 of file SpecialPage.php.

References msg().

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

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 762 of file SpecialPage.php.

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

SpecialPage::getFullTitle ( )
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

Definition at line 795 of file SpecialPage.php.

Referenced by getFinalGroupName().

SpecialPage::getLanguage ( )

Shortcut to get user's language.

Returns
Language
Since
1.19

Definition at line 662 of file SpecialPage.php.

References getContext().

Referenced by SpecialChangeEmailPreAuthManager\attemptChange(), SpecialEditTags\buildCheckBoxes(), SpecialEditWatchlist\buildRemoveLine(), SpecialVersion\compare(), SpecialContributions\contributionsSub(), SpecialUndelete\diffHeader(), SpecialWatchlist\doHeader(), SpecialTags\doTagRow(), SpecialUserlogoutPreAuthManager\execute(), SpecialUserLogout\execute(), SpecialBlockList\execute(), SpecialTrackingCategories\execute(), SpecialAllPages\execute(), LinkSearchPage\execute(), FileDuplicateSearchPage\execute(), LoginSignupSpecialPage\execute(), LoginFormPreAuthManager\execute(), QueryPage\execute(), SpecialJavaScriptTest\exportQUnit(), SpecialNewpages\filterLinks(), SpecialMyLanguage\findTitle(), SpecialUndelete\formatFileRow(), SpecialListGroupRights\formatPermissions(), AncientPagesPage\formatResult(), UnusedtemplatesPage\formatResult(), FewestrevisionsPage\formatResult(), WantedQueryPage\formatResult(), MostlinkedCategoriesPage\formatResult(), UnwatchedpagesPage\formatResult(), WantedCategoriesPage\formatResult(), MostcategoriesPage\formatResult(), ShortPagesPage\formatResult(), MostinterwikisPage\formatResult(), BrokenRedirectsPage\formatResult(), MostlinkedTemplatesPage\formatResult(), ListredirectsPage\formatResult(), MostlinkedPage\formatResult(), DoubleRedirectsPage\formatResult(), SpecialPagesWithProp\formatResult(), MIMEsearchPage\formatResult(), FileDuplicateSearchPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialNewpages\formatRow(), SpecialCachedPage\getCacheKey(), SpecialVersion\getCreditsForExtension(), SpecialStatistics\getEditStats(), SpecialVersion\getEntryPointInfo(), MediaStatisticsPage\getExtensionList(), SpecialUndelete\getFileLink(), SpecialWhatLinksHere\getFilterPanel(), SpecialPageLanguage\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialStatistics\getGroupStats(), SpecialEditWatchlist\getNormalForm(), SpecialStatistics\getOtherStats(), SpecialUndelete\getPageLink(), SpecialStatistics\getPageStats(), SpecialWhatLinksHere\getPrevNext(), DeletedContributionsPage\getSubTitle(), SpecialStatistics\getUserStats(), SpecialWhatLinksHere\listItem(), SpecialVersion\listToText(), LoginSignupSpecialPage\makeLanguageSelector(), LoginFormPreAuthManager\makeLanguageSelector(), LoginSignupSpecialPage\makeLanguageSelectorLink(), LoginFormPreAuthManager\makeLanguageSelectorLink(), SpecialRecentChanges\optionsPanel(), SpecialNewpages\parseParams(), SpecialUpload\processVerificationError(), SpecialSearch\searchProfileTabs(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialRevisionDelete\showForm(), SpecialSearch\showHit(), SpecialUndelete\showList(), EmailConfirmation\showRequestForm(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), MovePageForm\showSubpages(), SpecialRevisionDelete\tryShowFile(), and SpecialWhatLinksHere\wlhLink().

SpecialPage::getLocalName ( )

Get the localised name of the special page.

Returns
string

Definition at line 191 of file SpecialPage.php.

References $mLocalName, and SpecialPageFactory\getLocalNameFor().

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.

Definition at line 308 of file SpecialPage.php.

Referenced by execute().

SpecialPage::getOutput ( )

Get the OutputPage being used for this instance.

Returns
OutputPage
Since
1.18

Definition at line 632 of file SpecialPage.php.

References getContext().

Referenced by SpecialCachedPage\addCachedHTML(), addFeedLinks(), SpecialLog\addHeader(), addHelpLink(), ChangesListSpecialPage\addModules(), SpecialRecentChanges\addModules(), LoginFormPreAuthManager\addNewAccount(), LoginFormPreAuthManager\addNewAccountMailPassword(), SpecialRevisionDelete\addUsageText(), SpecialPageLanguage\alterForm(), EmailConfirmation\attemptConfirm(), EmailInvalidation\attemptInvalidate(), SpecialUserLogin\beforeExecute(), AuthManagerSpecialPage\beforeExecute(), checkLoginSecurityLevel(), SpecialContributions\contributionsSub(), LoginFormPreAuthManager\cookieRedirectCheck(), SpecialRedirect\dispatch(), LoginFormPreAuthManager\displaySuccessfulAction(), QueryPage\doFeed(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), MovePageForm\doSubmit(), UserrightsPage\editUserGroupsForm(), SpecialListFiles\execute(), SpecialNewFiles\execute(), SpecialApiSandbox\execute(), SpecialJavaScriptTest\execute(), SpecialSpecialpages\execute(), SpecialApiHelp\execute(), SpecialBlankpage\execute(), SpecialLog\execute(), SpecialContributions\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialUserlogoutPreAuthManager\execute(), SpecialExport\execute(), SpecialStatistics\execute(), SpecialLinkAccounts\execute(), SpecialUserLogout\execute(), SpecialPreferences\execute(), SpecialListGrants\execute(), RedirectSpecialPage\execute(), DeletedContributionsPage\execute(), SpecialListGroupRights\execute(), SpecialRunJobs\execute(), SpecialRecentChanges\execute(), SpecialUnblock\execute(), SpecialBlockList\execute(), SpecialPagesWithProp\execute(), SpecialListUsers\execute(), SpecialWhatLinksHere\execute(), SpecialActiveUsers\execute(), ChangesListSpecialPage\execute(), SpecialBookSources\execute(), SpecialWatchlist\execute(), SpecialAllMessages\execute(), SpecialVersion\execute(), EmailConfirmation\execute(), SpecialComparePages\execute(), SpecialPrefixindex\execute(), SpecialChangePasswordPreAuthManager\execute(), SpecialExpandTemplates\execute(), RandomPage\execute(), SpecialChangeEmailPreAuthManager\execute(), SpecialChangeEmail\execute(), SpecialTrackingCategories\execute(), SpecialBotPasswords\execute(), SpecialAllPages\execute(), SpecialEditTags\execute(), SpecialImport\execute(), SpecialResetTokens\execute(), SpecialCategories\execute(), SpecialChangeCredentials\execute(), UnwatchedpagesPage\execute(), UserrightsPage\execute(), LinkSearchPage\execute(), SpecialEditWatchlist\execute(), FileDuplicateSearchPage\execute(), SpecialSearch\execute(), SpecialEmailUser\execute(), SpecialRevisionDelete\execute(), SpecialNewpages\execute(), LoginSignupSpecialPage\execute(), LoginFormPreAuthManager\execute(), QueryPage\execute(), SpecialUndelete\execute(), LoginFormPreAuthManager\executeReturnTo(), SpecialEditWatchlist\executeViewEditWatchlist(), SpecialJavaScriptTest\exportQUnit(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\feed(), SpecialNewpages\form(), SpecialLog\getActionButtons(), SpecialVersion\getCreditsForExtension(), SpecialPageExecutor\getHTMLFromSpecialPage(), DeletedContributionsPage\getSubTitle(), SpecialSearch\goResult(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), SpecialVersion\listAuthors(), LoginSignupSpecialPage\mainLoginForm(), LoginFormPreAuthManager\mainLoginForm(), SpecialMergeHistory\merge(), SpecialCachedPage\onCacheInitialized(), SpecialRandomInCategory\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialChangePasswordPreAuthManager\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialResetTokens\onSuccess(), SpecialUnlockdb\onSuccess(), SpecialLockdb\onSuccess(), SpecialChangeEmail\onSuccess(), SpecialChangeEmailPreAuthManager\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialPageLanguage\onSuccess(), SpecialChangePasswordPreAuthManager\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialPasswordResetPreAuthManager\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), outputHeader(), MediaStatisticsPage\outputMediaType(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialSpecialpages\outputPageList(), MediaStatisticsPage\outputResults(), SpecialEditWatchlist\outputSubtitle(), MediaStatisticsPage\outputTableEnd(), MediaStatisticsPage\outputTableRow(), MediaStatisticsPage\outputTableStart(), SpecialJavaScriptTest\plainQUnit(), SpecialPageLanguage\preText(), SpecialUpload\processUpload(), SpecialUndelete\redirectToRevDel(), SpecialUserLogin\setHeaders(), setHeaders(), SpecialNewFiles\setTopText(), SpecialRecentChangesLinked\setTopText(), SpecialRecentChanges\setTopText(), SpecialWatchlist\setTopText(), SpecialSearch\setupPage(), SpecialLog\show(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialSearch\showCreateLink(), SpecialTags\showDeleteTagForm(), SpecialUndelete\showDiff(), UserrightsPage\showEditUserGroupsForm(), QueryPage\showEmptyText(), SpecialUndelete\showFile(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialWhatLinksHere\showIndirectLinks(), FileDuplicateSearchPage\showList(), SpecialBookSources\showList(), SpecialBlockList\showList(), SpecialUndelete\showList(), MovePageForm\showLogFragment(), SpecialPrefixindex\showPrefixChunk(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialChangeCredentials\showSubpageList(), MovePageForm\showSubpages(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), 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 SpecialEmailUser\userForm().

SpecialPage::getPageTitle (   $subpage = false)

Get a self-referential title object.

Parameters
string | bool$subpage
Returns
Title
Since
1.23

Definition at line 585 of file SpecialPage.php.

Referenced by LoginFormPreAuthManager\addNewAccount(), LoginFormPreAuthManager\addNewAccountInternal(), SpecialUndelete\diffHeader(), SpecialRecentChanges\doHeader(), SpecialTags\doTagRow(), SpecialApiHelp\execute(), SpecialLinkAccounts\execute(), SpecialBlockList\execute(), SpecialWhatLinksHere\execute(), SpecialWatchlist\execute(), SpecialExpandTemplates\execute(), SpecialImport\execute(), LinkSearchPage\execute(), FileDuplicateSearchPage\execute(), SpecialSearch\execute(), SpecialEmailUser\execute(), LoginSignupSpecialPage\execute(), QueryPage\execute(), SpecialPageExecutor\executeSpecialPage(), SpecialNewpages\feed(), QueryPage\feedUrl(), SpecialNewpages\filterLinks(), SpecialUndelete\formatFileRow(), SpecialUndelete\formatRevisionRow(), LoginSignupSpecialPage\getAuthForm(), SpecialEditWatchlist\getClearForm(), SpecialVersion\getCreditsForExtension(), SpecialSearch\getDidYouMeanHtml(), SpecialSearch\getDidYouMeanRewrittenHtml(), LoginSignupSpecialPage\getFakeTemplate(), SpecialBotPasswords\getFormFields(), SpecialEditWatchlist\getNormalForm(), MIMEsearchPage\getPageHeader(), SpecialEditWatchlist\getRawForm(), UserrightsPage\getSuccessURL(), getTitle(), SpecialUpload\getUploadForm(), AuthManagerSpecialPage\handleReturnBeforeExecute(), SpecialVersion\listAuthors(), LoginSignupSpecialPage\load(), LoginFormPreAuthManager\load(), LoginSignupSpecialPage\mainLoginForm(), LoginFormPreAuthManager\mainLoginForm(), LoginSignupSpecialPage\makeLanguageSelectorLink(), LoginFormPreAuthManager\makeLanguageSelectorLink(), SpecialRecentChanges\makeOptionsLink(), SpecialSearch\makeSearchLink(), SpecialPrefixindex\namespacePrefixForm(), SpecialBotPasswords\onSubmit(), SpecialBotPasswords\onSuccess(), AuthManagerSpecialPage\performAuthenticationStep(), SpecialJavaScriptTest\plainQUnit(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialWatchlist\setTopText(), SpecialSearch\shortDialog(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialUndelete\showHistory(), SpecialUndelete\showList(), SpecialProtectedpages\showOptions(), SpecialProtectedtitles\showOptions(), SpecialPrefixindex\showPrefixChunk(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialChangeCredentials\showSubpageList(), SpecialTags\showTagList(), SpecialUploadStash\showUploads(), SpecialPreferences\submitReset(), SpecialCreateAccount\successfulAction(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), SpecialEmailUser\userForm(), SpecialWhatLinksHere\whatlinkshereForm(), and SpecialWhatLinksHere\wlhLink().

SpecialPage::getRequest ( )

Get the WebRequest being used for this instance.

Returns
WebRequest
Since
1.18

Definition at line 622 of file SpecialPage.php.

References getContext().

Referenced by LoginFormPreAuthManager\addNewAccountInternal(), SpecialBlock\alterForm(), SpecialChangeEmail\alterForm(), SpecialPasswordReset\alterForm(), SpecialChangeEmailPreAuthManager\alterForm(), SpecialPasswordResetPreAuthManager\alterForm(), SpecialChangePasswordPreAuthManager\alterForm(), SpecialChangePasswordPreAuthManager\attemptReset(), SpecialRevisionDelete\buildCheckBoxes(), SpecialChangePasswordPreAuthManager\checkExecutePermissions(), checkLoginSecurityLevel(), SpecialRedirect\dispatchFile(), SpecialImport\doImport(), SpecialListFiles\execute(), SpecialApiHelp\execute(), SpecialContributions\execute(), SpecialLog\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), WithoutInterwikiPage\execute(), SpecialPreferences\execute(), SpecialUserLogout\execute(), SpecialExport\execute(), SpecialUserlogoutPreAuthManager\execute(), DeletedContributionsPage\execute(), SpecialRunJobs\execute(), SpecialPagesWithProp\execute(), SpecialRecentChanges\execute(), SpecialBlockList\execute(), SpecialUnblock\execute(), SpecialWhatLinksHere\execute(), SpecialActiveUsers\execute(), SpecialBookSources\execute(), SpecialWatchlist\execute(), SpecialAllMessages\execute(), SpecialPrefixindex\execute(), SpecialTags\execute(), SpecialMergeHistory\execute(), SpecialExpandTemplates\execute(), RandomPage\execute(), SpecialAllPages\execute(), SpecialEditTags\execute(), SpecialImport\execute(), SpecialCategories\execute(), MovePageForm\execute(), UserrightsPage\execute(), LinkSearchPage\execute(), SpecialEditWatchlist\execute(), FileDuplicateSearchPage\execute(), SpecialSearch\execute(), SpecialEmailUser\execute(), SpecialRevisionDelete\execute(), MIMEsearchPage\execute(), LoginFormPreAuthManager\execute(), SpecialRevisionDelete\extractBitParams(), SpecialWatchlist\fetchOptionsFromRequest(), ChangesListSpecialPage\fetchOptionsFromRequest(), SpecialWatchlist\getDefaultOptions(), FormSpecialPage\getForm(), SpecialChangePasswordPreAuthManager\getFormFields(), QueryPage\getLimitOffset(), SpecialFilepath\getRedirect(), RedirectSpecialPage\getRedirectQuery(), SpecialEditWatchlist\getWatchlist(), LoginFormPreAuthManager\hasSessionCookie(), SpecialVersion\IPInfo(), SpecialSearch\load(), LoginFormPreAuthManager\load(), SpecialUpload\loadRequest(), SpecialUndelete\loadRequest(), LoginFormPreAuthManager\mailPasswordInternal(), LoginFormPreAuthManager\mainLoginForm(), SpecialBlock\maybeAlterFormDefaults(), SpecialChangeContentModel\onSubmit(), SpecialPasswordResetPreAuthManager\onSubmit(), SpecialChangePasswordPreAuthManager\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialChangeEmail\onSuccess(), SpecialChangeEmailPreAuthManager\onSuccess(), SpecialChangePasswordPreAuthManager\onSuccess(), LoginFormPreAuthManager\processLogin(), SpecialUpload\processUpload(), SpecialUndelete\redirectToRevDel(), SpecialSearch\saveNamespaces(), UserrightsPage\saveUserGroups(), SpecialChangeContentModel\setParameter(), SpecialBlock\setParameter(), SpecialNewpages\setup(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFile(), SpecialRevisionDelete\showForm(), SpecialExpandTemplates\showHtmlPreview(), SpecialCachedPage\startCache(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialPreferences\submitReset(), SpecialRevisionDelete\tryShowFile(), LoginFormPreAuthManager\userBlockedMessage(), and useTransactionalTimeLimit().

SpecialPage::getRestriction ( )

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

Returns
string

Definition at line 136 of file SpecialPage.php.

References $mRestriction.

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 692 of file SpecialPage.php.

Referenced by setHeaders().

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 88 of file SpecialPage.php.

References $name, SpecialPageFactory\getLocalNameFor(), Title\makeTitleSafe(), and NS_SPECIAL.

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

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

Definition at line 394 of file SpecialPage.php.

Referenced by prefixSearchSubpages().

SpecialPage::getTitle (   $subpage = false)

Get a self-referential title object.

Parameters
string | bool$subpage
Returns
Title
Deprecated:
since 1.23, use SpecialPage::getPageTitle

Definition at line 574 of file SpecialPage.php.

References getPageTitle().

Referenced by SpecialTags\doTagRow(), SpecialUpload\getExistsWarning(), and SpecialRevisionDelete\showForm().

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

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

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 75 of file SpecialPage.php.

References $name, SpecialPageFactory\getLocalNameFor(), Title\makeTitle(), and NS_SPECIAL.

Referenced by ApiQuerySiteinfo\appendExtensions(), EmailConfirmation\attemptConfirm(), SpecialUserLogin\beforeExecute(), Linker\blockLink(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SpecialEditWatchlist\buildRemoveLine(), SpecialEditWatchlist\buildTools(), MediaWiki\Auth\AuthManager\checkAccountCreatePermissions(), checkLoginSecurityLevel(), Title\checkReadPermissions(), ApiFormatBase\closePrinter(), LoginFormPreAuthManager\cookieRedirectCheck(), DifferenceEngine\deletedLink(), SpecialTags\doTagRow(), Linker\emailLink(), TidyUpBug37714\execute(), UserloginTemplate\execute(), ApiCreateAccount\execute(), ApiHelp\execute(), SpecialUserlogoutPreAuthManager\execute(), SpecialUserLogout\execute(), SpecialListGroupRights\execute(), ApiFeedContributions\execute(), SpecialBlockList\execute(), SpecialWatchlist\execute(), ApiFeedWatchlist\execute(), SpecialResetTokens\execute(), SpecialEditWatchlist\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), OldChangesList\formatChangeLine(), UnusedtemplatesPage\formatResult(), ListDuplicatedFilesPage\formatResult(), DeletedContribsPager\formatRevisionRow(), BlockListPager\formatValue(), ContentModelLogFormatter\getActionLinks(), MergeLogFormatter\getActionLinks(), MoveLogFormatter\getActionLinks(), BlockLogFormatter\getActionLinks(), DeleteLogFormatter\getActionLinks(), RevDelArchivedFileItem\getApiData(), RevDelFileItem\getApiData(), LoginSignupSpecialPage\getAuthForm(), PreferencesForm\getButtons(), InfoAction\getContributors(), HistoryAction\getDescription(), RevDelArchiveItem\getDiffLink(), ApiFeedRecentChanges\getFeedObject(), SpecialUnblock\getFields(), MWGrants\getGrantsLink(), SpecialStatistics\getGroupStats(), OutputPage\getHeadLinksArray(), ApiHelp\getHelpInternal(), ChangeTagsLogItem\getHTML(), RevDelLogItem\getHTML(), RevDelArchivedFileItem\getLink(), RevDelFileItem\getLink(), RCCacheEntryFactory\getLogLink(), ApiParamInfo\getModuleInfo(), SearchNearMatcher\getNearMatchInternal(), SpecialStatistics\getPageStats(), ManualLogEntry\getRecentChange(), SpecialMycontributions\getRedirect(), SpecialRedirectToSpecial\getRedirect(), SpecialMyuploads\getRedirect(), SpecialAllMyUploads\getRedirect(), RevDelArchiveItem\getRevisionLink(), Skin\getSearchLink(), LogEventsList\getShowHideLinks(), UploadStashFile\getSpecialUrl(), DeletedContributionsPage\getSubTitle(), MediaWiki\getTitle(), AllMessagesTablePager\getTitle(), ImageListPager\getTitle(), SpecialPageFactory\getTitleForAlias(), Skin\getUndeleteLink(), ImagePage\getUploadUrl(), Linker\getUploadUrl(), SpecialStatistics\getUserStats(), AuthManagerSpecialPage\handleReauthBeforeExecute(), ImageHistoryList\imageHistoryLine(), CreditsAction\link(), Parser\magicLinkCallback(), EnhancedChangesList\makeCacheGroupingKey(), MostlinkedPage\makeWlhLink(), WantedQueryPage\makeWlhLink(), MostlinkedTemplatesPage\makeWlhLink(), RecentChangesUpdateJob\newCacheUpdateJob(), RecentChangesUpdateJob\newPurgeJob(), Linker\normaliseSpecialPage(), MarkpatrolledAction\onView(), ImagePage\openShowImage(), SpecialListGroupRights\outputNamespaceProtectionInfo(), MediaStatisticsPage\outputTableRow(), InfoAction\pageInfo(), MediaWiki\parseTitle(), MediaWiki\performRequest(), SpecialBlock\postText(), SkinTemplate\prepareQuickTemplate(), Preferences\profilePreferences(), EnhancedChangesList\recentChangesBlockLine(), SpecialUndelete\redirectToRevDel(), UserNotLoggedIn\report(), Linker\revDeleteLink(), LogPage\saveContent(), UserMailer\sendInternal(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), EditPage\showHeader(), LogEventsList\showOptions(), OutputPage\showPermissionsErrorPage(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), CoreParserFunctions\special(), Linker\specialLink(), RevDelLogList\suggestTarget(), SpecialPageTest\testGetTitleFor(), SpecialPageTest\testGetTitleForWithWarning(), SpecialPageTest\testInvalidGetTitleFor(), LinkerTest\testLinkBeginHook(), LinkerTest\testLinkEndHook(), ExtraParserTest\testTrackingCategorySpecial(), MediaWiki\tryNormaliseRedirect(), ChangeTags\updateTagsWithChecks(), Linker\userLink(), Linker\userToolLinks(), and Preferences\watchlistPreferences().

SpecialPage::getUser ( )

Shortcut to get the User executing this instance.

Returns
User
Since
1.18

Definition at line 642 of file SpecialPage.php.

References getContext().

Referenced by UserrightsPage\addLogEntry(), LoginFormPreAuthManager\addNewAccount(), LoginFormPreAuthManager\addNewAccountInternal(), SpecialRevisionDelete\addUsageText(), SpecialChangePasswordPreAuthManager\alterForm(), LoginFormPreAuthManager\attemptAutoCreate(), EmailConfirmation\attemptConfirm(), EmailInvalidation\attemptInvalidate(), SpecialChangePasswordPreAuthManager\attemptReset(), LoginFormPreAuthManager\authenticateUserData(), ChangesListSpecialPage\buildMainQueryConds(), UserrightsPage\changeableGroups(), SpecialChangeEmailPreAuthManager\checkExecutePermissions(), SpecialChangeEmail\checkExecutePermissions(), SpecialBotPasswords\checkExecutePermissions(), SpecialCreateAccount\checkPermissions(), checkPermissions(), SpecialEditWatchlist\cleanupWatchlist(), SpecialEditWatchlist\clearWatchlist(), SpecialWatchlist\countItems(), SpecialWatchlist\cutoffselector(), SpecialUndelete\diffHeader(), LoginFormPreAuthManager\displaySuccessfulAction(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), SpecialRecentChanges\doMainQuery(), SpecialWatchlist\doMainQuery(), UserrightsPage\doSaveUserGroups(), MovePageForm\doSubmit(), SpecialApiSandbox\execute(), SpecialContributions\execute(), SpecialLog\execute(), SpecialUnlinkAccounts\execute(), SpecialUserLogout\execute(), SpecialUserlogoutPreAuthManager\execute(), SpecialPreferences\execute(), DeletedContributionsPage\execute(), SpecialWatchlist\execute(), EmailConfirmation\execute(), SpecialEditTags\execute(), SpecialImport\execute(), SpecialUploadStash\execute(), MovePageForm\execute(), UserrightsPage\execute(), SpecialEmailUser\execute(), SpecialRevisionDelete\execute(), FormSpecialPage\execute(), SpecialUpload\execute(), LoginSignupSpecialPage\execute(), LoginFormPreAuthManager\execute(), QueryPage\execute(), SpecialUndelete\execute(), UserrightsPage\fetchUser(), SpecialNewpages\filterLinks(), SpecialUndelete\formatFileRow(), BrokenRedirectsPage\formatResult(), DoubleRedirectsPage\formatResult(), FileDuplicateSearchPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialLog\getActionButtons(), LoginSignupSpecialPage\getAuthForm(), SpecialBlockList\getBlockListPager(), SpecialRecentChanges\getDefaultOptions(), SpecialWatchlist\getDefaultOptions(), LoginSignupSpecialPage\getFakeTemplate(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileLink(), SpecialEmailUser\getFormFields(), SpecialPasswordResetPreAuthManager\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialChangeEmailPreAuthManager\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialChangePasswordPreAuthManager\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialResetTokens\getFormFields(), SpecialBlock\getFormFields(), SpecialSpecialpages\getPageGroups(), SpecialUndelete\getPageLink(), SpecialMypage\getRedirect(), SpecialMytalk\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), SpecialAllMyUploads\getRedirect(), DeletedContributionsPage\getSubTitle(), SpecialUpload\getWatchCheck(), SpecialEditWatchlist\getWatchlist(), SpecialEditWatchlist\getWatchlistInfo(), SpecialUndelete\isAllowed(), SpecialPasswordResetPreAuthManager\isListed(), SpecialSearch\load(), AuthManagerSpecialPage\loadAuth(), SpecialUpload\loadRequest(), SpecialUndelete\loadRequest(), LoginFormPreAuthManager\mailPasswordInternal(), LoginSignupSpecialPage\mainLoginForm(), LoginFormPreAuthManager\mainLoginForm(), SpecialBlock\maybeAlterFormDefaults(), SpecialMergeHistory\merge(), SpecialLockdb\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialChangeEmail\onSubmit(), SpecialChangeEmailPreAuthManager\onSubmit(), SpecialResetTokens\onSubmit(), SpecialPasswordReset\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialPasswordResetPreAuthManager\onSubmit(), SpecialChangePasswordPreAuthManager\onSubmit(), SpecialChangeEmail\onSuccess(), SpecialChangeEmailPreAuthManager\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialChangePasswordPreAuthManager\onSuccess(), SpecialPasswordResetPreAuthManager\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialRecentChanges\optionsPanel(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialWatchlist\outputFeedLinks(), SpecialEditWatchlist\outputSubtitle(), SpecialNewpages\patrollable(), AuthManagerSpecialPage\performAuthenticationStep(), LoginSignupSpecialPage\postProcessFormDescriptor(), SpecialSearch\powerSearchBox(), LoginFormPreAuthManager\processLogin(), SpecialUpload\processUpload(), requireLogin(), SpecialSearch\saveNamespaces(), SpecialUserLogin\setHeaders(), SpecialWatchlist\setTopText(), SpecialNewpages\setup(), SpecialTags\showActivateDeactivateForm(), SpecialRevisionDelete\showConvenienceLinks(), LoginSignupSpecialPage\showCreateAccountLink(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialUndelete\showHistory(), SpecialSearch\showHit(), SpecialExpandTemplates\showHtmlPreview(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), SpecialUndelete\showRevision(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialUpload\showViewDeletedLinks(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialEditWatchlist\submitClear(), SpecialEditWatchlist\submitRaw(), SpecialPreferences\submitReset(), EmailConfirmation\submitSend(), SpecialChangeCredentials\success(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), LoginFormPreAuthManager\successfulCreation(), LoginFormPreAuthManager\successfulLogin(), SpecialRevisionDelete\tryShowFile(), SpecialUndelete\undelete(), SpecialEditWatchlist\unwatchTitles(), SpecialExport\userCanOverrideExportDepth(), SpecialEditWatchlist\watchTitles(), and SpecialWhatLinksHere\wlhLink().

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

Definition at line 220 of file SpecialPage.php.

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

Definition at line 207 of file SpecialPage.php.

SpecialPage::isIncludable ( )

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

Returns
bool

Definition at line 174 of file SpecialPage.php.

References $mIncludable.

SpecialPage::isListed ( )

Whether this special page is listed in Special:SpecialPages.

Since
1.3 (r3583)
Returns
bool

Definition at line 146 of file SpecialPage.php.

References $mListed.

SpecialPage::isRestricted ( )

Can be overridden by subclasses with more complicated permissions schemes.

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

Definition at line 231 of file SpecialPage.php.

References User\groupHasPermission().

SpecialPage::listed (   $x = null)

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

Since
1.6
Parameters
bool$x
Returns
bool

Definition at line 166 of file SpecialPage.php.

References wfSetVar().

Referenced by SpecialChangePasswordPreAuthManager\__construct().

SpecialPage::msg ( )

Wrapper around wfMessage that sets the current context.

Since
1.16
Returns
Message
See Also
wfMessage

Definition at line 703 of file SpecialPage.php.

References getContext(), and including().

Referenced by addHelpLink(), LoginFormPreAuthManager\addNewAccount(), LoginFormPreAuthManager\addNewAccountMailPassword(), SpecialUnlockdb\alterForm(), SpecialLockdb\alterForm(), SpecialChangeEmail\alterForm(), SpecialPasswordReset\alterForm(), SpecialChangeEmailPreAuthManager\alterForm(), SpecialPasswordResetPreAuthManager\alterForm(), SpecialChangePasswordPreAuthManager\alterForm(), SpecialBotPasswords\alterForm(), SpecialChangePasswordPreAuthManager\attemptReset(), SpecialEditTags\buildCheckBoxes(), SpecialRevisionDelete\buildCheckBoxes(), SpecialEditWatchlist\buildRemoveLine(), SpecialRecentChanges\categoryFilterForm(), SpecialComparePages\checkExistingRevision(), SpecialComparePages\checkExistingTitle(), SpecialWatchlist\cutoffselector(), SpecialUndelete\diffHeader(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialRecentChangesLinked\doMainQuery(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialJavaScriptTest\execute(), SpecialApiHelp\execute(), SpecialContributions\execute(), SpecialUserlogoutPreAuthManager\execute(), SpecialExport\execute(), SpecialStatistics\execute(), SpecialUserLogout\execute(), SpecialListGrants\execute(), DeletedContributionsPage\execute(), SpecialListGroupRights\execute(), SpecialPagesWithProp\execute(), SpecialBlockList\execute(), SpecialUnblock\execute(), SpecialWhatLinksHere\execute(), SpecialListUsers\execute(), SpecialActiveUsers\execute(), SpecialVersion\execute(), SpecialPrefixindex\execute(), SpecialTrackingCategories\execute(), SpecialAllPages\execute(), SpecialCategories\execute(), SpecialChangeCredentials\execute(), SpecialEditWatchlist\execute(), FileDuplicateSearchPage\execute(), SpecialEmailUser\execute(), QueryPage\execute(), SpecialUndelete\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\feed(), QueryPage\feedDesc(), SpecialNewpages\feedItemDesc(), SpecialNewpages\filterLinks(), SpecialNewpages\form(), SpecialUndelete\formatFileRow(), SpecialListGroupRights\formatPermissions(), UnusedtemplatesPage\formatResult(), FewestrevisionsPage\formatResult(), WantedQueryPage\formatResult(), MostlinkedCategoriesPage\formatResult(), UnwatchedpagesPage\formatResult(), WantedCategoriesPage\formatResult(), MostcategoriesPage\formatResult(), ListDuplicatedFilesPage\formatResult(), ShortPagesPage\formatResult(), MostinterwikisPage\formatResult(), BrokenRedirectsPage\formatResult(), MostlinkedPage\formatResult(), DoubleRedirectsPage\formatResult(), SpecialPagesWithProp\formatResult(), MIMEsearchPage\formatResult(), LinkSearchPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialStatistics\formatRow(), SpecialNewpages\formatRow(), SpecialStatistics\formatRowHeader(), SpecialLog\getActionButtons(), SpecialChangeCredentials\getAuthForm(), LoginSignupSpecialPage\getAuthForm(), SpecialProtectedpages\getCascadeCheck(), MostimagesPage\getCellHtml(), SpecialEditWatchlist\getClearForm(), SpecialVersion\getCreditsForExtension(), SpecialSearch\getCustomCaptions(), SpecialEmailUser\getDescription(), SpecialUserLogin\getDescription(), SpecialCreateAccount\getDescription(), LoginFormPreAuthManager\getDescription(), SpecialEditTags\getDescription(), getDescription(), SpecialSearch\getDidYouMeanHtml(), SpecialSearch\getDidYouMeanRewrittenHtml(), SpecialUpload\getDupeWarning(), SpecialStatistics\getEditStats(), SpecialVersion\getEntryPointInfo(), SpecialProtectedpages\getExpiryCheck(), SpecialVersion\getExtensionCredits(), SpecialVersion\getExternalLibraries(), SpecialRecentChangesLinked\getExtraOptions(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileComment(), SpecialUndelete\getFileUser(), SpecialWhatLinksHere\getFilterPanel(), getFinalGroupName(), FormSpecialPage\getForm(), SpecialPageLanguage\getFormFields(), SpecialEmailUser\getFormFields(), SpecialChangeContentModel\getFormFields(), SpecialChangeEmailPreAuthManager\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialChangePasswordPreAuthManager\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialResetTokens\getFormFields(), SpecialBlock\getFormFields(), SpecialRedirect\getFormFields(), SpecialStatistics\getGroupStats(), SpecialProtectedtitles\getLevelMenu(), SpecialProtectedpages\getLevelMenu(), SpecialImport\getMappingFormPart(), SpecialProtectedpages\getNamespaceMenu(), SpecialProtectedtitles\getNamespaceMenu(), SpecialEditWatchlist\getNormalForm(), RandomPage\getNsList(), SpecialStatistics\getOtherStats(), DeadendPagesPage\getPageHeader(), LonelyPagesPage\getPageHeader(), UnusedCategoriesPage\getPageHeader(), WantedFilesPage\getPageHeader(), DoubleRedirectsPage\getPageHeader(), BrokenRedirectsPage\getPageHeader(), UnusedimagesPage\getPageHeader(), UnusedtemplatesPage\getPageHeader(), LoginSignupSpecialPage\getPageHtml(), SpecialStatistics\getPageStats(), SpecialVersion\getParserFunctionHooks(), SpecialVersion\getParserTags(), SpecialWhatLinksHere\getPrevNext(), SpecialEditWatchlist\getRawForm(), SpecialProtectedpages\getRedirectCheck(), SpecialProtectedpages\getSizeLimit(), SpecialVersion\getSkinCredits(), DeletedContributionsPage\getSubTitle(), SpecialJavaScriptTest\getSummaryHtml(), MediaStatisticsPage\getTableHeaderRow(), SpecialProtectedpages\getTypeMenu(), SpecialUpload\getUploadForm(), SpecialStatistics\getUserStats(), SpecialVersion\getWgHooks(), UserrightsPage\groupCheckboxes(), SpecialSearch\interwikiHeader(), SpecialVersion\listAuthors(), SpecialWhatLinksHere\listItem(), LoginSignupSpecialPage\load(), LoginFormPreAuthManager\load(), LoginFormPreAuthManager\mailPasswordInternal(), LoginSignupSpecialPage\mainLoginForm(), LoginFormPreAuthManager\mainLoginForm(), SpecialExpandTemplates\makeForm(), UserrightsPage\makeGroupNameList(), LoginSignupSpecialPage\makeLanguageSelector(), LoginFormPreAuthManager\makeLanguageSelector(), SpecialExpandTemplates\makeOutput(), SpecialSearch\makeSearchLink(), WantedQueryPage\makeWlhLink(), MostlinkedTemplatesPage\makeWlhLink(), SpecialMergeHistory\merge(), SpecialRecentChanges\namespaceFilterForm(), SpecialPrefixindex\namespacePrefixForm(), LoginFormPreAuthManager\onCookieRedirectCheck(), SpecialLockdb\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialPasswordResetPreAuthManager\onSubmit(), SpecialUnlockdb\onSuccess(), SpecialLockdb\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialVersion\openExtType(), SpecialRecentChanges\optionsPanel(), SpecialRecentChanges\outputChangesList(), outputHeader(), MediaStatisticsPage\outputMediaType(), SpecialListGroupRights\outputNamespaceProtectionInfo(), MediaStatisticsPage\outputResults(), SpecialEditWatchlist\outputSubtitle(), MediaStatisticsPage\outputTableEnd(), MediaStatisticsPage\outputTableRow(), SpecialSearch\powerSearchBox(), SpecialTrackingCategories\prepareTrackingCategoriesData(), SpecialTags\processCreateTagForm(), LoginFormPreAuthManager\processLogin(), SpecialTags\processTagForm(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), SpecialSearch\searchProfileTabs(), SpecialUserLogin\setHeaders(), SpecialNewFiles\setTopText(), SpecialRecentChanges\setTopText(), SpecialWatchlist\setTopText(), SpecialSearch\setupPage(), SpecialSearch\shortDialog(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialWatchlist\showHideCheck(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialSearch\showHit(), SpecialExpandTemplates\showHtmlPreview(), SpecialSearch\showInterwiki(), SpecialSearch\showInterwikiHit(), SpecialBookSources\showList(), SpecialBlockList\showList(), SpecialUndelete\showList(), SpecialMergeHistory\showMergeForm(), SpecialProtectedpages\showOptions(), SpecialProtectedtitles\showOptions(), SpecialPrefixindex\showPrefixChunk(), SpecialUpload\showRecoverableUploadError(), EmailConfirmation\showRequestForm(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialTags\showTagList(), SpecialEditWatchlist\showTitles(), SpecialUpload\showUploadError(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialSearch\startsWithAll(), SpecialRevisionDelete\submit(), SpecialEditWatchlist\submitClear(), SpecialEditWatchlist\submitNormal(), SpecialEditWatchlist\submitRaw(), EmailConfirmation\submitSend(), SpecialLinkAccounts\success(), SpecialEditTags\success(), SpecialRevisionDelete\success(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), LoginFormPreAuthManager\successfulCreation(), LoginFormPreAuthManager\successfulLogin(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), SpecialUndelete\undelete(), LoginFormPreAuthManager\userBlockedMessage(), SpecialEmailUser\userForm(), SpecialChangeContentModel\validateTitle(), and SpecialWhatLinksHere\whatlinkshereForm().

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 540 of file SpecialPage.php.

References $wgContLang, getName(), getOutput(), global, including(), and msg().

Referenced by SpecialRedirect\alterForm(), SpecialListFiles\execute(), SpecialNewFiles\execute(), SpecialSpecialpages\execute(), SpecialContributions\execute(), SpecialLog\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialUnlinkAccounts\execute(), SpecialPreferences\execute(), SpecialExport\execute(), SpecialLinkAccounts\execute(), SpecialUserlogoutPreAuthManager\execute(), SpecialUserLogout\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), DeletedContributionsPage\execute(), SpecialBlockList\execute(), SpecialPagesWithProp\execute(), SpecialUnblock\execute(), SpecialWhatLinksHere\execute(), SpecialListUsers\execute(), ChangesListSpecialPage\execute(), SpecialActiveUsers\execute(), SpecialBookSources\execute(), SpecialAllMessages\execute(), SpecialComparePages\execute(), SpecialVersion\execute(), SpecialPrefixindex\execute(), SpecialTags\execute(), SpecialMergeHistory\execute(), SpecialTrackingCategories\execute(), SpecialAllPages\execute(), SpecialEditTags\execute(), SpecialImport\execute(), SpecialCategories\execute(), MovePageForm\execute(), SpecialChangeCredentials\execute(), UserrightsPage\execute(), LinkSearchPage\execute(), SpecialEditWatchlist\execute(), FileDuplicateSearchPage\execute(), SpecialSearch\execute(), SpecialEmailUser\execute(), SpecialRevisionDelete\execute(), SpecialNewpages\execute(), MIMEsearchPage\execute(), SpecialUpload\execute(), execute(), QueryPage\execute(), SpecialUndelete\execute(), and SpecialUploadStash\showUploads().

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 432 of file SpecialPage.php.

References $limit.

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 405 of file SpecialPage.php.

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

Referenced by SpecialPageLanguage\prefixSearchSubpages(), SpecialChangeContentModel\prefixSearchSubpages(), SpecialRecentChangesLinked\prefixSearchSubpages(), SpecialPrefixindex\prefixSearchSubpages(), SpecialAllPages\prefixSearchSubpages(), SpecialWhatLinksHere\prefixSearchSubpages(), MovePageForm\prefixSearchSubpages(), and SpecialUndelete\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 array( "bar", "baz" )
  • prefixSearchSubpages( "f" ) should return array( "foo" )
  • prefixSearchSubpages( "z" ) should return array()
  • prefixSearchSubpages( "" ) should return array( 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

Definition at line 377 of file SpecialPage.php.

References $limit, and getSubpagesForPrefixSearch().

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 293 of file SpecialPage.php.

References getUser().

Referenced by SpecialChangePasswordPreAuthManager\checkExecutePermissions(), SpecialChangeEmailPreAuthManager\checkExecutePermissions(), SpecialChangeEmail\checkExecutePermissions(), SpecialPreferences\execute(), SpecialWatchlist\execute(), EmailConfirmation\execute(), SpecialBotPasswords\execute(), SpecialResetTokens\execute(), and SpecialEditWatchlist\execute().

SpecialPage::run (   $subPage)
final

Entry point.

Since
1.20
Parameters
string | null$subPage

Definition at line 462 of file SpecialPage.php.

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

SpecialPage::setContext (   $context)

Sets the context this SpecialPage is executed in.

Parameters
IContextSource$context
Since
1.18

Definition at line 595 of file SpecialPage.php.

References $context.

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

SpecialPage::setHeaders ( )

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

Definition at line 441 of file SpecialPage.php.

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

Referenced by SpecialListFiles\execute(), SpecialNewFiles\execute(), SpecialApiSandbox\execute(), SpecialJavaScriptTest\execute(), SpecialSpecialpages\execute(), SpecialBlankpage\execute(), SpecialContributions\execute(), SpecialLog\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialUnlinkAccounts\execute(), SpecialUserlogoutPreAuthManager\execute(), SpecialPreferences\execute(), SpecialExport\execute(), SpecialStatistics\execute(), SpecialUserLogout\execute(), SpecialLinkAccounts\execute(), SpecialListGrants\execute(), EmailInvalidation\execute(), SpecialListGroupRights\execute(), DeletedContributionsPage\execute(), SpecialPagesWithProp\execute(), SpecialBlockList\execute(), SpecialUnblock\execute(), SpecialListUsers\execute(), SpecialWhatLinksHere\execute(), SpecialActiveUsers\execute(), ChangesListSpecialPage\execute(), SpecialBookSources\execute(), SpecialAllMessages\execute(), SpecialComparePages\execute(), EmailConfirmation\execute(), SpecialVersion\execute(), SpecialTags\execute(), SpecialPrefixindex\execute(), SpecialMergeHistory\execute(), SpecialExpandTemplates\execute(), RandomPage\execute(), SpecialTrackingCategories\execute(), SpecialAllPages\execute(), SpecialEditTags\execute(), SpecialImport\execute(), SpecialCategories\execute(), MovePageForm\execute(), SpecialChangeCredentials\execute(), UserrightsPage\execute(), LinkSearchPage\execute(), SpecialEditWatchlist\execute(), FileDuplicateSearchPage\execute(), SpecialSearch\execute(), SpecialEmailUser\execute(), SpecialRevisionDelete\execute(), SpecialNewpages\execute(), MIMEsearchPage\execute(), FormSpecialPage\execute(), SpecialUpload\execute(), LoginSignupSpecialPage\execute(), LoginFormPreAuthManager\execute(), execute(), QueryPage\execute(), SpecialUndelete\execute(), and SpecialUploadStash\showUploads().

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 156 of file SpecialPage.php.

References wfSetVar().

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?

Definition at line 244 of file SpecialPage.php.

References User\isAllowed().

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

SpecialPage::useTransactionalTimeLimit ( )
protected

Member Data Documentation

IContextSource SpecialPage::$mContext
protected

Current request context.

Definition at line 61 of file SpecialPage.php.

Referenced by getContext().

SpecialPage::$mIncludable
protected

Definition at line 55 of file SpecialPage.php.

Referenced by isIncludable().

SpecialPage::$mIncluding
protected

Definition at line 52 of file SpecialPage.php.

SpecialPage::$mListed
private

Definition at line 49 of file SpecialPage.php.

Referenced by isListed().

SpecialPage::$mLocalName
private

Definition at line 42 of file SpecialPage.php.

Referenced by getLocalName().

SpecialPage::$mName
protected

Definition at line 39 of file SpecialPage.php.

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

SpecialPage::$mRestriction
protected

Definition at line 46 of file SpecialPage.php.

Referenced by getRestriction().


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