MediaWiki fundraising/REL1_35
|
Parent class for all special pages. More...
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. | |
addHelpLink ( $to, $overrideBaseUrl=false) | |
Adds help link with an icon via page indicators. | |
checkPermissions () | |
Checks if userCanExecute, and if not throws a PermissionsError. | |
checkReadOnly () | |
If the wiki is currently in readonly mode, throws a ReadOnlyError. | |
doesWrites () | |
Indicates whether this special page may perform database writes. | |
execute ( $subPage) | |
Default execute method Checks user permissions. | |
getConfig () | |
Shortcut to get main config object. | |
getContext () | |
Gets the context this SpecialPage is executed in. | |
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. | |
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. | |
getFullTitle () | |
Return the full title, including $par. | |
getLanguage () | |
Shortcut to get user's language. | |
getLinkRenderer () | |
getLocalName () | |
Get the localised name of the special page Stable to override. | |
getName () | |
Get the name of this Special Page. | |
getOutput () | |
Get the OutputPage being used for this instance. | |
getPageTitle ( $subpage=false) | |
Get a self-referential title object. | |
getRequest () | |
Get the WebRequest being used for this instance. | |
getRestriction () | |
Get the permission that a user must have to execute this page. | |
getSkin () | |
Shortcut to get the skin being used for this instance. | |
getUser () | |
Shortcut to get the User executing this instance. | |
including ( $x=null) | |
Whether the special page is being evaluated via transclusion. | |
isCached () | |
Is this page cached? Expensive pages are cached or disabled in miser mode. | |
isExpensive () | |
Is this page expensive (for some definition of expensive)? Expensive pages are disabled or cached in miser mode. | |
isIncludable () | |
Whether it's allowed to transclude the special page via {{Special:Foo/params}} Stable to override. | |
isListed () | |
Whether this special page is listed in Special:SpecialPages Stable to override. | |
isRestricted () | |
Can be overridden by subclasses with more complicated permissions schemes. | |
listed ( $x=null) | |
Get or set whether this special page is listed in Special:SpecialPages. | |
maxIncludeCacheTime () | |
How long to cache page when it is being included. | |
msg ( $key,... $params) | |
Wrapper around wfMessage that sets the current context. | |
prefixSearchSubpages ( $search, $limit, $offset) | |
Return an array of subpages beginning with $search that this special page will accept. | |
requireLogin ( $reasonMsg='exception-nologin-text', $titleMsg='exception-nologin') | |
If the user is not logged in, throws UserNotLoggedIn error. | |
run ( $subPage) | |
Entry point. | |
setContext ( $context) | |
Sets the context this SpecialPage is executed in. | |
setHookContainer (HookContainer $hookContainer) | |
setLinkRenderer (LinkRenderer $linkRenderer) | |
setListed ( $listed) | |
Set whether this page is listed in Special:Specialpages, at run-time. | |
userCanExecute (User $user) | |
Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction). | |
Static Public Member Functions | |
static | getSafeTitleFor ( $name, $subpage=false) |
Get a localised Title object for a page name with a possibly unvalidated subpage. | |
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. | |
static | getTitleValueFor ( $name, $subpage=false, $fragment='') |
Get a localised TitleValue object for a specified special page name. | |
Protected Member Functions | |
addFeedLinks ( $params) | |
Adds RSS/atom links. | |
afterExecute ( $subPage) | |
Gets called after. | |
beforeExecute ( $subPage) | |
Gets called before. | |
buildPrevNextNavigation ( $offset, $limit, array $query=[], $atend=false, $subpage=false) | |
Generate (prev x| next x) (20|50|100...) type links for paging. | |
checkLoginSecurityLevel ( $level=null) | |
Verifies that the user meets the security level, possibly reauthenticating them in the process. | |
displayRestrictionError () | |
Output an error message telling the user what access level they have to have Stable to override. | |
getCacheTTL () | |
Stable to override. | |
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'. | |
getHookContainer () | |
getHookRunner () | |
getLanguageConverter () | |
Shortcut to get language's converter. | |
getLoginSecurityLevel () | |
Tells if the special page does something security-sensitive and needs extra defense against a stolen account (e.g. | |
getRobotPolicy () | |
Return the robot policy. | |
getSubpagesForPrefixSearch () | |
Return an array of subpages that this special page will accept for prefix searches. | |
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. | |
prefixSearchString ( $search, $limit, $offset) | |
Perform a regular substring search for prefixSearchSubpages. | |
setHeaders () | |
Sets headers - this should be called from the execute() method of all derived classes! Stable to override. | |
setReauthPostData (array $data) | |
Record preserved POST data after a reauthentication. | |
useTransactionalTimeLimit () | |
Call wfTransactionalTimeLimit() if this request was POSTed. | |
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). | |
Protected Attributes | |
IContextSource | $mContext |
Current request context. | |
$mIncludable | |
$mIncluding | |
$mName | |
$mRestriction | |
Private Attributes | |
HookContainer null | $hookContainer |
HookRunner null | $hookRunner |
MediaWiki Linker LinkRenderer null | $linkRenderer |
$mListed | |
$mLocalName | |
Parent class for all special pages.
Includes some static functions for handling the special page list deprecated in favor of SpecialPageFactory.
Stable to extend
Definition at line 41 of file SpecialPage.php.
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()
Stable to call
string | $name | Name of the special page, as seen in links and URLs |
string | $restriction | User right required, e.g. "block" or "delete" |
bool | $listed | Whether the page is listed in Special:Specialpages |
callable | bool | $function | Unused |
string | $file | Unused |
bool | $includable | Whether the page can be included in normal pages |
Definition at line 150 of file SpecialPage.php.
|
protected |
Adds RSS/atom links.
array | $params |
Definition at line 846 of file SpecialPage.php.
References wfAppendQuery(), and wfScript().
Referenced by SpecialContributions\execute(), and SpecialWatchlist\outputFeedLinks().
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'.
string | $to | Target MediaWiki.org page title or encoded URL. |
bool | $overrideBaseUrl | Whether $url is a full URL, to avoid MW.o. |
Definition at line 864 of file SpecialPage.php.
Referenced by SpecialUncategorizedImages\__construct(), SpecialUncategorizedPages\__construct(), SpecialBlock\alterForm(), SpecialChangeContentModel\alterForm(), SpecialAllMessages\execute(), SpecialApiSandbox\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialBotPasswords\execute(), SpecialBrokenRedirects\execute(), SpecialCategories\execute(), SpecialComparePages\execute(), SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialDoubleRedirects\execute(), SpecialExport\execute(), SpecialLinkSearch\execute(), SpecialListDuplicatedFiles\execute(), SpecialListFiles\execute(), SpecialListGroupRights\execute(), SpecialListRedirects\execute(), SpecialLog\execute(), SpecialMIMESearch\execute(), SpecialMute\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialSpecialpages\execute(), SpecialTags\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), SpecialUnwatchedPages\execute(), SpecialUpload\execute(), UserrightsPage\execute(), SpecialWhatLinksHere\execute(), SpecialExpandTemplates\execute(), SpecialRecentChanges\execute(), SpecialWatchlist\execute(), SpecialRecentChangesLinked\getExtraOptions(), SpecialRandomInCategory\getFormFields(), SpecialSearch\setupPage(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showMergeForm(), SpecialDiff\showNoRedirectPage(), SpecialNewSection\showNoRedirectPage(), and SpecialPermanentLink\showNoRedirectPage().
|
protected |
Gets called after.
Stable to override
string | null | $subPage |
Reimplemented in SpecialCachedPage.
Definition at line 628 of file SpecialPage.php.
Referenced by run().
|
protected |
Gets called before.
Stable to override
string | null | $subPage |
Reimplemented in AuthManagerSpecialPage, LoginSignupSpecialPage, and SpecialUserLogin.
Definition at line 616 of file SpecialPage.php.
Referenced by run().
|
protected |
Generate (prev x| next x) (20|50|100...) type links for paging.
int | $offset | |
int | $limit | |
array | $query | Optional URL query parameter string |
bool | $atend | Optional param for specified if this is the last page |
string | bool | $subpage | Optional param for specifying subpage |
Definition at line 970 of file SpecialPage.php.
References $title.
Referenced by QueryPage\execute(), and SpecialSearch\showResults().
|
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:
Note that this does not in any way check that the user is authorized to use this special page (use checkPermissions() for that).
string | null | $level | A security level. Can be an arbitrary string, defaults to the page name. |
ErrorPageError | If the security level cannot be met, even with reauthentication. |
Definition at line 436 of file SpecialPage.php.
References $title, MWCryptRand\generateHex(), getFullTitle(), getName(), getOutput(), getRequest(), getTitleFor(), PROTO_HTTPS, setReauthPostData(), wfArrayToCgi(), and wfMessage().
Referenced by FormSpecialPage\execute(), and execute().
SpecialPage::checkPermissions | ( | ) |
Checks if userCanExecute, and if not throws a PermissionsError.
Stable to override
PermissionsError |
Reimplemented in SpecialCreateAccount, and SpecialUndelete.
Definition at line 343 of file SpecialPage.php.
References displayRestrictionError(), getUser(), and userCanExecute().
Referenced by FormSpecialPage\checkExecutePermissions(), SpecialConfirmEmail\execute(), SpecialEmailInvalidate\execute(), SpecialEditWatchlist\execute(), QueryPage\execute(), SpecialDeletedContributions\execute(), SpecialEditTags\execute(), SpecialMergeHistory\execute(), SpecialRevisionDelete\execute(), SpecialUnblock\execute(), LoginSignupSpecialPage\execute(), execute(), SpecialUploadStash\execute(), and SpecialWatchlist\execute().
SpecialPage::checkReadOnly | ( | ) |
If the wiki is currently in readonly mode, throws a ReadOnlyError.
ReadOnlyError |
Definition at line 356 of file SpecialPage.php.
References wfReadOnly().
Referenced by FormSpecialPage\checkExecutePermissions(), SpecialConfirmEmail\execute(), SpecialEmailInvalidate\execute(), SpecialEditWatchlist\execute(), SpecialEditTags\execute(), SpecialImport\execute(), SpecialMergeHistory\execute(), MovePageForm\execute(), SpecialPreferences\execute(), SpecialRevisionDelete\execute(), SpecialUnblock\execute(), SpecialUpload\execute(), UserrightsPage\execute(), SpecialUndelete\showHistory(), and SpecialUndelete\undelete().
|
protected |
Output an error message telling the user what access level they have to have Stable to override.
PermissionsError |
Definition at line 331 of file SpecialPage.php.
Referenced by checkPermissions(), and SpecialUndelete\checkPermissions().
SpecialPage::doesWrites | ( | ) |
Indicates whether this special page may perform database writes.
Stable to override
Reimplemented in SpecialBlock, SpecialChangeContentModel, SpecialChangeCredentials, SpecialChangeEmail, SpecialConfirmEmail, SpecialCreateAccount, SpecialEditTags, SpecialEditWatchlist, SpecialEmailInvalidate, SpecialEmailUser, SpecialImport, SpecialLockdb, SpecialMergeHistory, MovePageForm, SpecialPageLanguage, SpecialPasswordReset, SpecialPreferences, SpecialResetTokens, SpecialRevisionDelete, SpecialRunJobs, SpecialUnblock, SpecialUndelete, SpecialUnlockdb, SpecialUpload, SpecialUploadStash, SpecialUserLogin, SpecialUserLogout, UserrightsPage, and SpecialWatchlist.
Definition at line 912 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
Stable to override
string | null | $subPage |
Reimplemented in SpecialConfirmEmail, SpecialEmailInvalidate, SpecialBookSources, SpecialEditWatchlist, DlocalGateway, GatewayPage, GatewayChooser, SystemStatus, FormSpecialPage, QueryPage, SpecialActiveUsers, SpecialAllMessages, SpecialAllPages, SpecialApiHelp, SpecialApiSandbox, SpecialAutoblockList, SpecialBlankpage, SpecialBlockList, SpecialBotPasswords, SpecialBrokenRedirects, SpecialCategories, SpecialChangeEmail, SpecialComparePages, SpecialContributions, SpecialDeletedContributions, SpecialDoubleRedirects, SpecialEditTags, SpecialEmailUser, SpecialExport, SpecialFileDuplicateSearch, SpecialGoToInterwiki, SpecialImport, SpecialJavaScriptTest, SpecialLinkSearch, SpecialListDuplicatedFiles, SpecialListFiles, SpecialListGrants, SpecialListGroupRights, SpecialListRedirects, SpecialListUsers, SpecialLog, SpecialMergeHistory, SpecialMIMESearch, MovePageForm, SpecialMute, SpecialNewFiles, SpecialNewpages, SpecialPagesWithProp, SpecialPasswordPolicies, SpecialPasswordReset, SpecialPreferences, SpecialPrefixindex, SpecialProtectedpages, SpecialProtectedtitles, RandomPage, SpecialResetTokens, SpecialRevisionDelete, SpecialSearch, SpecialSpecialpages, SpecialStatistics, SpecialTags, SpecialTrackingCategories, SpecialUnblock, SpecialUndelete, SpecialUnwatchedPages, SpecialUpload, SpecialUserLogout, UserrightsPage, SpecialVersion, WantedPagesPage, SpecialWhatLinksHere, SpecialWithoutInterwiki, SpecialRunJobs, FundraiserMaintenance, FundraiserSubscriptionPage, EmailPreferences, ChangesListSpecialPage, DisabledSpecialPage, LoginSignupSpecialPage, RedirectSpecialPage, SpecialChangeCredentials, SpecialExpandTemplates, SpecialLinkAccounts, SpecialPageData, SpecialRecentChanges, SpecialUnlinkAccounts, SpecialUploadStash, and SpecialWatchlist.
Definition at line 642 of file SpecialPage.php.
References checkLoginSecurityLevel(), checkPermissions(), getLoginSecurityLevel(), outputHeader(), and setHeaders().
Referenced by run().
|
protected |
Stable to override.
Reimplemented in SpecialNewpages, and SpecialRecentChanges.
Definition at line 242 of file SpecialPage.php.
Referenced by maxIncludeCacheTime().
SpecialPage::getConfig | ( | ) |
Shortcut to get main config object.
Definition at line 794 of file SpecialPage.php.
References getContext().
Referenced by SpecialRecentChanges\__construct(), SpecialWatchlist\__construct(), SpecialEditWatchlist\__construct(), SpecialPasswordReset\alterForm(), SpecialNewFiles\buildForm(), SpecialBotPasswords\checkExecutePermissions(), SpecialLockdb\checkExecutePermissions(), SpecialUnlockdb\checkExecutePermissions(), GatewayPage\displayFailPage(), SpecialImport\doImport(), SpecialWatchlist\doMainQuery(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), GatewayPage\execute(), GatewayChooser\execute(), SystemStatus\execute(), QueryPage\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), SpecialImport\execute(), SpecialLinkSearch\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialLog\execute(), SpecialPasswordPolicies\execute(), SpecialSearch\execute(), SpecialTrackingCategories\execute(), SpecialWhatLinksHere\execute(), SpecialRunJobs\execute(), FundraiserMaintenance\execute(), EmailPreferences\execute(), ChangesListSpecialPage\execute(), SpecialExpandTemplates\execute(), SpecialWatchlist\execute(), UserrightsPage\fetchUser(), LoginSignupSpecialPage\getAuthForm(), QueryPage\getDBLimit(), SpecialBlock\getFormFields(), SpecialPageLanguage\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialStatistics\getGroupStats(), SpecialActiveUsers\getIntroText(), SpecialProtectedpages\getLevelMenu(), SpecialProtectedtitles\getLevelMenu(), QueryPage\getLimitOffset(), ChangesListSpecialPage\getLinkDays(), SpecialImport\getMappingFormPart(), QueryPage\getMaxResults(), SpecialUnusedImages\getPageHeader(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), SpecialStatistics\getPageStats(), SpecialLinkSearch\getQueryInfo(), SpecialShortPages\getQueryInfo(), SpecialUnusedImages\getQueryInfo(), WantedPagesPage\getQueryInfo(), SpecialChangeCredentials\getRequestBlacklist(), SpecialLinkAccounts\getRequestBlacklist(), SpecialRemoveCredentials\getRequestBlacklist(), SpecialUnlinkAccounts\getRequestBlacklist(), SpecialResetTokens\getTokensList(), SpecialStatistics\getUserStats(), SpecialSearch\goResult(), ChangesListSpecialPage\includeRcFiltersApp(), QueryPage\isCached(), QueryPage\isExpensive(), SpecialBotPasswords\isListed(), SpecialLinkSearch\linkParameters(), LoginSignupSpecialPage\loadRequestParameters(), maxIncludeCacheTime(), SpecialLockdb\onSubmit(), SpecialUnlockdb\onSubmit(), SpecialPasswordReset\onSuccess(), SpecialAllPages\outputHTMLForm(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialUploadStash\outputThumbFromStash(), EmailPreferences\paramsForPreferencesForm(), SpecialBlock\preText(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), ChangesListSpecialPage\registerFilters(), SpecialJavaScriptTest\renderPage(), SpecialBotPasswords\save(), AmazonGateway\setClientVariables(), setHeaders(), MovePageForm\showForm(), SpecialImport\showForm(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialWhatLinksHere\showIndirectLinks(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialUndelete\undelete(), SpecialExport\validateLinkDepth(), and ChangesListSpecialPage\validateOptions().
SpecialPage::getContext | ( | ) |
Gets the context this SpecialPage is executed in.
Definition at line 717 of file SpecialPage.php.
References $mContext, and wfDebug().
Referenced by MergeHistoryPager\__construct(), SpecialBookSources\buildForm(), SpecialActiveUsers\buildForm(), SpecialUndelete\diffHeader(), SpecialImport\doImport(), SpecialTags\doTagRow(), GatewayPage\execute(), SpecialActiveUsers\execute(), SpecialAllMessages\execute(), SpecialApiHelp\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialComparePages\execute(), SpecialDeletedContributions\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), SpecialFileDuplicateSearch\execute(), SpecialLinkSearch\execute(), SpecialListFiles\execute(), SpecialListUsers\execute(), SpecialNewFiles\execute(), SpecialPagesWithProp\execute(), SpecialPreferences\execute(), SpecialStatistics\execute(), SpecialUnblock\execute(), FundraiserSubscriptionPage\execute(), SpecialExpandTemplates\execute(), SpecialListGroupRights\formatPermissions(), SpecialFewestRevisions\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialMostLinked\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialMostLinkedTemplates\formatResult(), SpecialShortPages\formatResult(), SpecialUnwatchedPages\formatResult(), PageQueryPage\formatResult(), SpecialProtectedtitles\formatRow(), SpecialExpandTemplates\generateHtml(), AuthManagerSpecialPage\getAuthForm(), LoginSignupSpecialPage\getAuthForm(), FormSpecialPage\getForm(), getLanguage(), SpecialEditTags\getList(), SpecialRevisionDelete\getList(), getOutput(), SpecialMIMESearch\getPageHeader(), SpecialWithoutInterwiki\getPageHeader(), AuthManagerSpecialPage\getRequest(), getRequest(), getSkin(), FundraiserSubscriptionPage\getTemplateParams(), getUser(), SpecialExpandTemplates\makeForm(), ChangesListBooleanFilter\modifyQuery(), ChangesListStringOptionsFilterGroup\modifyQuery(), SpecialPrefixindex\namespacePrefixForm(), SpecialChangeContentModel\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialWatchlist\outputChangesList(), SpecialAllPages\outputHTMLForm(), ImageQueryPage\outputResults(), SpecialTags\processCreateTagForm(), SpecialEmailUser\sendEmailForm(), Gateway_Form\setGatewayPage(), AuthManagerSpecialPage\setRequest(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), SpecialLog\show(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialTags\showDeleteTagForm(), SpecialUndelete\showDiff(), UserrightsPage\showEditUserGroupsForm(), SpecialRedirectWithAction\showForm(), SpecialDiff\showForm(), SpecialNewSection\showForm(), SpecialPermanentLink\showForm(), SpecialUndelete\showList(), SpecialProtectedtitles\showOptions(), SpecialProtectedpages\showOptions(), SpecialConfirmEmail\showRequestForm(), SpecialPreferences\showResetForm(), LoginSignupSpecialPage\showReturnToPage(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialUploadStash\showUploads(), SpecialPreferences\submitReset(), SpecialUserLogin\successfulAction(), and SpecialEmailUser\userForm().
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.
Stable to override
Reimplemented in SpecialCreateAccount, SpecialDiff, SpecialEditTags, SpecialEmailUser, SpecialMute, and SpecialUserLogin.
Definition at line 686 of file SpecialPage.php.
References msg().
Referenced by 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.
Definition at line 889 of file SpecialPage.php.
SpecialPage::getFullTitle | ( | ) |
Return the full title, including $par.
Definition at line 804 of file SpecialPage.php.
References getContext().
Referenced by checkLoginSecurityLevel(), LoginSignupSpecialPage\execute(), AuthManagerSpecialPage\getAuthForm(), and AuthManagerSpecialPage\handleReauthBeforeExecute().
|
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'.
Stable to override
Reimplemented in ChangesListSpecialPage, LoginSignupSpecialPage, SpecialRedirectWithAction, SpecialActiveUsers, SpecialAllMessages, SpecialAllPages, SpecialAncientPages, SpecialApiSandbox, SpecialAutoblockList, SpecialBlock, SpecialBlockList, SpecialBookSources, SpecialBotPasswords, SpecialBrokenRedirects, SpecialCategories, SpecialChangeContentModel, SpecialChangeCredentials, SpecialChangeEmail, SpecialComparePages, SpecialContributions, SpecialCreateAccount, SpecialDeadendPages, SpecialDeletedContributions, SpecialDiff, SpecialDoubleRedirects, SpecialEditTags, SpecialEmailUser, SpecialExpandTemplates, SpecialExport, SpecialFewestRevisions, SpecialFileDuplicateSearch, SpecialFilepath, SpecialGoToInterwiki, SpecialImport, SpecialJavaScriptTest, SpecialLinkAccounts, SpecialLinkSearch, SpecialListDuplicatedFiles, SpecialListFiles, SpecialListGrants, SpecialListGroupRights, SpecialListRedirects, SpecialListUsers, SpecialLockdb, SpecialLog, SpecialLonelyPages, SpecialLongPages, SpecialMediaStatistics, SpecialMergeHistory, SpecialMIMESearch, SpecialMostCategories, MostimagesPage, SpecialMostInterwikis, SpecialMostLinked, SpecialMostLinkedCategories, SpecialMostLinkedTemplates, SpecialMostRevisions, MovePageForm, SpecialNewFiles, SpecialNewpages, SpecialNewSection, SpecialPageLanguage, SpecialPagesWithProp, SpecialPasswordPolicies, SpecialPasswordReset, SpecialPermanentLink, SpecialPreferences, SpecialPrefixindex, SpecialProtectedpages, SpecialProtectedtitles, SpecialRandomInCategory, RandomPage, SpecialRedirect, SpecialResetTokens, SpecialRevisionDelete, SpecialSearch, SpecialShortPages, SpecialStatistics, SpecialTags, SpecialTrackingCategories, SpecialUnblock, SpecialUncategorizedImages, SpecialUncategorizedPages, SpecialUndelete, SpecialUnlinkAccounts, SpecialUnlockdb, SpecialUnusedCategories, SpecialUnusedImages, SpecialUnusedTemplates, SpecialUnwatchedPages, SpecialUpload, SpecialUserLogin, SpecialUserLogout, UserrightsPage, SpecialVersion, SpecialWantedCategories, WantedFilesPage, WantedPagesPage, SpecialWantedTemplates, SpecialWhatLinksHere, and SpecialWithoutInterwiki.
Definition at line 926 of file SpecialPage.php.
|
protected |
Definition at line 997 of file SpecialPage.php.
Referenced by GatewayPage\displayForm(), SpecialSearch\showResults(), and SpecialUndelete\showRevision().
|
protected |
Definition at line 1010 of file SpecialPage.php.
Referenced by RedirectSpecialArticle\__construct(), ChangesListSpecialPage\__construct(), SpecialPageLanguage\alterForm(), SpecialChangeEmail\attemptChange(), UserrightsPage\doSaveUserGroups(), MovePageForm\doSubmit(), SpecialContributions\execute(), SpecialImport\execute(), SpecialLog\execute(), SpecialSearch\execute(), SpecialStatistics\execute(), SpecialTrackingCategories\execute(), SpecialUpload\execute(), AuthManagerSpecialPage\fieldInfoToFormDescriptor(), FormSpecialPage\getForm(), SpecialBlock\getFormFields(), RandomPage\getQueryInfo(), SpecialAncientPages\getQueryInfo(), SpecialLonelyPages\getQueryInfo(), SpecialShortPages\getQueryInfo(), WantedPagesPage\getQueryInfo(), RandomPage\getRandomTitle(), SpecialSearch\getSearchProfiles(), SpecialResetTokens\getTokensList(), SpecialSearch\goResult(), SpecialWhatLinksHere\listItem(), SpecialMute\onSubmit(), SpecialUserLogout\onSuccess(), AuthManagerSpecialPage\performAuthenticationStep(), SpecialBlock\preText(), SpecialUpload\processUpload(), ChangesListSpecialPage\registerFilters(), SpecialWatchlist\registerFilters(), run(), ChangesListSpecialPage\runMainQueryHook(), SpecialEmailUser\sendEmailForm(), SpecialNewpages\setup(), SpecialSearch\showCreateLink(), SpecialUndelete\showHistory(), SpecialBookSources\showList(), SpecialAutoblockList\showList(), SpecialBlockList\showList(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), AuthManagerSpecialPage\trySubmit(), and SpecialUndelete\undelete().
SpecialPage::getLanguage | ( | ) |
Shortcut to get user's language.
Definition at line 774 of file SpecialPage.php.
References getContext().
Referenced by SpecialEditTags\buildCheckBoxes(), FormSpecialPage\checkExecutePermissions(), SpecialUndelete\diffHeader(), SpecialTags\doTagRow(), QueryPage\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialFileDuplicateSearch\execute(), SpecialLinkSearch\execute(), SpecialTrackingCategories\execute(), UserrightsPage\execute(), SpecialNewpages\filterLinks(), SpecialMyLanguage\findTitle(), SpecialUndelete\formatFileRow(), SpecialListGroupRights\formatPermissions(), SpecialPasswordPolicies\formatPolicies(), WantedQueryPage\formatResult(), SpecialAncientPages\formatResult(), SpecialBrokenRedirects\formatResult(), SpecialDoubleRedirects\formatResult(), SpecialFewestRevisions\formatResult(), SpecialFileDuplicateSearch\formatResult(), SpecialListRedirects\formatResult(), SpecialMIMESearch\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialMostLinked\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialMostLinkedTemplates\formatResult(), SpecialPagesWithProp\formatResult(), SpecialShortPages\formatResult(), SpecialUnusedTemplates\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialWantedCategories\formatResult(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialCachedPage\getCacheKey(), SpecialStatistics\getEditStats(), SpecialMediaStatistics\getExtensionList(), SpecialUndelete\getFileLink(), SpecialWhatLinksHere\getFilterPanel(), SpecialBotPasswords\getFormFields(), SpecialPageLanguage\getFormFields(), SpecialStatistics\getGroupStats(), SpecialStatistics\getOtherStats(), SpecialUndelete\getPageLink(), SpecialWhatLinksHere\getPrevNext(), SpecialDeletedContributions\getSubTitle(), FundraiserSubscriptionPage\getTemplateParams(), SpecialStatistics\getUserStats(), UserrightsPage\groupCheckboxes(), SpecialWhatLinksHere\listItem(), LoginSignupSpecialPage\makeLanguageSelector(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialEditWatchlist\outputSubtitle(), EmailPreferences\paramsForPreferencesForm(), SpecialNewpages\parseParams(), SpecialBlock\postText(), SpecialUpload\processVerificationError(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialRevisionDelete\showForm(), SpecialUndelete\showList(), SpecialConfirmEmail\showRequestForm(), SpecialUndelete\showRevision(), MovePageForm\showSubpagesList(), SpecialRevisionDelete\tryShowFile(), and SpecialWhatLinksHere\wlhLink().
|
protected |
Shortcut to get language's converter.
Definition at line 784 of file SpecialPage.php.
Referenced by SpecialAncientPages\formatResult(), SpecialFewestRevisions\formatResult(), SpecialMIMESearch\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialWantedCategories\formatResult(), and PageQueryPage\formatResult().
SpecialPage::getLinkRenderer | ( | ) |
Definition at line 944 of file SpecialPage.php.
Referenced by SpecialUndelete\diffHeader(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialAllMessages\execute(), SpecialCategories\execute(), SpecialContributions\execute(), SpecialListFiles\execute(), SpecialListGroupRights\execute(), SpecialNewFiles\execute(), SpecialPasswordPolicies\execute(), SpecialProtectedpages\execute(), SpecialTrackingCategories\execute(), SpecialNewpages\filterLinks(), WantedQueryPage\formatResult(), SpecialAncientPages\formatResult(), SpecialBrokenRedirects\formatResult(), SpecialDoubleRedirects\formatResult(), SpecialFewestRevisions\formatResult(), SpecialFileDuplicateSearch\formatResult(), SpecialLinkSearch\formatResult(), SpecialListRedirects\formatResult(), SpecialMIMESearch\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialMostLinked\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialMostLinkedTemplates\formatResult(), SpecialPagesWithProp\formatResult(), SpecialShortPages\formatResult(), SpecialUncategorizedCategories\formatResult(), SpecialUnusedCategories\formatResult(), SpecialUnusedTemplates\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialWantedCategories\formatResult(), PageQueryPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileLink(), SpecialBotPasswords\getFormFields(), SpecialEmailUser\getFormFields(), SpecialStatistics\getGroupStats(), SpecialUndelete\getPageLink(), SpecialStatistics\getPageStats(), SpecialDeletedContributions\getSubTitle(), SpecialUpload\getUploadForm(), SpecialStatistics\getUserStats(), SpecialWhatLinksHere\listItem(), LoginSignupSpecialPage\load(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialWhatLinksHere\makeSelfLink(), SpecialMostLinked\makeWlhLink(), WantedQueryPage\makeWlhLink(), SpecialMostLinkedTemplates\makeWlhLink(), SpecialMergeHistory\merge(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialSpecialpages\outputPageList(), SpecialEditWatchlist\outputSubtitle(), SpecialMediaStatistics\outputTableRow(), SpecialBlock\postText(), SpecialLog\show(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialRevisionDelete\showForm(), SpecialWhatLinksHere\showIndirectLinks(), SpecialUndelete\showList(), SpecialPrefixindex\showPrefixChunk(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialChangeCredentials\showSubpageList(), MovePageForm\showSubpagesList(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialUndelete\undelete(), and SpecialWhatLinksHere\wlhLink().
SpecialPage::getLocalName | ( | ) |
Get the localised name of the special page Stable to override.
Definition at line 260 of file SpecialPage.php.
References $mLocalName.
|
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. Stable to override
Reimplemented in AuthManagerSpecialPage, SpecialBotPasswords, SpecialChangeEmail, SpecialCreateAccount, SpecialUnlinkAccounts, and SpecialUserLogin.
Definition at line 389 of file SpecialPage.php.
Referenced by FormSpecialPage\execute(), and execute().
SpecialPage::getName | ( | ) |
Get the name of this Special Page.
Reimplemented in SpecialDiff.
Definition at line 164 of file SpecialPage.php.
References $mName.
Referenced by checkLoginSecurityLevel(), QueryPage\delete(), QueryPage\execute(), RandomPage\execute(), QueryPage\fetchFromCache(), QueryPage\getCachedTimestamp(), FormSpecialPage\getForm(), SpecialEmailUser\getFormFields(), AuthManagerSpecialPage\getLoginSecurityLevel(), SpecialBotPasswords\getLoginSecurityLevel(), SpecialChangeEmail\getLoginSecurityLevel(), FormSpecialPage\getMessagePrefix(), QueryPage\getRecacheDB(), SpecialAllMyUploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMypage\getRedirect(), SpecialMytalk\getRedirect(), SpecialMyuploads\getRedirect(), AuthManagerSpecialPage\getToken(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), LoginSignupSpecialPage\mainLoginForm(), SpecialBlock\maybeAlterFormDefaults(), SpecialBotPasswords\onSubmit(), SpecialLockdb\onSubmit(), SpecialChangeEmail\onSuccess(), outputHeader(), SpecialEditWatchlist\outputSubtitle(), QueryPage\recache(), ChangesListSpecialPage\runMainQueryHook(), LoginSignupSpecialPage\showSuccessPage(), and SpecialCreateAccount\successfulAction().
SpecialPage::getOutput | ( | ) |
Get the OutputPage being used for this instance.
Definition at line 744 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\__construct(), SpecialCachedPage\addCachedHTML(), SpecialLog\addHeader(), ChangesListSpecialPage\addModules(), SpecialRevisionDelete\addUsageText(), SpecialChangeContentModel\alterForm(), SpecialPageLanguage\alterForm(), SpecialConfirmEmail\attemptConfirm(), SpecialEmailInvalidate\attemptInvalidate(), AuthManagerSpecialPage\beforeExecute(), SpecialUserLogin\beforeExecute(), checkLoginSecurityLevel(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialRedirect\dispatch(), GatewayPage\displayFailPage(), GatewayPage\displayForm(), GatewayPage\displayResultsForDebug(), ResultSwitcher\displayThankYouPage(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), MovePageForm\doSubmit(), UserrightsPage\editUserGroupsForm(), SpecialConfirmEmail\execute(), SpecialBookSources\execute(), SpecialEditWatchlist\execute(), DlocalGateway\execute(), GatewayPage\execute(), GatewayChooser\execute(), QueryPage\execute(), SpecialActiveUsers\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialApiHelp\execute(), SpecialApiSandbox\execute(), SpecialAutoblockList\execute(), SpecialBlankpage\execute(), SpecialBlockList\execute(), SpecialBotPasswords\execute(), SpecialCategories\execute(), SpecialChangeEmail\execute(), SpecialComparePages\execute(), SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), SpecialFileDuplicateSearch\execute(), SpecialGoToInterwiki\execute(), SpecialImport\execute(), SpecialJavaScriptTest\execute(), SpecialLinkSearch\execute(), SpecialListFiles\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialListUsers\execute(), SpecialLog\execute(), SpecialMergeHistory\execute(), MovePageForm\execute(), SpecialMute\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPasswordReset\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), RandomPage\execute(), SpecialResetTokens\execute(), SpecialRevisionDelete\execute(), SpecialSearch\execute(), SpecialSpecialpages\execute(), SpecialStatistics\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), SpecialUnwatchedPages\execute(), UserrightsPage\execute(), SpecialWhatLinksHere\execute(), SpecialRunJobs\execute(), FundraiserMaintenance\execute(), FundraiserSubscriptionPage\execute(), EmailPreferences\execute(), ChangesListSpecialPage\execute(), DisabledSpecialPage\execute(), LoginSignupSpecialPage\execute(), RedirectSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialLinkAccounts\execute(), SpecialPageData\execute(), SpecialRecentChanges\execute(), SpecialUnlinkAccounts\execute(), SpecialWatchlist\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), SpecialJavaScriptTest\exportJS(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\form(), SpecialLog\getActionButtons(), SpecialChangeCredentials\getAuthFormDescriptor(), SpecialBlock\getFormFields(), SpecialDeletedContributions\getSubTitle(), AuthManagerSpecialPage\handleReauthBeforeExecute(), ResultSwitcher\handleResultRequest(), AuthManagerSpecialPage\handleReturnBeforeExecute(), ChangesListSpecialPage\includeRcFiltersApp(), LoginSignupSpecialPage\mainLoginForm(), SpecialBlock\maybeAlterFormDefaults(), SpecialMergeHistory\merge(), SpecialCachedPage\onCacheInitialized(), SpecialRedirectWithAction\onFormSubmit(), SpecialDiff\onFormSubmit(), SpecialNewSection\onFormSubmit(), SpecialPermanentLink\onFormSubmit(), SpecialBotPasswords\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialBlock\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialChangeEmail\onSuccess(), SpecialLockdb\onSuccess(), SpecialMute\onSuccess(), SpecialPageLanguage\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialResetTokens\onSuccess(), SpecialUnlockdb\onSuccess(), SpecialUserLogout\onSuccess(), SpecialWatchlist\outputChangesList(), outputHeader(), SpecialMediaStatistics\outputMediaType(), SpecialListGroupRights\outputNamespaceProtectionInfo(), ChangesListSpecialPage\outputNoResults(), SpecialRecentChangesLinked\outputNoResults(), SpecialSpecialpages\outputPageList(), SpecialMediaStatistics\outputResults(), SpecialEditWatchlist\outputSubtitle(), SpecialMediaStatistics\outputTableEnd(), SpecialMediaStatistics\outputTableRow(), SpecialMediaStatistics\outputTableStart(), ChangesListSpecialPage\outputTimeout(), SpecialBlock\postText(), SpecialBlock\preText(), SpecialPageLanguage\preText(), SpecialUpload\processUpload(), SpecialUndelete\redirectToRevDel(), GatewayPage\renderIframe(), EmailPreferences\renderQuery(), GatewayPage\renderResponse(), SpecialEmailUser\sendEmailForm(), GatewayPage\setHeaders(), setHeaders(), SpecialUserLogin\setHeaders(), EmailPreferences\setPageTitle(), SpecialNewFiles\setTopText(), SpecialRecentChangesLinked\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(), SpecialPageData\showForm(), SpecialRevisionDelete\showForm(), SpecialSearch\showGoogleSearch(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialWhatLinksHere\showIndirectLinks(), SpecialFileDuplicateSearch\showList(), SpecialBookSources\showList(), SpecialUndelete\showList(), SpecialAutoblockList\showList(), SpecialBlockList\showList(), MovePageForm\showLogFragment(), 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().
SpecialPage::getPageTitle | ( | $subpage = false | ) |
Get a self-referential title object.
string | bool | $subpage |
Definition at line 697 of file SpecialPage.php.
References getTitleFor().
Referenced by SpecialBookSources\buildForm(), SpecialActiveUsers\buildForm(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialUndelete\diffHeader(), SpecialTags\doTagRow(), SpecialApiHelp\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialEmailUser\execute(), SpecialFileDuplicateSearch\execute(), SpecialLinkSearch\execute(), SpecialPagesWithProp\execute(), SpecialSearch\execute(), SpecialWhatLinksHere\execute(), LoginSignupSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialWatchlist\execute(), SpecialNewpages\filterLinks(), SpecialUndelete\formatFileRow(), SpecialUndelete\formatRevisionRow(), LoginSignupSpecialPage\getAuthForm(), SpecialBotPasswords\getFormFields(), SpecialMIMESearch\getPageHeader(), UserrightsPage\getSuccessURL(), FundraiserSubscriptionPage\getTemplateParams(), SpecialUpload\getUploadForm(), AuthManagerSpecialPage\handleReturnBeforeExecute(), LoginSignupSpecialPage\load(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialPrefixindex\namespacePrefixForm(), SpecialDiff\onFormSubmit(), SpecialPermanentLink\onFormSubmit(), SpecialBotPasswords\onSubmit(), SpecialBotPasswords\onSuccess(), SpecialAllPages\outputHTMLForm(), AuthManagerSpecialPage\performAuthenticationStep(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialJavaScriptTest\renderPage(), SpecialSearch\setupPage(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialUndelete\showList(), 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().
SpecialPage::getRequest | ( | ) |
Get the WebRequest being used for this instance.
Reimplemented in AuthManagerSpecialPage.
Definition at line 734 of file SpecialPage.php.
References getContext().
Referenced by SpecialBlock\alterForm(), SpecialChangeEmail\alterForm(), SpecialPasswordReset\alterForm(), SpecialUserLogout\alterForm(), SpecialRevisionDelete\buildCheckBoxes(), SpecialActiveUsers\buildForm(), FormSpecialPage\checkExecutePermissions(), checkLoginSecurityLevel(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialRedirect\dispatchFile(), GatewayPage\displayResultsForDebug(), SpecialImport\doImport(), SpecialBookSources\execute(), SpecialEditWatchlist\execute(), GatewayPage\execute(), GatewayChooser\execute(), SpecialActiveUsers\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialApiHelp\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), SpecialFileDuplicateSearch\execute(), SpecialImport\execute(), SpecialLinkSearch\execute(), SpecialListFiles\execute(), SpecialLog\execute(), SpecialMIMESearch\execute(), MovePageForm\execute(), SpecialNewFiles\execute(), SpecialPagesWithProp\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), RandomPage\execute(), SpecialRevisionDelete\execute(), SpecialSearch\execute(), SpecialTags\execute(), SpecialUnblock\execute(), UserrightsPage\execute(), SpecialWhatLinksHere\execute(), SpecialWithoutInterwiki\execute(), SpecialRunJobs\execute(), EmailPreferences\execute(), ChangesListSpecialPage\execute(), SpecialExpandTemplates\execute(), SpecialPageData\execute(), SpecialRecentChanges\execute(), SpecialWatchlist\execute(), SpecialRevisionDelete\extractBitParams(), ChangesListSpecialPage\fetchOptionsFromRequest(), SpecialWatchlist\fetchOptionsFromRequest(), ChangesListSpecialPage\getDefaultOptions(), FormSpecialPage\getForm(), SpecialPasswordReset\getFormFields(), QueryPage\getLimitOffset(), GatewayPage\getLogPrefix(), SpecialFilepath\getRedirect(), RedirectSpecialPage\getRedirectQuery(), FundraiserSubscriptionPage\getRequestVal_CleanKeys(), GatewayPage\getVariant(), ResultSwitcher\handleResultRequest(), ResultSwitcher\isRepeatReturnProcess(), ChangesListSpecialPage\isStructuredFilterUiEnabled(), SpecialSearch\load(), SpecialUndelete\loadRequest(), SpecialUpload\loadRequest(), SpecialMergeHistory\loadRequestParams(), ChangesListSpecialPage\makeLegend(), ResultSwitcher\markReturnProcessed(), SpecialBlock\maybeAlterFormDefaults(), SpecialBotPasswords\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialChangeEmail\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialUpload\processUpload(), SpecialUndelete\redirectToRevDel(), SpecialBotPasswords\save(), SpecialSearch\saveNamespaces(), UserrightsPage\saveUserGroups(), GatewayPage\setClientVariables(), GatewayPage\setClientVariablesWithErrorHandling(), SpecialBlock\setParameter(), SpecialChangeContentModel\setParameter(), SpecialNewpages\setup(), SpecialUndelete\showFile(), SpecialRevisionDelete\showForm(), SpecialExpandTemplates\showHtmlPreview(), SpecialUndelete\showSearchForm(), SpecialUserLogout\showSuccess(), SpecialCachedPage\startCache(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialPreferences\submitReset(), and SpecialRevisionDelete\tryShowFile().
SpecialPage::getRestriction | ( | ) |
Get the permission that a user must have to execute this page.
Definition at line 172 of file SpecialPage.php.
References $mRestriction.
|
protected |
Return the robot policy.
Derived classes that override this can change the robot policy set by setHeaders() from the default 'noindex,nofollow'.
Definition at line 815 of file SpecialPage.php.
Referenced by setHeaders().
|
static |
Get a localised Title object for a page name with a possibly unvalidated subpage.
string | $name | |
string | bool | $subpage | Subpage string, or false to not use a subpage |
Definition at line 121 of file SpecialPage.php.
References NS_SPECIAL.
Referenced by EmailNotification\composeCommonMailtext(), SpecialFilepath\getRedirect(), Skin\makeSpecialUrl(), and Skin\makeSpecialUrlSubpage().
SpecialPage::getSkin | ( | ) |
Shortcut to get the skin being used for this instance.
Definition at line 764 of file SpecialPage.php.
References getContext().
Referenced by QueryPage\execute(), SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialListFiles\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), UserrightsPage\execute(), SpecialWhatLinksHere\execute(), SpecialBlock\setParameter(), SpecialRecentChangesLinked\setTopText(), SpecialLog\show(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), and MovePageForm\showForm().
|
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.
Stable to override
Reimplemented in SpecialEditWatchlist, SpecialListUsers, SpecialLog, SpecialRedirect, SpecialTags, and SpecialWatchlist.
Definition at line 523 of file SpecialPage.php.
Referenced by prefixSearchSubpages().
|
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.
string | $name | |
string | bool | $subpage | Subpage string, or false to not use a subpage |
string | $fragment | The link fragment (after the "#") |
MWException |
Definition at line 92 of file SpecialPage.php.
Referenced by ApiQuerySiteinfo\appendExtensions(), MediaWiki\Preferences\SignatureValidator\applyPreSaveTransform(), SpecialConfirmEmail\attemptConfirm(), SpecialUserLogin\beforeExecute(), Linker\blockLink(), SkinTemplate\buildContentNavigationUrls(), GatewayChooser\buildGatewayPageURL(), Skin\buildNavUrls(), SpecialEditWatchlist\buildTools(), MediaWiki\Auth\AuthManager\checkAccountCreatePermissions(), checkLoginSecurityLevel(), MediaWiki\Permissions\PermissionManager\checkReadPermissions(), ApiFormatBase\closePrinter(), DifferenceEngine\deletedLink(), SpecialTags\doTagRow(), Linker\emailLink(), SpecialEditWatchlist\execute(), SpecialBlockList\execute(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), SpecialResetTokens\execute(), SpecialWatchlist\execute(), ApiFeedContributions\execute(), ApiFeedWatchlist\execute(), ApiHelp\execute(), TidyUpT39714\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), OldChangesList\formatChangeLine(), LogFormatter\formatParameterValueForApi(), SpecialListDuplicatedFiles\formatResult(), SpecialUnusedTemplates\formatResult(), DeletedContribsPager\formatRevisionRow(), BlockListPager\formatValue(), BlockLogFormatter\getActionLinks(), ContentModelLogFormatter\getActionLinks(), DeleteLogFormatter\getActionLinks(), MergeLogFormatter\getActionLinks(), MoveLogFormatter\getActionLinks(), RevDelArchivedFileItem\getApiData(), RevDelFileItem\getApiData(), InfoAction\getContributors(), HistoryAction\getDescription(), RevDelArchiveItem\getDiffLink(), ApiFeedRecentChanges\getFeedObject(), LoginSignupSpecialPage\getFieldDefinitions(), Title\getFullUrlForRedirect(), MWGrants\getGrantsLink(), SpecialStatistics\getGroupStats(), OutputPage\getHeadLinksArray(), ApiHelp\getHelpInternal(), ChangeTagsLogItem\getHTML(), RevDelLogItem\getHTML(), RevDelArchivedFileItem\getLink(), RevDelFileItem\getLink(), RCCacheEntryFactory\getLogLink(), BlockLogFormatter\getMessageParameters(), ApiParamInfo\getModuleInfo(), SearchNearMatcher\getNearMatchInternal(), SpecialStatistics\getPageStats(), getPageTitle(), ChangesListSpecialPage\getRcFiltersConfigSummary(), ChangesListSpecialPage\getRcFiltersConfigVars(), ManualLogEntry\getRecentChange(), SpecialRedirectToSpecial\getRedirect(), SpecialAllMyUploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), RevDelArchiveItem\getRevisionLink(), Skin\getSearchLink(), LogEventsList\getShowHideLinks(), UploadStashFile\getSpecialUrl(), SpecialDeletedContributions\getSubTitle(), MediaWiki\getTitle(), AllMessagesTablePager\getTitle(), ImageListPager\getTitle(), MediaWiki\SpecialPage\SpecialPageFactory\getTitleForAlias(), Skin\getUndeleteLink(), Linker\getUploadUrl(), ImagePage\getUploadUrl(), SpecialContributions\getUserLinks(), ExternalUserNames\getUserLinkTitle(), SpecialStatistics\getUserStats(), AuthManagerSpecialPage\handleReauthBeforeExecute(), ImageHistoryList\imageHistoryLine(), CreditsAction\link(), Parser\magicLinkCallback(), EnhancedChangesList\makeCacheGroupingKey(), SpecialMostLinked\makeWlhLink(), WantedQueryPage\makeWlhLink(), SpecialMostLinkedTemplates\makeWlhLink(), RecentChangesUpdateJob\newCacheUpdateJob(), RecentChangesUpdateJob\newPurgeJob(), MarkpatrolledAction\onSubmit(), ImagePage\openShowImage(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialMediaStatistics\outputTableRow(), InfoAction\pageInfo(), MediaWiki\parseTitle(), MediaWiki\performRequest(), SpecialBlock\postText(), SkinTemplate\prepareQuickTemplate(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), EnhancedChangesList\recentChangesBlockLine(), SpecialUndelete\redirectToRevDel(), UserNotLoggedIn\report(), Linker\revDeleteLink(), LogPage\saveContent(), UserMailer\sendInternal(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\sendPasswordResetEmail(), McrUndoAction\show(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), EditPage\showHeader(), LogEventsList\showOptions(), OutputPage\showPermissionsErrorPage(), SpecialUserLogout\showSuccess(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), CoreParserFunctions\special(), Linker\specialLink(), SpecialEmailUser\submit(), RevDelLogList\suggestTarget(), MediaWiki\tryNormaliseRedirect(), ChangeTags\updateTagsWithChecks(), Linker\userToolLinks(), MediaWiki\Preferences\DefaultPreferencesFactory\watchlistPreferences(), and wfOpenSearchDescMain().
|
static |
Get a localised TitleValue object for a specified special page name.
string | $name | |
string | bool | $subpage | Subpage string, or false to not use a subpage |
string | $fragment | The link fragment (after the "#") |
Definition at line 107 of file SpecialPage.php.
References NS_SPECIAL.
Referenced by TagLogFormatter\getMessageParameters(), BlockListPager\getRestrictionListHTML(), MediaWiki\Linker\LinkRenderer\normalizeTarget(), and InfoAction\pageInfo().
SpecialPage::getUser | ( | ) |
Shortcut to get the User executing this instance.
Definition at line 754 of file SpecialPage.php.
References getContext().
Referenced by UserrightsPage\addLogEntry(), SpecialConfirmEmail\attemptConfirm(), SpecialEmailInvalidate\attemptInvalidate(), SpecialNewFiles\buildForm(), UserrightsPage\changeableGroups(), SpecialBotPasswords\checkExecutePermissions(), checkPermissions(), SpecialCreateAccount\checkPermissions(), SpecialUndelete\checkPermissions(), SpecialUndelete\diffHeader(), SpecialImport\doImport(), SpecialWatchlist\doMainQuery(), UserrightsPage\doSaveUserGroups(), SpecialConfirmEmail\execute(), FormSpecialPage\execute(), QueryPage\execute(), SpecialApiSandbox\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialImport\execute(), SpecialLog\execute(), SpecialPreferences\execute(), SpecialRevisionDelete\execute(), SpecialUndelete\execute(), SpecialUserLogout\execute(), UserrightsPage\execute(), LoginSignupSpecialPage\execute(), SpecialUnlinkAccounts\execute(), SpecialUploadStash\execute(), SpecialWatchlist\execute(), UserrightsPage\fetchUser(), SpecialUndelete\formatFileRow(), SpecialDoubleRedirects\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialLog\getActionButtons(), SpecialAutoblockList\getBlockListPager(), SpecialBlockList\getBlockListPager(), SpecialEmailUser\getDescription(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileLink(), SpecialBotPasswords\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialEmailUser\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialResetTokens\getFormFields(), QueryPage\getLimitOffset(), SpecialSpecialpages\getPageGroups(), SpecialUndelete\getPageLink(), SpecialAllMyUploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), UserrightsPage\groupCheckboxes(), SpecialUndelete\isAllowed(), SpecialPasswordReset\isListed(), AuthManagerSpecialPage\loadAuth(), SpecialUndelete\loadRequest(), SpecialMergeHistory\loadRequestParams(), LoginSignupSpecialPage\mainLoginForm(), SpecialExpandTemplates\makeOutput(), SpecialMergeHistory\merge(), SpecialBotPasswords\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialChangeEmail\onSubmit(), SpecialLockdb\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialPasswordReset\onSubmit(), SpecialUserLogout\onSubmit(), SpecialResetTokens\onSubmit(), SpecialBotPasswords\onSuccess(), SpecialChangeEmail\onSuccess(), SpecialUserLogout\onSuccess(), SpecialWatchlist\outputChangesList(), SpecialWatchlist\outputFeedLinks(), SpecialEditWatchlist\outputSubtitle(), AuthManagerSpecialPage\performAuthenticationStep(), LoginSignupSpecialPage\postProcessFormDescriptor(), SpecialWatchlist\registerFilters(), requireLogin(), SpecialBotPasswords\save(), SpecialUserLogin\setHeaders(), SpecialTags\showActivateDeactivateForm(), LoginSignupSpecialPage\showCreateAccountLink(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialConfirmEmail\showRequestForm(), SpecialPreferences\showResetForm(), SpecialUndelete\showRevision(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialEditWatchlist\submitRaw(), SpecialPreferences\submitReset(), SpecialConfirmEmail\submitSend(), SpecialChangeCredentials\success(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), SpecialRevisionDelete\tryShowFile(), SpecialUndelete\undelete(), UserrightsPage\userCanChangeRights(), SpecialExport\userCanOverrideExportDepth(), and SpecialWhatLinksHere\wlhLink().
SpecialPage::including | ( | $x = null | ) |
Whether the special page is being evaluated via transclusion.
bool | null | $x |
Definition at line 251 of file SpecialPage.php.
References wfSetVar().
Referenced by ChangesListSpecialPage\addModules(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialApiHelp\execute(), SpecialContributions\execute(), SpecialListFiles\execute(), SpecialListUsers\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPrefixindex\execute(), WantedPagesPage\execute(), SpecialWhatLinksHere\execute(), SpecialRecentChanges\execute(), ChangesListSpecialPage\includeRcFiltersApp(), outputHeader(), ChangesListSpecialPage\registerFilters(), SpecialAllPages\showChunk(), SpecialWhatLinksHere\showIndirectLinks(), SpecialPrefixindex\showPrefixChunk(), and ChangesListSpecialPage\webOutputHeader().
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.
Stable to override
Reimplemented in QueryPage, and SpecialFileDuplicateSearch.
Definition at line 292 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.
Stable to override
Reimplemented in QueryPage, WantedQueryPage, SpecialAncientPages, SpecialBrokenRedirects, SpecialDeadendPages, SpecialDoubleRedirects, SpecialFewestRevisions, SpecialListDuplicatedFiles, SpecialListRedirects, SpecialLonelyPages, SpecialMediaStatistics, SpecialMIMESearch, SpecialMostCategories, MostimagesPage, SpecialMostInterwikis, SpecialMostLinked, SpecialMostLinkedTemplates, SpecialUncategorizedImages, SpecialUncategorizedPages, SpecialUnusedCategories, SpecialUnusedImages, SpecialUnusedTemplates, SpecialUnwatchedPages, and SpecialWithoutInterwiki.
Definition at line 278 of file SpecialPage.php.
SpecialPage::isIncludable | ( | ) |
Whether it's allowed to transclude the special page via {{Special:Foo/params}} Stable to override.
Reimplemented in IncludableSpecialPage, SpecialApiHelp, SpecialRecentChanges, and WantedPagesPage.
Definition at line 219 of file SpecialPage.php.
References $mIncludable.
SpecialPage::isListed | ( | ) |
Whether this special page is listed in Special:SpecialPages Stable to override.
Reimplemented in SpecialRedirectWithAction, UnlistedSpecialPage, SpecialBotPasswords, SpecialChangeCredentials, SpecialChangeEmail, SpecialDiff, SpecialLinkAccounts, SpecialNewSection, SpecialPageData, SpecialPasswordReset, SpecialPermanentLink, SpecialResetTokens, SpecialUnlinkAccounts, and SpecialUserLogout.
Definition at line 184 of file SpecialPage.php.
References $mListed.
SpecialPage::isRestricted | ( | ) |
Can be overridden by subclasses with more complicated permissions schemes.
Stable to override
Reimplemented in SpecialCreateAccount.
Definition at line 304 of file SpecialPage.php.
SpecialPage::listed | ( | $x = null | ) |
Get or set whether this special page is listed in Special:SpecialPages.
bool | null | $x |
Definition at line 209 of file SpecialPage.php.
References wfDeprecated(), and wfSetVar().
SpecialPage::maxIncludeCacheTime | ( | ) |
How long to cache page when it is being included.
Definition at line 234 of file SpecialPage.php.
References getCacheTTL(), and getConfig().
SpecialPage::msg | ( | $key, | |
$params ) |
Wrapper around wfMessage that sets the current context.
string | string[] | MessageSpecifier | $key | |
mixed | ...$params |
Implements MessageLocalizer.
Definition at line 828 of file SpecialPage.php.
References getContext().
Referenced by SpecialBotPasswords\alterForm(), SpecialChangeEmail\alterForm(), SpecialLockdb\alterForm(), SpecialPasswordReset\alterForm(), SpecialUnlockdb\alterForm(), SpecialUserLogout\alterForm(), SpecialEditTags\buildCheckBoxes(), SpecialRevisionDelete\buildCheckBoxes(), SpecialNewFiles\buildForm(), SpecialComparePages\checkExistingRevision(), SpecialComparePages\checkExistingTitle(), SpecialUndelete\diffHeader(), GatewayPage\displayFailPage(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialEditWatchlist\execute(), QueryPage\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialApiHelp\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialExport\execute(), SpecialFileDuplicateSearch\execute(), SpecialListFiles\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialListUsers\execute(), SpecialMergeHistory\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialStatistics\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), UserrightsPage\execute(), SpecialWhatLinksHere\execute(), FundraiserMaintenance\execute(), DisabledSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\filterLinks(), SpecialNewpages\form(), SpecialUndelete\formatFileRow(), SpecialListGroupRights\formatPermissions(), SpecialPasswordPolicies\formatPolicies(), WantedQueryPage\formatResult(), SpecialBrokenRedirects\formatResult(), SpecialDoubleRedirects\formatResult(), SpecialFewestRevisions\formatResult(), SpecialLinkSearch\formatResult(), SpecialListDuplicatedFiles\formatResult(), SpecialMIMESearch\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialMostLinked\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialPagesWithProp\formatResult(), SpecialShortPages\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialWantedCategories\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialStatistics\formatRow(), SpecialStatistics\formatRowHeader(), SpecialLog\getActionButtons(), SpecialChangeCredentials\getAuthForm(), MostimagesPage\getCellHtml(), getDescription(), SpecialCreateAccount\getDescription(), SpecialDiff\getDescription(), SpecialEditTags\getDescription(), SpecialEmailUser\getDescription(), SpecialMute\getDescription(), SpecialUserLogin\getDescription(), SpecialUpload\getDupeWarning(), SpecialStatistics\getEditStats(), SpecialUncategorizedCategories\getExceptionList(), SpecialRecentChangesLinked\getExtraOptions(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileComment(), SpecialUndelete\getFileUser(), SpecialWhatLinksHere\getFilterPanel(), FormSpecialPage\getForm(), SpecialBlock\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialChangeContentModel\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialEmailUser\getFormFields(), SpecialPageLanguage\getFormFields(), SpecialRedirect\getFormFields(), SpecialResetTokens\getFormFields(), SpecialStatistics\getGroupStats(), SpecialActiveUsers\getIntroText(), SpecialProtectedpages\getLevelMenu(), SpecialProtectedtitles\getLevelMenu(), SpecialImport\getMappingFormPart(), RandomPage\getNsList(), SpecialStatistics\getOtherStats(), SpecialBrokenRedirects\getPageHeader(), SpecialDeadendPages\getPageHeader(), SpecialDoubleRedirects\getPageHeader(), SpecialLonelyPages\getPageHeader(), SpecialUnusedCategories\getPageHeader(), SpecialUnusedImages\getPageHeader(), SpecialUnusedTemplates\getPageHeader(), WantedFilesPage\getPageHeader(), LoginSignupSpecialPage\getPageHtml(), SpecialStatistics\getPageStats(), SpecialWhatLinksHere\getPrevNext(), SpecialMediaStatistics\getTableHeaderRow(), SpecialProtectedpages\getTypeMenu(), SpecialUpload\getUploadForm(), SpecialStatistics\getUserStats(), UserrightsPage\groupCheckboxes(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialWhatLinksHere\listItem(), LoginSignupSpecialPage\load(), SpecialUpload\loadRequest(), LoginSignupSpecialPage\mainLoginForm(), SpecialExpandTemplates\makeForm(), UserrightsPage\makeGroupNameList(), LoginSignupSpecialPage\makeLanguageSelector(), SpecialExpandTemplates\makeOutput(), WantedQueryPage\makeWlhLink(), SpecialMostLinkedTemplates\makeWlhLink(), SpecialMergeHistory\merge(), SpecialLockdb\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialBlock\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialLockdb\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialUnlockdb\onSuccess(), SpecialUploadStash\outputContents(), outputHeader(), SpecialUploadStash\outputLocalFile(), SpecialUploadStash\outputLocallyScaledThumb(), SpecialMediaStatistics\outputMediaType(), SpecialListGroupRights\outputNamespaceProtectionInfo(), ChangesListSpecialPage\outputNoResults(), SpecialRecentChangesLinked\outputNoResults(), SpecialSpecialpages\outputPageList(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialMediaStatistics\outputResults(), SpecialEditWatchlist\outputSubtitle(), SpecialMediaStatistics\outputTableEnd(), SpecialMediaStatistics\outputTableRow(), ChangesListSpecialPage\outputTimeout(), SpecialUploadStash\parseKey(), SpecialBlock\postText(), SpecialBlock\preText(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), SpecialJavaScriptTest\renderPage(), SpecialEmailUser\sendEmailForm(), GatewayPage\setHeaders(), SpecialUserLogin\setHeaders(), EmailPreferences\setPageTitle(), SpecialNewFiles\setTopText(), SpecialSearch\setupPage(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), MovePageForm\showForm(), SpecialDiff\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialSearch\showGoogleSearch(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialWhatLinksHere\showIndirectLinks(), SpecialBookSources\showList(), SpecialUndelete\showList(), SpecialAutoblockList\showList(), SpecialBlockList\showList(), SpecialMergeHistory\showMergeForm(), SpecialProtectedtitles\showOptions(), SpecialProtectedpages\showOptions(), SpecialPrefixindex\showPrefixChunk(), SpecialUpload\showRecoverableUploadError(), SpecialConfirmEmail\showRequestForm(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialTags\showTagList(), SpecialAutoblockList\showTotal(), SpecialUpload\showUploadError(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialRevisionDelete\submit(), SpecialEditWatchlist\submitRaw(), SpecialConfirmEmail\submitSend(), SpecialEditTags\success(), SpecialLinkAccounts\success(), SpecialRevisionDelete\success(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), UserrightsPage\switchForm(), SpecialUndelete\undelete(), SpecialUpload\unsaveUploadedFile(), SpecialEmailUser\userForm(), SpecialChangeContentModel\validateTitle(), and SpecialWhatLinksHere\whatlinkshereForm().
|
protected |
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'
Stable to override
string | $summaryMessageKey | Message key of the summary |
Definition at line 662 of file SpecialPage.php.
References getName(), getOutput(), including(), and msg().
Referenced by SpecialRedirect\alterForm(), SpecialBookSources\execute(), SpecialEditWatchlist\execute(), QueryPage\execute(), SpecialActiveUsers\execute(), SpecialAllPages\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialComparePages\execute(), SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), SpecialFileDuplicateSearch\execute(), SpecialImport\execute(), SpecialLinkSearch\execute(), SpecialListFiles\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialListUsers\execute(), SpecialLog\execute(), SpecialMergeHistory\execute(), SpecialMIMESearch\execute(), MovePageForm\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialRevisionDelete\execute(), SpecialSpecialpages\execute(), SpecialTags\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), UserrightsPage\execute(), SpecialWhatLinksHere\execute(), FundraiserMaintenance\execute(), EmailPreferences\execute(), ChangesListSpecialPage\execute(), DisabledSpecialPage\execute(), execute(), SpecialChangeCredentials\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialSearch\setupPage(), SpecialRedirectWithAction\showNoRedirectPage(), SpecialDiff\showNoRedirectPage(), SpecialNewSection\showNoRedirectPage(), SpecialPermanentLink\showNoRedirectPage(), and SpecialUploadStash\showUploads().
|
staticprotected |
Helper function for implementations of prefixSearchSubpages() that filter the values in memory (as opposed to making a query).
string | $search | |
int | $limit | |
array | $subpages | |
int | $offset |
Definition at line 561 of file SpecialPage.php.
Referenced by prefixSearchSubpages(), and SpecialPagesWithProp\prefixSearchSubpages().
|
protected |
Perform a regular substring search for prefixSearchSubpages.
string | $search | Prefix to search for |
int | $limit | Maximum number of results to return (usually 10) |
int | $offset | Number of results to skip (usually 0) |
Definition at line 534 of file SpecialPage.php.
Referenced by SpecialAllPages\prefixSearchSubpages(), SpecialChangeContentModel\prefixSearchSubpages(), MovePageForm\prefixSearchSubpages(), SpecialPageLanguage\prefixSearchSubpages(), SpecialPrefixindex\prefixSearchSubpages(), SpecialRecentChangesLinked\prefixSearchSubpages(), SpecialUndelete\prefixSearchSubpages(), and SpecialWhatLinksHere\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" ]
Stable to override
string | $search | Prefix to search for |
int | $limit | Maximum number of results to return (usually 10) |
int | $offset | Number of results to skip (usually 0) |
Reimplemented in SpecialAllPages, SpecialBlock, SpecialChangeContentModel, SpecialContributions, SpecialDeletedContributions, SpecialEmailUser, SpecialFileDuplicateSearch, SpecialListFiles, MovePageForm, SpecialPageLanguage, SpecialPagesWithProp, SpecialPrefixindex, SpecialRecentChangesLinked, SpecialUnblock, SpecialUndelete, UserrightsPage, and SpecialWhatLinksHere.
Definition at line 505 of file SpecialPage.php.
References getSubpagesForPrefixSearch(), and prefixSearchArray().
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.
string | $reasonMsg | [optional] Message key to be displayed on login page |
string | $titleMsg | [optional] Passed on to UserNotLoggedIn constructor |
UserNotLoggedIn |
Definition at line 373 of file SpecialPage.php.
References getUser().
Referenced by SpecialChangeEmail\checkExecutePermissions(), SpecialConfirmEmail\execute(), SpecialEditWatchlist\execute(), SpecialBotPasswords\execute(), SpecialMute\execute(), SpecialPreferences\execute(), SpecialResetTokens\execute(), and SpecialWatchlist\execute().
|
final |
Entry point.
string | null | $subPage |
Definition at line 592 of file SpecialPage.php.
References afterExecute(), beforeExecute(), execute(), and getHookRunner().
SpecialPage::setContext | ( | $context | ) |
Sets the context this SpecialPage is executed in.
IContextSource | $context |
Definition at line 707 of file SpecialPage.php.
Referenced by Skin\buildNavUrls(), SpecialEmailUser\execute(), ApiQueryUsers\execute(), and LoginSignupSpecialPage\setSessionUserForCurrentRequest().
|
protected |
Sets headers - this should be called from the execute() method of all derived classes! Stable to override.
Reimplemented in GatewayPage, and SpecialUserLogin.
Definition at line 571 of file SpecialPage.php.
References getConfig(), getDescription(), getOutput(), and getRobotPolicy().
Referenced by SpecialConfirmEmail\execute(), SpecialEmailInvalidate\execute(), SpecialBookSources\execute(), SpecialEditWatchlist\execute(), FormSpecialPage\execute(), QueryPage\execute(), SpecialActiveUsers\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialApiSandbox\execute(), SpecialAutoblockList\execute(), SpecialBlankpage\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialComparePages\execute(), SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), SpecialFileDuplicateSearch\execute(), SpecialGoToInterwiki\execute(), SpecialImport\execute(), SpecialLinkSearch\execute(), SpecialListFiles\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialListUsers\execute(), SpecialLog\execute(), SpecialMergeHistory\execute(), SpecialMIMESearch\execute(), MovePageForm\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), RandomPage\execute(), SpecialRevisionDelete\execute(), SpecialSpecialpages\execute(), SpecialStatistics\execute(), SpecialTags\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), SpecialUserLogout\execute(), UserrightsPage\execute(), SpecialWhatLinksHere\execute(), FundraiserMaintenance\execute(), FundraiserSubscriptionPage\execute(), EmailPreferences\execute(), ChangesListSpecialPage\execute(), DisabledSpecialPage\execute(), LoginSignupSpecialPage\execute(), execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialSearch\setupPage(), SpecialRedirectWithAction\showNoRedirectPage(), SpecialDiff\showNoRedirectPage(), SpecialNewSection\showNoRedirectPage(), SpecialPermanentLink\showNoRedirectPage(), and SpecialUploadStash\showUploads().
SpecialPage::setHookContainer | ( | HookContainer | $hookContainer | ) |
Definition at line 988 of file SpecialPage.php.
SpecialPage::setLinkRenderer | ( | LinkRenderer | $linkRenderer | ) |
\\MediaWiki\\Linker\\LinkRenderer | $linkRenderer |
Definition at line 956 of file SpecialPage.php.
SpecialPage::setListed | ( | $listed | ) |
Set whether this page is listed in Special:Specialpages, at run-time.
bool | $listed | Set via subclassing UnlistedSpecialPage, get via isListed() |
Definition at line 196 of file SpecialPage.php.
References wfDeprecated(), and wfSetVar().
|
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.
Stable to override
array | $data |
Reimplemented in FormSpecialPage.
Definition at line 408 of file SpecialPage.php.
Referenced by checkLoginSecurityLevel().
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.
Stable to override
User | $user | The user to check |
Reimplemented in SpecialCreateAccount, SpecialPasswordReset, SpecialUndelete, and SpecialUpload.
Definition at line 320 of file SpecialPage.php.
Referenced by checkPermissions().
|
protected |
Call wfTransactionalTimeLimit() if this request was POSTed.
Definition at line 934 of file SpecialPage.php.
References wfTransactionalTimeLimit().
Referenced by SpecialImport\execute(), SpecialMergeHistory\execute(), MovePageForm\execute(), SpecialRevisionDelete\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), and SpecialUploadStash\execute().
|
private |
Definition at line 74 of file SpecialPage.php.
|
private |
Definition at line 76 of file SpecialPage.php.
|
private |
Definition at line 71 of file SpecialPage.php.
Referenced by MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), SpecialTrackingCategories\execute(), SpecialNewpages\filterLinks(), WantedQueryPage\formatResult(), SpecialAncientPages\formatResult(), SpecialBrokenRedirects\formatResult(), SpecialDoubleRedirects\formatResult(), SpecialFewestRevisions\formatResult(), SpecialFileDuplicateSearch\formatResult(), SpecialListRedirects\formatResult(), SpecialMIMESearch\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialMostLinked\formatResult(), SpecialShortPages\formatResult(), SpecialUnusedTemplates\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialBotPasswords\getFormFields(), SpecialEmailUser\getFormFields(), SpecialStatistics\getGroupStats(), SpecialStatistics\getPageStats(), SpecialDeletedContributions\getSubTitle(), SpecialMostLinked\makeWlhLink(), SpecialMergeHistory\merge(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialMediaStatistics\outputTableRow(), SpecialBlock\postText(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialRevisionDelete\showForm(), SpecialUndelete\showList(), SpecialSearch\showResults(), SpecialChangeCredentials\showSubpageList(), MovePageForm\showSubpagesList(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), and SpecialWhatLinksHere\wlhLink().
|
protected |
|
protected |
Definition at line 60 of file SpecialPage.php.
Referenced by isIncludable().
|
protected |
Definition at line 57 of file SpecialPage.php.
|
private |
Definition at line 54 of file SpecialPage.php.
Referenced by isListed().
|
private |
Definition at line 47 of file SpecialPage.php.
Referenced by getLocalName().
|
protected |
Definition at line 44 of file SpecialPage.php.
Referenced by SpecialCachedPage\getCacheKey(), and getName().
|
protected |
Definition at line 51 of file SpecialPage.php.
Referenced by getRestriction().