MediaWiki REL1_40
|
Parent class for all special pages. More...
Inherits MessageLocalizer.
Inherited by AuthManagerSpecialPage, ChangesListSpecialPage, FormSpecialPage, IncludableSpecialPage, MediaWiki\Specials\SpecialUserRights, QueryPage, SpecialActiveUsers, SpecialAllMessages, SpecialApiSandbox, SpecialAutoblockList, SpecialBlockList, SpecialBookSources, SpecialCategories, SpecialComparePages, SpecialDeletedContributions, SpecialExpandTemplates, SpecialExport, SpecialFileDuplicateSearch, SpecialImport, SpecialJavaScriptTest, SpecialListGrants, SpecialListGroupRights, SpecialLog, SpecialMergeHistory, SpecialPageData, SpecialPasswordPolicies, SpecialPreferences, SpecialProtectedpages, SpecialProtectedtitles, SpecialRandomPage, SpecialRenameuser, SpecialSearch, SpecialStatistics, SpecialTags, SpecialTrackingCategories, SpecialUnblock, SpecialUndelete, SpecialUpload, SpecialVersion, and UnlistedSpecialPage.
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. | |
getAssociatedNavigationLinks () | |
Return an array of strings representing page titles that are discoverable to end users via UI. | |
getAuthority () | |
Shortcut to get the Authority executing this instance. | |
getConfig () | |
Shortcut to get main config object. | |
getContentLanguage () | |
Shortcut to get content language. | |
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. | |
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. | |
getShortDescription (string $path='') | |
Similar to getDescription but takes into account sub pages and designed for display in tabs. | |
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}}. | |
isListed () | |
Whether this special page is listed in Special:SpecialPages. | |
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. | |
requireNamedUser ( $reasonMsg='exception-nologin-text', $titleMsg='exception-nologin') | |
If the user is not logged in or is a temporary user, throws UserNotLoggedIn. | |
run ( $subPage) | |
Entry point. | |
setContentLanguage (Language $contentLanguage) | |
Set content language. | |
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. | |
setSpecialPageFactory (SpecialPageFactory $specialPageFactory) | |
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. | |
static | newSearchPage (User $user) |
Get the users preferred search page. | |
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. | |
getAuthManager () | |
getCacheTTL () | |
getGroupName () | |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. | |
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. | |
getSpecialPageFactory () | |
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, SearchEngineFactory $searchEngineFactory=null) | |
Perform a regular substring search for prefixSearchSubpages. | |
setAuthManager (AuthManager $authManager) | |
Set the injected AuthManager from the special page constructor. | |
setHeaders () | |
Sets headers - this should be called from the execute() method of all derived classes! | |
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. | |
bool | $mIncludable |
Whether the special page can be included in an article. | |
bool | $mIncluding |
Whether or not this special page is being included from an article. | |
string | $mName |
The canonical name of this special page Also used for the default. | |
string | $mRestriction |
Minimum user level required to access this page, or "" for anyone. | |
Parent class for all special pages.
Includes some static functions for handling the special page list deprecated in favor of SpecialPageFactory.
Definition at line 45 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()
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 190 of file SpecialPage.php.
|
protected |
Adds RSS/atom links.
array | $params |
Definition at line 1002 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 1020 of file SpecialPage.php.
References $title.
Referenced by 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(), SpecialRenameuser\execute(), SpecialSpecialpages\execute(), SpecialTags\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUncategorizedImages\execute(), SpecialUncategorizedPages\execute(), SpecialUndelete\execute(), SpecialUnwatchedPages\execute(), SpecialUpload\execute(), MediaWiki\Specials\SpecialUserRights\execute(), SpecialExpandTemplates\execute(), SpecialRecentChanges\execute(), SpecialWatchlist\execute(), SpecialRecentChangesLinked\getExtraOptions(), SpecialRandomInCategory\getFormFields(), SpecialSearch\setupPage(), MediaWiki\Specials\SpecialMovePage\showForm(), SpecialEditTags\showForm(), SpecialRevisionDelete\showForm(), SpecialDiff\showNoRedirectPage(), SpecialNewSection\showNoRedirectPage(), and SpecialPermanentLink\showNoRedirectPage().
|
protected |
Gets called after.
string | null | $subPage |
Definition at line 729 of file SpecialPage.php.
|
protected |
Gets called before.
string | null | $subPage |
Reimplemented in AuthManagerSpecialPage, LoginSignupSpecialPage, and SpecialUserLogin.
Definition at line 717 of file SpecialPage.php.
|
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 | false | $subpage | Optional param for specifying subpage |
Definition at line 1127 of file SpecialPage.php.
|
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 496 of file SpecialPage.php.
References $title, getAuthManager(), getFullTitle(), getName(), getOutput(), getRequest(), getTitleFor(), PROTO_HTTPS, setReauthPostData(), wfArrayToCgi(), and wfMessage().
Referenced by FormSpecialPage\execute().
SpecialPage::checkPermissions | ( | ) |
Checks if userCanExecute, and if not throws a PermissionsError.
PermissionsError |
Reimplemented in SpecialCreateAccount, and SpecialUndelete.
Definition at line 383 of file SpecialPage.php.
References displayRestrictionError(), getUser(), and userCanExecute().
Referenced by FormSpecialPage\checkExecutePermissions(), SpecialConfirmEmail\execute(), SpecialEmailInvalidate\execute(), SpecialEditWatchlist\execute(), SpecialDeletedContributions\execute(), SpecialEditTags\execute(), SpecialMergeHistory\execute(), SpecialRenameuser\execute(), SpecialRevisionDelete\execute(), SpecialUnblock\execute(), LoginSignupSpecialPage\execute(), SpecialUploadStash\execute(), and SpecialWatchlist\execute().
SpecialPage::checkReadOnly | ( | ) |
If the wiki is currently in readonly mode, throws a ReadOnlyError.
ReadOnlyError |
Definition at line 396 of file SpecialPage.php.
Referenced by FormSpecialPage\checkExecutePermissions(), SpecialConfirmEmail\execute(), SpecialEmailInvalidate\execute(), SpecialEditWatchlist\execute(), SpecialEditTags\execute(), SpecialImport\execute(), SpecialMergeHistory\execute(), MediaWiki\Specials\SpecialMovePage\execute(), SpecialPreferences\execute(), SpecialRenameuser\execute(), SpecialRevisionDelete\execute(), SpecialUnblock\execute(), SpecialUpload\execute(), MediaWiki\Specials\SpecialUserRights\execute(), and SpecialUndelete\showHistory().
|
protected |
Output an error message telling the user what access level they have to have.
PermissionsError |
Definition at line 371 of file SpecialPage.php.
Referenced by checkPermissions(), and SpecialUndelete\checkPermissions().
SpecialPage::doesWrites | ( | ) |
Indicates whether this special page may perform database writes.
Reimplemented in SpecialBlock, SpecialChangeContentModel, SpecialChangeCredentials, SpecialChangeEmail, SpecialConfirmEmail, SpecialCreateAccount, SpecialEditTags, SpecialEditWatchlist, SpecialEmailInvalidate, SpecialEmailUser, SpecialImport, SpecialLockdb, SpecialMergeHistory, MediaWiki\Specials\SpecialMovePage, SpecialPageLanguage, SpecialPasswordReset, SpecialPreferences, SpecialRenameuser, SpecialResetTokens, SpecialRevisionDelete, SpecialRunJobs, SpecialUnblock, SpecialUndelete, SpecialUnlockdb, SpecialUpload, SpecialUploadStash, SpecialUserLogin, SpecialUserLogout, MediaWiki\Specials\SpecialUserRights, and SpecialWatchlist.
Definition at line 1068 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
string | null | $subPage |
Reimplemented in SpecialConfirmEmail, SpecialEmailInvalidate, SpecialBookSources, SpecialEditWatchlist, FormSpecialPage, QueryPage, SpecialActiveUsers, SpecialAllMessages, SpecialAllPages, SpecialApiHelp, SpecialApiSandbox, SpecialAutoblockList, SpecialBlankpage, SpecialBlockList, SpecialBotPasswords, SpecialBrokenRedirects, SpecialCategories, SpecialChangeEmail, SpecialComparePages, SpecialContribute, SpecialContributions, SpecialDeletedContributions, SpecialDoubleRedirects, SpecialEditTags, SpecialEmailUser, SpecialExport, SpecialFileDuplicateSearch, SpecialGoToInterwiki, SpecialImport, SpecialJavaScriptTest, SpecialLinkSearch, SpecialListDuplicatedFiles, SpecialListFiles, SpecialListGrants, SpecialListGroupRights, SpecialListRedirects, SpecialListUsers, SpecialLog, SpecialMergeHistory, SpecialMIMESearch, MediaWiki\Specials\SpecialMovePage, SpecialMute, SpecialNewFiles, SpecialNewpages, SpecialPagesWithProp, SpecialPasswordPolicies, SpecialPasswordReset, SpecialPreferences, SpecialPrefixindex, SpecialProtectedpages, SpecialProtectedtitles, SpecialRandomPage, SpecialRenameuser, SpecialResetTokens, SpecialRevisionDelete, SpecialRunJobs, SpecialSearch, SpecialSpecialpages, SpecialStatistics, SpecialTags, SpecialTrackingCategories, SpecialUnblock, SpecialUncategorizedImages, SpecialUncategorizedPages, SpecialUndelete, SpecialUnwatchedPages, SpecialUpload, SpecialUserLogout, MediaWiki\Specials\SpecialUserRights, SpecialVersion, MediaWiki\Specials\SpecialWantedPages, SpecialWithoutInterwiki, ChangesListSpecialPage, DisabledSpecialPage, LoginSignupSpecialPage, RedirectSpecialPage, SpecialChangeCredentials, SpecialExpandTemplates, SpecialLinkAccounts, SpecialPageData, SpecialRecentChanges, SpecialUnlinkAccounts, SpecialUploadStash, and SpecialWatchlist.
Definition at line 743 of file SpecialPage.php.
SpecialPage::getAssociatedNavigationLinks | ( | ) |
Return an array of strings representing page titles that are discoverable to end users via UI.
Reimplemented in SpecialContribute, SpecialContributions, SpecialEditWatchlist, and SpecialWatchlist.
Definition at line 618 of file SpecialPage.php.
|
finalprotected |
Definition at line 563 of file SpecialPage.php.
Referenced by SpecialChangeEmail\checkExecutePermissions(), checkLoginSecurityLevel(), SpecialCreateAccount\checkPermissions(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), AuthManagerSpecialPage\isActionAllowed(), SpecialChangeEmail\isListed(), SpecialLinkAccounts\isListed(), SpecialUnlinkAccounts\isListed(), SpecialUserLogin\isListed(), LoginSignupSpecialPage\load(), AuthManagerSpecialPage\loadAuth(), and AuthManagerSpecialPage\performAuthenticationStep().
SpecialPage::getAuthority | ( | ) |
Shortcut to get the Authority executing this instance.
Definition at line 882 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialUserRights\changeableGroups(), SpecialChangeEmail\checkExecutePermissions(), SpecialCreateAccount\checkPermissions(), SpecialExport\doExport(), SpecialWatchlist\doMainQuery(), MediaWiki\Specials\SpecialUserRights\doSaveUserGroups(), SpecialConfirmEmail\execute(), SpecialApiSandbox\execute(), SpecialRevisionDelete\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\Specials\SpecialUserRights\fetchUser(), SpecialBrokenRedirects\formatResult(), SpecialDoubleRedirects\formatResult(), SpecialAutoblockList\getBlockListPager(), SpecialBlockList\getBlockListPager(), SpecialChangeContentModel\onSubmit(), SpecialPageLanguage\onSubmit(), AuthManagerSpecialPage\performAuthenticationStep(), SpecialTags\showActivateDeactivateForm(), SpecialTags\showDeleteTagForm(), MediaWiki\Specials\SpecialMovePage\showForm(), SpecialPreferences\showResetForm(), SpecialEditTags\submit(), SpecialPreferences\submitReset(), MediaWiki\Specials\SpecialUserRights\userCanChangeRights(), and SpecialExport\userCanOverrideExportDepth().
|
protected |
Reimplemented in SpecialNewpages, and SpecialRecentChanges.
Definition at line 282 of file SpecialPage.php.
Referenced by maxIncludeCacheTime().
SpecialPage::getConfig | ( | ) |
Shortcut to get main config object.
Definition at line 950 of file SpecialPage.php.
References getContext().
Referenced by SpecialRecentChanges\__construct(), SpecialPasswordReset\alterForm(), SpecialBotPasswords\checkExecutePermissions(), SpecialLockdb\checkExecutePermissions(), SpecialUnlockdb\checkExecutePermissions(), SpecialWatchlist\doMainQuery(), SpecialRecentChangesLinked\doMainQuery(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), SpecialImport\execute(), SpecialLinkSearch\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialLog\execute(), SpecialPasswordPolicies\execute(), SpecialRenameuser\execute(), SpecialRunJobs\execute(), SpecialSearch\execute(), ChangesListSpecialPage\execute(), LoginSignupSpecialPage\execute(), SpecialWatchlist\execute(), MediaWiki\Specials\SpecialUserRights\fetchUser(), ChangesListSpecialPage\filterOnUserExperienceLevel(), SpecialBlock\getFormFields(), SpecialPageLanguage\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialActiveUsers\getIntroText(), SpecialProtectedpages\getLevelMenu(), ChangesListSpecialPage\getLinkDays(), SpecialUnusedImages\getPageHeader(), LoginSignupSpecialPage\getPageHtml(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), LoginSignupSpecialPage\getPreservedParams(), SpecialLinkSearch\getQueryInfo(), SpecialShortPages\getQueryInfo(), SpecialUnusedImages\getQueryInfo(), MediaWiki\Specials\SpecialWantedPages\getQueryInfo(), SpecialChangeCredentials\getRequestBlacklist(), SpecialLinkAccounts\getRequestBlacklist(), SpecialRemoveCredentials\getRequestBlacklist(), SpecialUnlinkAccounts\getRequestBlacklist(), SpecialResetTokens\getTokensList(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialBotPasswords\isListed(), SpecialLinkSearch\linkParameters(), LoginSignupSpecialPage\load(), maxIncludeCacheTime(), SpecialBlock\maybeAlterFormDefaults(), SpecialLockdb\onSubmit(), SpecialUnlockdb\onSubmit(), SpecialPasswordReset\onSuccess(), SpecialWhatLinksHere\onSuccess(), SpecialWatchlist\outputChangesList(), SpecialAllPages\outputHTMLForm(), SpecialBlock\preHtml(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), ChangesListSpecialPage\registerFilters(), MediaWiki\Specials\SpecialMovePage\showForm(), SpecialSearch\showResults(), SpecialUserLogin\successfulAction(), SpecialExport\validateLinkDepth(), and ChangesListSpecialPage\validateOptions().
|
final |
Shortcut to get content language.
Definition at line 912 of file SpecialPage.php.
Referenced by SpecialMIMESearch\__construct(), SpecialMostLinkedCategories\__construct(), SpecialWantedCategories\__construct(), SpecialUnwatchedPages\__construct(), SpecialFileDuplicateSearch\__construct(), SpecialAncientPages\__construct(), SpecialFewestRevisions\__construct(), SpecialListGroupRights\__construct(), SpecialAllMessages\execute(), SpecialPrefixindex\execute(), SpecialRandomPage\execute(), SpecialExpandTemplates\execute(), PageQueryPage\getLanguageConverter(), SpecialUpload\getUploadForm(), SpecialLockdb\onSubmit(), SpecialNewFiles\setTopText(), SpecialPrefixindex\showPrefixChunk(), and SpecialSearch\showResults().
SpecialPage::getContext | ( | ) |
Gets the context this SpecialPage is executed in.
Definition at line 836 of file SpecialPage.php.
References wfDebug().
Referenced by MergeHistoryPager\__construct(), NewPagesPager\__construct(), ProtectedTitlesPager\__construct(), SpecialActiveUsers\buildForm(), MediaWiki\Specials\SpecialUserRights\changeableGroups(), SpecialActiveUsers\execute(), SpecialAllMessages\execute(), SpecialApiHelp\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialComparePages\execute(), SpecialDeletedContributions\execute(), SpecialExport\execute(), SpecialFileDuplicateSearch\execute(), SpecialLinkSearch\execute(), SpecialListFiles\execute(), SpecialListUsers\execute(), SpecialNewFiles\execute(), SpecialPagesWithProp\execute(), SpecialPreferences\execute(), SpecialProtectedpages\execute(), SpecialStatistics\execute(), SpecialUnblock\execute(), SpecialExpandTemplates\execute(), SpecialFewestRevisions\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialMostLinked\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialMostLinkedTemplates\formatResult(), SpecialShortPages\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialProtectedtitles\formatRow(), AuthManagerSpecialPage\getAuthForm(), SpecialAutoblockList\getBlockListPager(), SpecialBlockList\getBlockListPager(), FormSpecialPage\getForm(), SpecialEditTags\getList(), SpecialRevisionDelete\getList(), SpecialMIMESearch\getPageHeader(), SpecialWithoutInterwiki\getPageHeader(), LoginSignupSpecialPage\getPageHtml(), AuthManagerSpecialPage\getRequest(), ChangesListBooleanFilter\modifyQuery(), ChangesListStringOptionsFilterGroup\modifyQuery(), SpecialPrefixindex\namespacePrefixForm(), SpecialChangeContentModel\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialWatchlist\outputChangesList(), SpecialAllPages\outputHTMLForm(), SpecialEmailUser\sendEmailForm(), AuthManagerSpecialPage\setRequest(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), SpecialTags\showActivateDeactivateForm(), SpecialTags\showDeleteTagForm(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), SpecialRevisionDelete\showForm(), SpecialProtectedpages\showOptions(), SpecialPreferences\showResetForm(), LoginSignupSpecialPage\showReturnToPage(), LoginSignupSpecialPage\showSuccessPage(), 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.
Reimplemented in SpecialCreateAccount, SpecialDiff, SpecialEditTags, SpecialEmailUser, SpecialMute, and SpecialUserLogin.
Definition at line 786 of file SpecialPage.php.
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 1045 of file SpecialPage.php.
SpecialPage::getFullTitle | ( | ) |
Return the full title, including $par.
Definition at line 960 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'.
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, MediaWiki\Specials\SpecialMostImages, SpecialMostInterwikis, SpecialMostLinked, SpecialMostLinkedCategories, SpecialMostLinkedTemplates, SpecialMostRevisions, MediaWiki\Specials\SpecialMovePage, SpecialNewFiles, SpecialNewpages, SpecialNewSection, SpecialPageLanguage, SpecialPagesWithProp, SpecialPasswordPolicies, SpecialPasswordReset, SpecialPermanentLink, SpecialPreferences, SpecialPrefixindex, SpecialProtectedpages, SpecialProtectedtitles, SpecialRandomInCategory, SpecialRandomPage, SpecialRedirect, SpecialRenameuser, SpecialResetTokens, SpecialRevisionDelete, SpecialSearch, SpecialShortPages, SpecialStatistics, SpecialTags, SpecialTrackingCategories, SpecialUnblock, SpecialUncategorizedImages, SpecialUncategorizedPages, SpecialUndelete, SpecialUnlinkAccounts, SpecialUnlockdb, SpecialUnusedCategories, SpecialUnusedImages, SpecialUnusedTemplates, SpecialUnwatchedPages, SpecialUpload, SpecialUserLogin, SpecialUserLogout, MediaWiki\Specials\SpecialUserRights, SpecialVersion, SpecialWantedCategories, MediaWiki\Specials\SpecialWantedFiles, MediaWiki\Specials\SpecialWantedPages, SpecialWantedTemplates, SpecialWhatLinksHere, and SpecialWithoutInterwiki.
Definition at line 1082 of file SpecialPage.php.
|
protected |
Definition at line 1168 of file SpecialPage.php.
Referenced by SpecialActiveUsers\execute(), SpecialDeletedContributions\execute(), SpecialListUsers\execute(), SpecialUpload\getUploadForm(), and SpecialSearch\showResults().
|
protected |
Definition at line 1181 of file SpecialPage.php.
Referenced by RedirectSpecialArticle\__construct(), ChangesListSpecialPage\__construct(), SpecialPageLanguage\alterForm(), MediaWiki\Specials\SpecialUserRights\doSaveUserGroups(), SpecialContributions\execute(), SpecialImport\execute(), SpecialLog\execute(), SpecialRenameuser\execute(), SpecialSearch\execute(), SpecialStatistics\execute(), SpecialTrackingCategories\execute(), SpecialUpload\execute(), AuthManagerSpecialPage\fieldInfoToFormDescriptor(), FormSpecialPage\getForm(), SpecialBlock\getFormFields(), LoginSignupSpecialPage\getPageHtml(), SpecialRandomPage\getQueryInfo(), SpecialAncientPages\getQueryInfo(), SpecialLonelyPages\getQueryInfo(), SpecialShortPages\getQueryInfo(), MediaWiki\Specials\SpecialWantedPages\getQueryInfo(), SpecialRandomPage\getRandomTitle(), SpecialSearch\getSearchProfiles(), SpecialResetTokens\getTokensList(), SpecialSearch\goResult(), SpecialUserLogout\onSuccess(), AuthManagerSpecialPage\performAuthenticationStep(), SpecialBlock\preHtml(), SpecialUpload\processUpload(), ChangesListSpecialPage\registerFilters(), SpecialWatchlist\registerFilters(), ChangesListSpecialPage\runMainQueryHook(), SpecialEmailUser\sendEmailForm(), SpecialNewpages\setup(), SpecialSearch\showCreateLink(), SpecialUndelete\showHistory(), SpecialAutoblockList\showList(), SpecialBlockList\showList(), SpecialSearch\showResults(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), and AuthManagerSpecialPage\trySubmit().
SpecialPage::getLanguage | ( | ) |
Shortcut to get user's language.
Definition at line 902 of file SpecialPage.php.
References getContext().
Referenced by SpecialEditTags\buildCheckBoxes(), SpecialActiveUsers\buildForm(), FormSpecialPage\checkExecutePermissions(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialFileDuplicateSearch\execute(), SpecialLinkSearch\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialUserRights\execute(), SpecialNewpages\filterLinks(), WantedQueryPage\formatResult(), SpecialAncientPages\formatResult(), SpecialBrokenRedirects\formatResult(), SpecialDoubleRedirects\formatResult(), SpecialFewestRevisions\formatResult(), SpecialListRedirects\formatResult(), SpecialMIMESearch\formatResult(), SpecialMostCategories\formatResult(), SpecialMostInterwikis\formatResult(), SpecialMostLinked\formatResult(), SpecialMostLinkedCategories\formatResult(), SpecialMostLinkedTemplates\formatResult(), SpecialShortPages\formatResult(), SpecialUnusedTemplates\formatResult(), SpecialUnwatchedPages\formatResult(), SpecialWantedCategories\formatResult(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialBotPasswords\getFormFields(), SpecialPageLanguage\getFormFields(), SpecialNewpages\parseParams(), SpecialBlock\postHtml(), SpecialUpload\processVerificationError(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialMovePage\showForm(), SpecialEditTags\showForm(), SpecialRevisionDelete\showForm(), and SpecialRevisionDelete\tryShowFile().
|
protected |
Shortcut to get language's converter.
Reimplemented in PageQueryPage.
Definition at line 939 of file SpecialPage.php.
SpecialPage::getLinkRenderer | ( | ) |
Definition at line 1100 of file SpecialPage.php.
Referenced by SpecialAllMessages\execute(), SpecialCategories\execute(), SpecialDeletedContributions\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(), 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(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialAutoblockList\getBlockListPager(), SpecialBlockList\getBlockListPager(), SpecialBotPasswords\getFormFields(), SpecialEmailUser\getFormFields(), SpecialUpload\getUploadForm(), LoginSignupSpecialPage\load(), WantedQueryPage\makeWlhLink(), SpecialWatchlist\outputChangesList(), SpecialEditWatchlist\outputSubtitle(), SpecialMediaStatistics\outputTableRow(), SpecialBlock\postHtml(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), MediaWiki\Specials\SpecialMovePage\showForm(), SpecialRevisionDelete\showForm(), SpecialPrefixindex\showPrefixChunk(), SpecialSearch\showResults(), SpecialChangeCredentials\showSubpageList(), and SpecialUpload\showUploadWarning().
SpecialPage::getLocalName | ( | ) |
Get the localised name of the special page.
Definition at line 300 of file SpecialPage.php.
References getSpecialPageFactory().
|
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.
Reimplemented in AuthManagerSpecialPage, SpecialBotPasswords, SpecialChangeEmail, SpecialCreateAccount, SpecialUnlinkAccounts, and SpecialUserLogin.
Definition at line 447 of file SpecialPage.php.
Referenced by FormSpecialPage\execute().
SpecialPage::getName | ( | ) |
Get the name of this Special Page.
Reimplemented in SpecialDiff.
Definition at line 204 of file SpecialPage.php.
References $mName.
Referenced by checkLoginSecurityLevel(), SpecialContribute\execute(), SpecialRandomPage\execute(), FormSpecialPage\getForm(), AuthManagerSpecialPage\getLoginSecurityLevel(), SpecialBotPasswords\getLoginSecurityLevel(), SpecialChangeEmail\getLoginSecurityLevel(), FormSpecialPage\getMessagePrefix(), SpecialAllMyUploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMylog\getRedirect(), SpecialMypage\getRedirect(), SpecialMytalk\getRedirect(), SpecialMyuploads\getRedirect(), AuthManagerSpecialPage\getToken(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), LoginSignupSpecialPage\mainLoginForm(), SpecialBlock\maybeAlterFormDefaults(), SpecialBotPasswords\onSubmit(), SpecialLockdb\onSubmit(), SpecialEditWatchlist\outputSubtitle(), ChangesListSpecialPage\runMainQueryHook(), LoginSignupSpecialPage\showSuccessPage(), and SpecialCreateAccount\successfulAction().
SpecialPage::getOutput | ( | ) |
Get the OutputPage being used for this instance.
Definition at line 862 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\__construct(), SpecialLog\addHeader(), ChangesListSpecialPage\addModules(), SpecialRevisionDelete\addUsageText(), SpecialChangeContentModel\alterForm(), SpecialPageLanguage\alterForm(), AuthManagerSpecialPage\beforeExecute(), SpecialUserLogin\beforeExecute(), checkLoginSecurityLevel(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialRecentChangesLinked\doMainQuery(), SpecialConfirmEmail\execute(), SpecialBookSources\execute(), SpecialEditWatchlist\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(), SpecialContribute\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(), MediaWiki\Specials\SpecialMovePage\execute(), SpecialMute\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPasswordReset\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialRandomPage\execute(), SpecialRenameuser\execute(), SpecialResetTokens\execute(), SpecialRevisionDelete\execute(), SpecialRunJobs\execute(), SpecialSearch\execute(), SpecialSpecialpages\execute(), SpecialStatistics\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), SpecialUnwatchedPages\execute(), MediaWiki\Specials\SpecialUserRights\execute(), ChangesListSpecialPage\execute(), DisabledSpecialPage\execute(), LoginSignupSpecialPage\execute(), RedirectSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialLinkAccounts\execute(), SpecialPageData\execute(), SpecialRecentChanges\execute(), SpecialUnlinkAccounts\execute(), SpecialWatchlist\execute(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\form(), SpecialChangeCredentials\getAuthFormDescriptor(), SpecialBlock\getFormFields(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), ChangesListSpecialPage\includeRcFiltersApp(), LoginSignupSpecialPage\mainLoginForm(), SpecialBlock\maybeAlterFormDefaults(), SpecialRedirectWithAction\onFormSubmit(), SpecialDiff\onFormSubmit(), SpecialNewSection\onFormSubmit(), SpecialPermanentLink\onFormSubmit(), SpecialBotPasswords\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialBotPasswords\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialChangeEmail\onSuccess(), SpecialLockdb\onSuccess(), SpecialMute\onSuccess(), SpecialPageLanguage\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialResetTokens\onSuccess(), SpecialUnlockdb\onSuccess(), SpecialUserLogout\onSuccess(), SpecialWhatLinksHere\onSuccess(), SpecialWatchlist\outputChangesList(), SpecialMediaStatistics\outputMediaType(), ChangesListSpecialPage\outputNoResults(), SpecialRecentChangesLinked\outputNoResults(), SpecialMediaStatistics\outputResults(), SpecialEditWatchlist\outputSubtitle(), SpecialMediaStatistics\outputTableEnd(), SpecialMediaStatistics\outputTableRow(), SpecialMediaStatistics\outputTableStart(), ChangesListSpecialPage\outputTimeout(), SpecialBlock\postHtml(), SpecialBlock\preHtml(), SpecialPageLanguage\preHtml(), SpecialUpload\processUpload(), SpecialEmailUser\sendEmailForm(), SpecialUserLogin\setHeaders(), SpecialNewFiles\setTopText(), SpecialRecentChangesLinked\setTopText(), SpecialSearch\setupPage(), SpecialTags\showActivateDeactivateForm(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialSearch\showCreateLink(), SpecialTags\showDeleteTagForm(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialMovePage\showForm(), SpecialEditTags\showForm(), SpecialPageData\showForm(), SpecialRevisionDelete\showForm(), SpecialUndelete\showHistory(), SpecialAutoblockList\showList(), SpecialBlockList\showList(), SpecialPrefixindex\showPrefixChunk(), SpecialPreferences\showResetForm(), SpecialSearch\showResults(), SpecialChangeCredentials\showSubpageList(), LoginSignupSpecialPage\showSuccessPage(), SpecialAutoblockList\showTotal(), SpecialUploadStash\showUpload(), SpecialUpload\showUploadForm(), SpecialUpload\showUploadWarning(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialPreferences\submitReset(), SpecialChangeCredentials\success(), SpecialEditTags\success(), SpecialRevisionDelete\success(), SpecialCreateAccount\successfulAction(), MediaWiki\Specials\SpecialUserRights\switchForm(), SpecialRevisionDelete\tryShowFile(), SpecialUpload\unsaveUploadedFile(), and ChangesListSpecialPage\validateOptions().
SpecialPage::getPageTitle | ( | $subpage = false | ) |
Get a self-referential title object.
string | false | $subpage |
Definition at line 816 of file SpecialPage.php.
Referenced by SpecialActiveUsers\buildForm(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialApiHelp\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialFileDuplicateSearch\execute(), SpecialLinkSearch\execute(), SpecialPagesWithProp\execute(), SpecialSearch\execute(), LoginSignupSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialWatchlist\execute(), SpecialNewpages\filterLinks(), SpecialUndelete\formatRevisionRow(), FormSpecialPage\getForm(), SpecialBotPasswords\getFormFields(), SpecialMIMESearch\getPageHeader(), SpecialUpload\getUploadForm(), AuthManagerSpecialPage\handleReturnBeforeExecute(), LoginSignupSpecialPage\load(), SpecialPrefixindex\namespacePrefixForm(), SpecialDiff\onFormSubmit(), SpecialPermanentLink\onFormSubmit(), SpecialBotPasswords\onSubmit(), SpecialBotPasswords\onSuccess(), SpecialAllPages\outputHTMLForm(), AuthManagerSpecialPage\performAuthenticationStep(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialEmailUser\sendEmailForm(), SpecialSearch\setupPage(), SpecialTags\showActivateDeactivateForm(), SpecialTags\showDeleteTagForm(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialMovePage\showForm(), SpecialEditTags\showForm(), SpecialRevisionDelete\showForm(), SpecialUndelete\showHistory(), SpecialPrefixindex\showPrefixChunk(), SpecialPreferences\showResetForm(), SpecialPreferences\submitReset(), SpecialCreateAccount\successfulAction(), MediaWiki\Specials\SpecialUserRights\switchForm(), SpecialRevisionDelete\tryShowFile(), SpecialEmailUser\userForm(), and ChangesListSpecialPage\validateOptions().
SpecialPage::getRequest | ( | ) |
Get the WebRequest being used for this instance.
Reimplemented in AuthManagerSpecialPage.
Definition at line 852 of file SpecialPage.php.
References getContext().
Referenced by SpecialBlock\alterForm(), SpecialChangeEmail\alterForm(), SpecialPasswordReset\alterForm(), SpecialUserLogout\alterForm(), SpecialActiveUsers\buildForm(), FormSpecialPage\checkExecutePermissions(), checkLoginSecurityLevel(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialRedirect\dispatchFile(), SpecialBookSources\execute(), SpecialEditWatchlist\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(), MediaWiki\Specials\SpecialMovePage\execute(), SpecialNewFiles\execute(), SpecialPagesWithProp\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialRandomPage\execute(), SpecialRenameuser\execute(), SpecialRevisionDelete\execute(), SpecialRunJobs\execute(), SpecialSearch\execute(), SpecialTags\execute(), SpecialUnblock\execute(), MediaWiki\Specials\SpecialUserRights\execute(), SpecialWithoutInterwiki\execute(), ChangesListSpecialPage\execute(), SpecialExpandTemplates\execute(), SpecialPageData\execute(), SpecialRecentChanges\execute(), SpecialWatchlist\execute(), SpecialRevisionDelete\extractBitParams(), ChangesListSpecialPage\fetchOptionsFromRequest(), SpecialWatchlist\fetchOptionsFromRequest(), ChangesListSpecialPage\getDefaultOptions(), FormSpecialPage\getForm(), SpecialPasswordReset\getFormFields(), SpecialFilepath\getRedirect(), RedirectSpecialPage\getRedirectQuery(), ChangesListSpecialPage\isStructuredFilterUiEnabled(), SpecialSearch\load(), SpecialUpload\loadRequest(), ChangesListSpecialPage\makeLegend(), SpecialBlock\maybeAlterFormDefaults(), SpecialBotPasswords\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialChangeEmail\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialWhatLinksHere\onSuccess(), SpecialUpload\processUpload(), SpecialSearch\saveNamespaces(), MediaWiki\Specials\SpecialUserRights\saveUserGroups(), SpecialBlock\setParameter(), SpecialChangeContentModel\setParameter(), SpecialNewpages\setup(), SpecialRevisionDelete\showForm(), 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 212 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 971 of file SpecialPage.php.
|
static |
Get a localised Title object for a page name with a possibly unvalidated subpage.
string | $name | |
string | false | $subpage | Subpage string, or false to not use a subpage |
Definition at line 161 of file SpecialPage.php.
References NS_SPECIAL.
Referenced by SpecialFilepath\getRedirect(), SpecialMylog\getRedirect(), Skin\makeSpecialUrl(), and Skin\makeSpecialUrlSubpage().
SpecialPage::getShortDescription | ( | string | $path = '' | ) |
Similar to getDescription but takes into account sub pages and designed for display in tabs.
string | $path | (optional) |
Reimplemented in SpecialContribute, SpecialContributions, SpecialEditWatchlist, and SpecialWatchlist.
Definition at line 801 of file SpecialPage.php.
SpecialPage::getSkin | ( | ) |
Shortcut to get the skin being used for this instance.
Definition at line 892 of file SpecialPage.php.
References getContext().
Referenced by SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialListFiles\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), MediaWiki\Specials\SpecialUserRights\execute(), SpecialWhatLinksHere\onSuccess(), SpecialEditWatchlist\outputSubtitle(), SpecialBlock\setParameter(), SpecialRecentChangesLinked\setTopText(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), and MediaWiki\Specials\SpecialMovePage\showForm().
|
finalprotected |
Definition at line 1201 of file SpecialPage.php.
Referenced by SpecialBlockList\execute(), SpecialAutoblockList\getBlockListPager(), SpecialBlockList\getBlockListPager(), and getLocalName().
|
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.
Reimplemented in SpecialMylog, SpecialEditWatchlist, SpecialListUsers, SpecialLog, SpecialRedirect, SpecialTags, and SpecialWatchlist.
Definition at line 607 of file SpecialPage.php.
|
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 | false | $subpage | Subpage string, or false to not use a subpage |
string | $fragment | The link fragment (after the "#") |
Definition at line 132 of file SpecialPage.php.
Referenced by ApiQuerySiteinfo\appendExtensions(), MediaWiki\Preferences\SignatureValidator\applyPreSaveTransform(), SpecialUserLogin\beforeExecute(), MediaWiki\Linker\Linker\blockLink(), Skin\buildNavUrls(), SpecialEditWatchlist\buildTools(), checkLoginSecurityLevel(), ApiFormatBase\closePrinter(), DifferenceEngine\deletedLink(), MediaWiki\Linker\Linker\emailLink(), SpecialEditWatchlist\execute(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), SpecialResetTokens\execute(), SpecialWatchlist\execute(), ApiFeedContributions\execute(), ApiFeedWatchlist\execute(), ApiHelp\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), LogFormatter\formatParameterValueForApi(), SpecialListDuplicatedFiles\formatResult(), SpecialUnusedTemplates\formatResult(), BlockLogFormatter\getActionLinks(), ContentModelLogFormatter\getActionLinks(), DeleteLogFormatter\getActionLinks(), MergeLogFormatter\getActionLinks(), MoveLogFormatter\getActionLinks(), RevDelArchivedFileItem\getApiData(), RevDelFileItem\getApiData(), ApiQueryUserInfo\getCurrentUserInfo(), HistoryAction\getDescription(), RevDelArchiveItem\getDiffLink(), LoginSignupSpecialPage\getFieldDefinitions(), MediaWiki\Title\Title\getFullUrlForRedirect(), ChangeTagsLogItem\getHTML(), RevDelLogItem\getHTML(), RevDelArchivedFileItem\getLink(), RevDelFileItem\getLink(), BlockLogFormatter\getMessageParameters(), MediaWiki\Search\TitleMatcher\getNearMatchInternal(), ChangesListSpecialPage\getRcFiltersConfigSummary(), ChangesListSpecialPage\getRcFiltersConfigVars(), ManualLogEntry\getRecentChange(), SpecialRedirectToSpecial\getRedirect(), SpecialAllMyUploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), RevDelArchiveItem\getRevisionLink(), MediaWiki\getTitle(), AllMessagesTablePager\getTitle(), ImageListPager\getTitle(), MediaWiki\SpecialPage\SpecialPageFactory\getTitleForAlias(), Skin\getUndeleteLink(), MediaWiki\Linker\Linker\getUploadUrl(), ImagePage\getUploadUrl(), SpecialContributions\getUserLinks(), ExternalUserNames\getUserLinkTitle(), AuthManagerSpecialPage\handleReauthBeforeExecute(), ImageHistoryList\imageHistoryLine(), EnhancedChangesList\makeCacheGroupingKey(), WantedQueryPage\makeWlhLink(), RecentChangesUpdateJob\newCacheUpdateJob(), RecentChangesUpdateJob\newPurgeJob(), newSearchPage(), MarkpatrolledAction\onSubmit(), ImagePage\openShowImage(), SpecialMediaStatistics\outputTableRow(), InfoAction\pageInfo(), SpecialBlock\postHtml(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), EnhancedChangesList\recentChangesBlockLine(), UserNotLoggedIn\report(), MediaWiki\Linker\Linker\revDeleteLink(), LogPage\saveContent(), UserMailer\sendInternal(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\sendPasswordResetEmail(), McrUndoAction\show(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), LogEventsList\showOptions(), OutputPage\showPermissionsErrorPage(), SpecialUpload\showUploadWarning(), CoreParserFunctions\special(), MediaWiki\Linker\Linker\specialLink(), MediaWiki\Mail\EmailUser\submit(), RevDelLogList\suggestTarget(), ChangeTags\updateTagsWithChecks(), MediaWiki\Linker\Linker\userLink(), MediaWiki\Linker\Linker\userToolLinks(), MediaWiki\Preferences\DefaultPreferencesFactory\watchlistPreferences(), and wfOpenSearchDescMain().
|
static |
Get a localised TitleValue object for a specified special page name.
string | $name | |
string | false | $subpage | Subpage string, or false to not use a subpage |
string | $fragment | The link fragment (after the "#") |
Definition at line 147 of file SpecialPage.php.
References NS_SPECIAL.
Referenced by TagLogFormatter\getMessageParameters(), LogEventsList\logLine(), and InfoAction\pageInfo().
SpecialPage::getUser | ( | ) |
Shortcut to get the User executing this instance.
Definition at line 872 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Specials\SpecialUserRights\addLogEntry(), SpecialUserLogout\alterForm(), SpecialNewFiles\buildForm(), SpecialBotPasswords\checkExecutePermissions(), checkPermissions(), SpecialUndelete\checkPermissions(), SpecialWatchlist\doMainQuery(), MediaWiki\Specials\SpecialUserRights\doSaveUserGroups(), SpecialConfirmEmail\execute(), FormSpecialPage\execute(), SpecialContribute\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialImport\execute(), MediaWiki\Specials\SpecialMovePage\execute(), SpecialPreferences\execute(), SpecialRenameuser\execute(), SpecialRevisionDelete\execute(), SpecialUndelete\execute(), SpecialUserLogout\execute(), MediaWiki\Specials\SpecialUserRights\execute(), LoginSignupSpecialPage\execute(), SpecialUnlinkAccounts\execute(), SpecialUploadStash\execute(), SpecialWatchlist\execute(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialEmailUser\getDescription(), SpecialBotPasswords\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialEmailUser\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialResetTokens\getFormFields(), SpecialAllMyUploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMylog\getRedirect(), SpecialMyuploads\getRedirect(), SpecialUndelete\isAllowed(), AuthManagerSpecialPage\loadAuth(), LoginSignupSpecialPage\mainLoginForm(), SpecialBotPasswords\onSubmit(), SpecialChangeEmail\onSubmit(), SpecialLockdb\onSubmit(), SpecialUserLogout\onSubmit(), SpecialResetTokens\onSubmit(), SpecialBotPasswords\onSuccess(), SpecialUserLogout\onSuccess(), SpecialWatchlist\outputChangesList(), SpecialWatchlist\outputFeedLinks(), SpecialEditWatchlist\outputSubtitle(), AuthManagerSpecialPage\performAuthenticationStep(), SpecialWatchlist\registerFilters(), requireLogin(), requireNamedUser(), SpecialUserLogin\setHeaders(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialMovePage\showForm(), SpecialEditTags\showForm(), SpecialRevisionDelete\showForm(), SpecialUndelete\showHistory(), LoginSignupSpecialPage\showSuccessPage(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialPreferences\submitReset(), SpecialConfirmEmail\submitSend(), SpecialChangeCredentials\success(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), SpecialRevisionDelete\tryShowFile(), and MediaWiki\Specials\SpecialUserRights\userCanChangeRights().
SpecialPage::including | ( | $x = null | ) |
Whether the special page is being evaluated via transclusion.
bool | null | $x |
Definition at line 291 of file SpecialPage.php.
References wfSetVar().
Referenced by ChangesListSpecialPage\addModules(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), FormSpecialPage\execute(), SpecialApiHelp\execute(), SpecialContributions\execute(), SpecialListFiles\execute(), SpecialListUsers\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPrefixindex\execute(), MediaWiki\Specials\SpecialWantedPages\execute(), SpecialRecentChanges\execute(), ChangesListSpecialPage\includeRcFiltersApp(), ChangesListSpecialPage\registerFilters(), and SpecialPrefixindex\showPrefixChunk().
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.
Reimplemented in QueryPage.
Definition at line 331 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.
Reimplemented in QueryPage, WantedQueryPage, SpecialAncientPages, SpecialBrokenRedirects, SpecialDeadendPages, SpecialDoubleRedirects, SpecialFewestRevisions, SpecialListDuplicatedFiles, SpecialListRedirects, SpecialLonelyPages, SpecialMediaStatistics, SpecialMIMESearch, SpecialMostCategories, MediaWiki\Specials\SpecialMostImages, SpecialMostInterwikis, SpecialMostLinked, SpecialMostLinkedTemplates, SpecialUncategorizedImages, SpecialUncategorizedPages, SpecialUnusedCategories, SpecialUnusedImages, SpecialUnusedTemplates, SpecialUnwatchedPages, and SpecialWithoutInterwiki.
Definition at line 317 of file SpecialPage.php.
SpecialPage::isIncludable | ( | ) |
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
Reimplemented in IncludableSpecialPage, SpecialApiHelp, SpecialRecentChanges, and MediaWiki\Specials\SpecialWantedPages.
Definition at line 259 of file SpecialPage.php.
References $mIncludable.
SpecialPage::isListed | ( | ) |
Whether this special page is listed in Special:SpecialPages.
Reimplemented in SpecialRedirectWithAction, UnlistedSpecialPage, SpecialBotPasswords, SpecialChangeCredentials, SpecialChangeEmail, SpecialDiff, SpecialLinkAccounts, SpecialNewSection, SpecialPageData, SpecialPasswordReset, SpecialPermanentLink, SpecialResetTokens, SpecialUnlinkAccounts, SpecialUserLogin, and SpecialUserLogout.
Definition at line 224 of file SpecialPage.php.
SpecialPage::isRestricted | ( | ) |
Can be overridden by subclasses with more complicated permissions schemes.
Definition at line 343 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 249 of file SpecialPage.php.
References wfDeprecated(), and wfSetVar().
SpecialPage::maxIncludeCacheTime | ( | ) |
How long to cache page when it is being included.
Definition at line 274 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 984 of file SpecialPage.php.
References getContext().
Referenced by SpecialBlock\alterForm(), SpecialChangeEmail\alterForm(), SpecialLockdb\alterForm(), SpecialPasswordReset\alterForm(), SpecialUnlockdb\alterForm(), SpecialUserLogout\alterForm(), SpecialEditTags\buildCheckBoxes(), SpecialRevisionDelete\buildCheckBoxes(), SpecialNewFiles\buildForm(), SpecialComparePages\checkExistingRevision(), SpecialRecentChangesLinked\doMainQuery(), SpecialEditWatchlist\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialApiHelp\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialContribute\execute(), SpecialContributions\execute(), SpecialDeletedContributions\execute(), SpecialExport\execute(), SpecialFileDuplicateSearch\execute(), SpecialListFiles\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialListUsers\execute(), SpecialMergeHistory\execute(), MediaWiki\Specials\SpecialMovePage\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialStatistics\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), MediaWiki\Specials\SpecialUserRights\execute(), DisabledSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\filterLinks(), 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(), SpecialChangeCredentials\getAuthForm(), LoginSignupSpecialPage\getBenefitsContainerHtml(), MediaWiki\Specials\SpecialMostImages\getCellHtml(), SpecialCreateAccount\getDescription(), SpecialDiff\getDescription(), SpecialEditTags\getDescription(), SpecialEmailUser\getDescription(), SpecialMute\getDescription(), SpecialUserLogin\getDescription(), SpecialUpload\getDupeWarning(), SpecialRecentChangesLinked\getExtraOptions(), FormSpecialPage\getForm(), SpecialBlock\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialChangeContentModel\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialEmailUser\getFormFields(), SpecialPageLanguage\getFormFields(), SpecialRedirect\getFormFields(), SpecialResetTokens\getFormFields(), SpecialActiveUsers\getIntroText(), SpecialProtectedpages\getLevelMenu(), SpecialBrokenRedirects\getPageHeader(), SpecialDeadendPages\getPageHeader(), SpecialDoubleRedirects\getPageHeader(), SpecialLonelyPages\getPageHeader(), SpecialUnusedCategories\getPageHeader(), SpecialUnusedImages\getPageHeader(), SpecialUnusedTemplates\getPageHeader(), MediaWiki\Specials\SpecialWantedFiles\getPageHeader(), LoginSignupSpecialPage\getPageHtml(), SpecialWatchlist\getShortDescriptionHelper(), SpecialMediaStatistics\getTableHeaderRow(), SpecialProtectedpages\getTypeMenu(), SpecialUpload\getUploadForm(), ChangesListSpecialPage\includeRcFiltersApp(), LoginSignupSpecialPage\load(), SpecialUpload\loadRequest(), LoginSignupSpecialPage\mainLoginForm(), MediaWiki\Specials\SpecialUserRights\makeGroupNameList(), WantedQueryPage\makeWlhLink(), SpecialLockdb\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialBotPasswords\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialLockdb\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialUnlockdb\onSuccess(), SpecialWhatLinksHere\onSuccess(), SpecialWatchlist\outputChangesList(), SpecialMediaStatistics\outputMediaType(), ChangesListSpecialPage\outputNoResults(), SpecialRecentChangesLinked\outputNoResults(), SpecialMediaStatistics\outputResults(), SpecialEditWatchlist\outputSubtitle(), SpecialMediaStatistics\outputTableEnd(), SpecialMediaStatistics\outputTableRow(), ChangesListSpecialPage\outputTimeout(), SpecialBlock\postHtml(), SpecialBlock\preHtml(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), SpecialEmailUser\sendEmailForm(), SpecialUserLogin\setHeaders(), SpecialNewFiles\setTopText(), SpecialSearch\setupPage(), SpecialTags\showActivateDeactivateForm(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialTags\showDeleteTagForm(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialMovePage\showForm(), SpecialEditTags\showForm(), SpecialRevisionDelete\showForm(), SpecialUndelete\showHistory(), SpecialAutoblockList\showList(), SpecialBlockList\showList(), SpecialProtectedpages\showOptions(), SpecialPrefixindex\showPrefixChunk(), SpecialUpload\showRecoverableUploadError(), SpecialAutoblockList\showTotal(), SpecialUpload\showUploadError(), SpecialUpload\showUploadWarning(), SpecialRevisionDelete\submit(), SpecialConfirmEmail\submitSend(), SpecialEditTags\success(), SpecialLinkAccounts\success(), SpecialRevisionDelete\success(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), MediaWiki\Specials\SpecialUserRights\switchForm(), SpecialUpload\unsaveUploadedFile(), SpecialEmailUser\userForm(), and SpecialChangeContentModel\validateTitle().
|
static |
Get the users preferred search page.
It will fall back to Special:Search if the preference points to a page that doesn't exist or is not defined.
User | $user | Search page can be customized by user preference. |
Definition at line 105 of file SpecialPage.php.
References $title, and getTitleFor().
Referenced by MediaWiki\Skin\SkinComponentSearch\__construct(), and SkinTemplate\prepareQuickTemplate().
|
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'
string | $summaryMessageKey | Message key of the summary |
Definition at line 763 of file SpecialPage.php.
Referenced by SpecialBookSources\execute(), SpecialEditWatchlist\execute(), FormSpecialPage\execute(), SpecialActiveUsers\execute(), SpecialAllPages\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialComparePages\execute(), SpecialContribute\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(), MediaWiki\Specials\SpecialMovePage\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialRevisionDelete\execute(), SpecialSpecialpages\execute(), SpecialStatistics\execute(), SpecialTags\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), MediaWiki\Specials\SpecialUserRights\execute(), ChangesListSpecialPage\execute(), DisabledSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialSearch\setupPage(), SpecialRedirectWithAction\showNoRedirectPage(), SpecialDiff\showNoRedirectPage(), SpecialNewSection\showNoRedirectPage(), and SpecialPermanentLink\showNoRedirectPage().
|
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 662 of file SpecialPage.php.
Referenced by 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) |
SearchEngineFactory | null | $searchEngineFactory | Provide the service |
Definition at line 631 of file SpecialPage.php.
References $t, $title, and SearchEngineFactory\create().
Referenced by SpecialRedirectWithAction\prefixSearchSubpages(), SpecialAllPages\prefixSearchSubpages(), SpecialChangeContentModel\prefixSearchSubpages(), SpecialNewSection\prefixSearchSubpages(), SpecialPageLanguage\prefixSearchSubpages(), SpecialRecentChangesLinked\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 [ "bar", "baz" ]
prefixSearchSubpages( "f" )
should return [ "foo" ]
prefixSearchSubpages( "z" )
should return []
prefixSearchSubpages( "" )
should return [ foo", "bar", "baz" ]</tt>
\par "Stability: stable" to override - Parameters
-
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)
- Returns
- string[] Matching subpages
Reimplemented in SpecialRedirectWithAction, SpecialAllPages, SpecialBlock, SpecialChangeContentModel, SpecialContributions, SpecialDeletedContributions, SpecialEmailUser, SpecialFileDuplicateSearch, SpecialFilepath, SpecialListFiles, MediaWiki\Specials\SpecialMovePage, SpecialNewSection, SpecialPageLanguage, SpecialPagesWithProp, SpecialRecentChangesLinked, SpecialRenameuser, SpecialUnblock, SpecialUndelete, MediaWiki\Specials\SpecialUserRights, and SpecialWhatLinksHere.
Definition at line 589 of file SpecialPage.php.
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 415 of file SpecialPage.php.
References getUser().
Referenced by SpecialConfirmEmail\execute(), and SpecialMute\execute().
SpecialPage::requireNamedUser | ( | $reasonMsg = 'exception-nologin-text', | |
$titleMsg = 'exception-nologin' ) |
If the user is not logged in or is a temporary user, throws UserNotLoggedIn.
string | $reasonMsg | [optional] Message key to be displayed on login page |
string | $titleMsg | [optional] Passed on to UserNotLoggedIn constructor |
UserNotLoggedIn |
Definition at line 431 of file SpecialPage.php.
References getUser().
Referenced by SpecialChangeEmail\checkExecutePermissions(), SpecialEditWatchlist\execute(), SpecialBotPasswords\execute(), SpecialPreferences\execute(), SpecialResetTokens\execute(), and SpecialWatchlist\execute().
|
final |
Entry point.
string | null | $subPage |
Definition at line 693 of file SpecialPage.php.
|
finalprotected |
Set the injected AuthManager from the special page constructor.
AuthManager | $authManager |
Definition at line 553 of file SpecialPage.php.
Referenced by SpecialChangeCredentials\__construct(), SpecialChangeEmail\__construct(), SpecialCreateAccount\__construct(), SpecialLinkAccounts\__construct(), SpecialUnlinkAccounts\__construct(), SpecialUserLogin\__construct(), and SpecialBotPasswords\__construct().
|
final |
Set content language.
Language | $contentLanguage |
Definition at line 928 of file SpecialPage.php.
SpecialPage::setContext | ( | $context | ) |
Sets the context this SpecialPage is executed in.
IContextSource | $context |
Definition at line 826 of file SpecialPage.php.
Referenced by Skin\buildNavUrls(), ApiQueryUsers\execute(), and LoginSignupSpecialPage\setSessionUserForCurrentRequest().
|
protected |
Sets headers - this should be called from the execute() method of all derived classes!
Reimplemented in SpecialUserLogin.
Definition at line 672 of file SpecialPage.php.
Referenced by SpecialConfirmEmail\execute(), SpecialEmailInvalidate\execute(), SpecialBookSources\execute(), SpecialEditWatchlist\execute(), FormSpecialPage\execute(), SpecialActiveUsers\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialApiSandbox\execute(), SpecialAutoblockList\execute(), SpecialBlankpage\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialComparePages\execute(), SpecialContribute\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(), MediaWiki\Specials\SpecialMovePage\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialRandomPage\execute(), SpecialRenameuser\execute(), SpecialRevisionDelete\execute(), SpecialSpecialpages\execute(), SpecialStatistics\execute(), SpecialTags\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), SpecialUserLogout\execute(), MediaWiki\Specials\SpecialUserRights\execute(), ChangesListSpecialPage\execute(), DisabledSpecialPage\execute(), LoginSignupSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialSearch\setupPage(), SpecialRedirectWithAction\showNoRedirectPage(), SpecialDiff\showNoRedirectPage(), SpecialNewSection\showNoRedirectPage(), and SpecialPermanentLink\showNoRedirectPage().
SpecialPage::setHookContainer | ( | HookContainer | $hookContainer | ) |
HookContainer | $hookContainer |
Definition at line 1159 of file SpecialPage.php.
SpecialPage::setLinkRenderer | ( | LinkRenderer | $linkRenderer | ) |
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 236 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.
array | $data |
Reimplemented in FormSpecialPage.
Definition at line 468 of file SpecialPage.php.
Referenced by checkLoginSecurityLevel().
|
final |
SpecialPageFactory | $specialPageFactory |
Definition at line 1193 of file SpecialPage.php.
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.
User | $user | The user to check |
Reimplemented in SpecialPasswordReset, SpecialUndelete, and SpecialUpload.
Definition at line 359 of file SpecialPage.php.
Referenced by checkPermissions().
|
protected |
Call wfTransactionalTimeLimit() if this request was POSTed.
Definition at line 1090 of file SpecialPage.php.
References wfTransactionalTimeLimit().
Referenced by SpecialImport\execute(), SpecialMergeHistory\execute(), MediaWiki\Specials\SpecialMovePage\execute(), SpecialRenameuser\execute(), SpecialRevisionDelete\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), and SpecialUploadStash\execute().
|
protected |
Current request context.
Definition at line 74 of file SpecialPage.php.
|
protected |
Whether the special page can be included in an article.
Definition at line 68 of file SpecialPage.php.
Referenced by isIncludable().
|
protected |
Whether or not this special page is being included from an article.
Definition at line 65 of file SpecialPage.php.
|
protected |
The canonical name of this special page Also used for the default.
Definition at line 50 of file SpecialPage.php.
Referenced by getName().
|
protected |
Minimum user level required to access this page, or "" for anyone.
Also used to categorise the pages in Special:Specialpages
Definition at line 59 of file SpecialPage.php.
Referenced by getRestriction().