MediaWiki REL1_41
|
Parent class for all special pages. More...
Inherits MessageLocalizer.
Inherited by MediaWiki\SpecialPage\AuthManagerSpecialPage, MediaWiki\SpecialPage\ChangesListSpecialPage, MediaWiki\SpecialPage\FormSpecialPage, MediaWiki\SpecialPage\IncludableSpecialPage, MediaWiki\SpecialPage\QueryPage, MediaWiki\SpecialPage\UnlistedSpecialPage, MediaWiki\Specials\SpecialActiveUsers, MediaWiki\Specials\SpecialAllMessages, MediaWiki\Specials\SpecialApiSandbox, MediaWiki\Specials\SpecialAutoblockList, MediaWiki\Specials\SpecialBlockList, MediaWiki\Specials\SpecialBookSources, MediaWiki\Specials\SpecialCategories, MediaWiki\Specials\SpecialComparePages, MediaWiki\Specials\SpecialDeletedContributions, MediaWiki\Specials\SpecialEmailUser, MediaWiki\Specials\SpecialExpandTemplates, MediaWiki\Specials\SpecialExport, MediaWiki\Specials\SpecialFileDuplicateSearch, MediaWiki\Specials\SpecialImport, MediaWiki\Specials\SpecialJavaScriptTest, MediaWiki\Specials\SpecialListGrants, MediaWiki\Specials\SpecialListGroupRights, MediaWiki\Specials\SpecialLog, MediaWiki\Specials\SpecialMergeHistory, MediaWiki\Specials\SpecialPageData, MediaWiki\Specials\SpecialPasswordPolicies, MediaWiki\Specials\SpecialPreferences, MediaWiki\Specials\SpecialProtectedPages, MediaWiki\Specials\SpecialProtectedTitles, MediaWiki\Specials\SpecialRandomPage, MediaWiki\Specials\SpecialRenameUser, MediaWiki\Specials\SpecialSearch, MediaWiki\Specials\SpecialStatistics, MediaWiki\Specials\SpecialTags, MediaWiki\Specials\SpecialTrackingCategories, MediaWiki\Specials\SpecialUnblock, MediaWiki\Specials\SpecialUndelete, MediaWiki\Specials\SpecialUpload, MediaWiki\Specials\SpecialUserRights, and MediaWiki\Specials\SpecialVersion.
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 () | |
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 as the message key 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 65 of file SpecialPage.php.
MediaWiki\SpecialPage\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 211 of file SpecialPage.php.
|
protected |
Adds RSS/atom links.
array | $params |
Definition at line 1018 of file SpecialPage.php.
References wfAppendQuery(), and wfScript().
Referenced by MediaWiki\Specials\SpecialContributions\execute(), and MediaWiki\Specials\SpecialWatchlist\outputFeedLinks().
MediaWiki\SpecialPage\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 1036 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialBlock\alterForm(), MediaWiki\Specials\SpecialChangeContentModel\alterForm(), MediaWiki\Specials\SpecialAllMessages\execute(), MediaWiki\Specials\SpecialApiSandbox\execute(), MediaWiki\Specials\SpecialAutoblockList\execute(), MediaWiki\Specials\SpecialBlockList\execute(), MediaWiki\Specials\SpecialBotPasswords\execute(), MediaWiki\Specials\SpecialBrokenRedirects\execute(), MediaWiki\Specials\SpecialCategories\execute(), MediaWiki\Specials\SpecialComparePages\execute(), MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialDoubleRedirects\execute(), MediaWiki\Specials\SpecialExport\execute(), MediaWiki\Specials\SpecialLinkSearch\execute(), MediaWiki\Specials\SpecialListDuplicatedFiles\execute(), MediaWiki\Specials\SpecialListFiles\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialListRedirects\execute(), MediaWiki\Specials\SpecialLog\execute(), MediaWiki\Specials\SpecialMIMESearch\execute(), MediaWiki\Specials\SpecialMute\execute(), MediaWiki\Specials\SpecialNewFiles\execute(), MediaWiki\Specials\SpecialNewPages\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialProtectedPages\execute(), MediaWiki\Specials\SpecialProtectedTitles\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\Specials\SpecialSpecialPages\execute(), MediaWiki\Specials\SpecialTags\execute(), MediaWiki\Specials\SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\Specials\SpecialUncategorizedImages\execute(), MediaWiki\Specials\SpecialUncategorizedPages\execute(), MediaWiki\Specials\SpecialUndelete\execute(), MediaWiki\Specials\SpecialUnwatchedPages\execute(), MediaWiki\Specials\SpecialUpload\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\Specials\SpecialExpandTemplates\execute(), MediaWiki\Specials\SpecialRecentChanges\execute(), MediaWiki\Specials\SpecialWatchlist\execute(), MediaWiki\Specials\SpecialRecentChangesLinked\getExtraOptions(), MediaWiki\Specials\SpecialRandomInCategory\getFormFields(), MediaWiki\Specials\SpecialSearch\setupPage(), MediaWiki\Specials\SpecialMovePage\showForm(), MediaWiki\Specials\SpecialEditTags\showForm(), MediaWiki\Specials\SpecialRevisionDelete\showForm(), MediaWiki\Specials\SpecialDiff\showNoRedirectPage(), MediaWiki\Specials\SpecialNewSection\showNoRedirectPage(), and MediaWiki\Specials\SpecialPermanentLink\showNoRedirectPage().
|
protected |
Gets called after.
string | null | $subPage |
Definition at line 756 of file SpecialPage.php.
|
protected |
Gets called before.
string | null | $subPage |
Reimplemented in MediaWiki\SpecialPage\AuthManagerSpecialPage, MediaWiki\SpecialPage\LoginSignupSpecialPage, and MediaWiki\Specials\SpecialUserLogin.
Definition at line 744 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 1143 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 517 of file SpecialPage.php.
References MediaWiki\SpecialPage\SpecialPage\getAuthManager(), MediaWiki\SpecialPage\SpecialPage\getFullTitle(), MediaWiki\SpecialPage\SpecialPage\getName(), MediaWiki\SpecialPage\SpecialPage\getOutput(), MediaWiki\SpecialPage\SpecialPage\getRequest(), MediaWiki\SpecialPage\SpecialPage\getTitleFor(), PROTO_HTTPS, MediaWiki\SpecialPage\SpecialPage\setReauthPostData(), wfArrayToCgi(), and wfMessage().
Referenced by MediaWiki\SpecialPage\FormSpecialPage\execute().
MediaWiki\SpecialPage\SpecialPage::checkPermissions | ( | ) |
Checks if userCanExecute, and if not throws a PermissionsError.
PermissionsError |
Reimplemented in MediaWiki\Specials\SpecialCreateAccount, and MediaWiki\Specials\SpecialUndelete.
Definition at line 404 of file SpecialPage.php.
References MediaWiki\SpecialPage\SpecialPage\displayRestrictionError(), MediaWiki\SpecialPage\SpecialPage\getUser(), and MediaWiki\SpecialPage\SpecialPage\userCanExecute().
Referenced by MediaWiki\SpecialPage\FormSpecialPage\checkExecutePermissions(), MediaWiki\Specials\SpecialConfirmEmail\execute(), MediaWiki\Specials\SpecialEmailInvalidate\execute(), MediaWiki\Specials\SpecialEditWatchlist\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialEditTags\execute(), MediaWiki\Specials\SpecialMergeHistory\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\Specials\SpecialRevisionDelete\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\SpecialPage\LoginSignupSpecialPage\execute(), MediaWiki\Specials\SpecialUploadStash\execute(), and MediaWiki\Specials\SpecialWatchlist\execute().
MediaWiki\SpecialPage\SpecialPage::checkReadOnly | ( | ) |
If the wiki is currently in readonly mode, throws a ReadOnlyError.
ReadOnlyError |
Definition at line 417 of file SpecialPage.php.
References MediaWiki\MediaWikiServices\getInstance().
Referenced by MediaWiki\SpecialPage\FormSpecialPage\checkExecutePermissions(), MediaWiki\Specials\SpecialConfirmEmail\execute(), MediaWiki\Specials\SpecialEmailInvalidate\execute(), MediaWiki\Specials\SpecialEditWatchlist\execute(), MediaWiki\Specials\SpecialEditTags\execute(), MediaWiki\Specials\SpecialImport\execute(), MediaWiki\Specials\SpecialMergeHistory\execute(), MediaWiki\Specials\SpecialMovePage\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\Specials\SpecialRevisionDelete\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\Specials\SpecialUpload\execute(), MediaWiki\Specials\SpecialUserRights\execute(), and MediaWiki\Specials\SpecialUndelete\showHistory().
|
protected |
Output an error message telling the user what access level they have to have.
PermissionsError |
Definition at line 392 of file SpecialPage.php.
Referenced by MediaWiki\SpecialPage\SpecialPage\checkPermissions(), and MediaWiki\Specials\SpecialUndelete\checkPermissions().
MediaWiki\SpecialPage\SpecialPage::doesWrites | ( | ) |
Indicates whether this special page may perform database writes.
Reimplemented in MediaWiki\Specials\SpecialBlock, MediaWiki\Specials\SpecialChangeContentModel, MediaWiki\Specials\SpecialChangeCredentials, MediaWiki\Specials\SpecialChangeEmail, MediaWiki\Specials\SpecialConfirmEmail, MediaWiki\Specials\SpecialCreateAccount, MediaWiki\Specials\SpecialEditTags, MediaWiki\Specials\SpecialEditWatchlist, MediaWiki\Specials\SpecialEmailInvalidate, MediaWiki\Specials\SpecialEmailUser, MediaWiki\Specials\SpecialImport, MediaWiki\Specials\SpecialLockdb, MediaWiki\Specials\SpecialMergeHistory, MediaWiki\Specials\SpecialMovePage, MediaWiki\Specials\SpecialPageLanguage, MediaWiki\Specials\SpecialPasswordReset, MediaWiki\Specials\SpecialPreferences, MediaWiki\Specials\SpecialRenameUser, MediaWiki\Specials\SpecialResetTokens, MediaWiki\Specials\SpecialRevisionDelete, MediaWiki\Specials\SpecialRunJobs, MediaWiki\Specials\SpecialUnblock, MediaWiki\Specials\SpecialUndelete, MediaWiki\Specials\SpecialUnlockdb, MediaWiki\Specials\SpecialUpload, MediaWiki\Specials\SpecialUploadStash, MediaWiki\Specials\SpecialUserLogin, MediaWiki\Specials\SpecialUserLogout, MediaWiki\Specials\SpecialUserRights, and MediaWiki\Specials\SpecialWatchlist.
Definition at line 1084 of file SpecialPage.php.
MediaWiki\SpecialPage\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 MediaWiki\Specials\SpecialConfirmEmail, MediaWiki\Specials\SpecialEmailInvalidate, MediaWiki\Specials\SpecialBookSources, MediaWiki\Specials\SpecialEditWatchlist, MediaWiki\SpecialPage\FormSpecialPage, MediaWiki\SpecialPage\QueryPage, MediaWiki\Specials\SpecialActiveUsers, MediaWiki\Specials\SpecialAllMessages, MediaWiki\Specials\SpecialAllPages, MediaWiki\Specials\SpecialApiHelp, MediaWiki\Specials\SpecialApiSandbox, MediaWiki\Specials\SpecialAutoblockList, MediaWiki\Specials\SpecialBlankpage, MediaWiki\Specials\SpecialBlockList, MediaWiki\Specials\SpecialBotPasswords, MediaWiki\Specials\SpecialBrokenRedirects, MediaWiki\Specials\SpecialCategories, MediaWiki\Specials\SpecialChangeEmail, MediaWiki\Specials\SpecialComparePages, MediaWiki\Specials\SpecialContribute, MediaWiki\Specials\SpecialContributions, MediaWiki\Specials\SpecialDeletedContributions, MediaWiki\Specials\SpecialDoubleRedirects, MediaWiki\Specials\SpecialEditTags, MediaWiki\Specials\SpecialEmailUser, MediaWiki\Specials\SpecialExport, MediaWiki\Specials\SpecialFileDuplicateSearch, MediaWiki\Specials\SpecialGoToInterwiki, MediaWiki\Specials\SpecialImport, MediaWiki\Specials\SpecialJavaScriptTest, MediaWiki\Specials\SpecialLinkSearch, MediaWiki\Specials\SpecialListDuplicatedFiles, MediaWiki\Specials\SpecialListFiles, MediaWiki\Specials\SpecialListGrants, MediaWiki\Specials\SpecialListGroupRights, MediaWiki\Specials\SpecialListRedirects, MediaWiki\Specials\SpecialListUsers, MediaWiki\Specials\SpecialLog, MediaWiki\Specials\SpecialMergeHistory, MediaWiki\Specials\SpecialMIMESearch, MediaWiki\Specials\SpecialMovePage, MediaWiki\Specials\SpecialMute, MediaWiki\Specials\SpecialNewFiles, MediaWiki\Specials\SpecialNewPages, MediaWiki\Specials\SpecialPagesWithProp, MediaWiki\Specials\SpecialPasswordPolicies, MediaWiki\Specials\SpecialPasswordReset, MediaWiki\Specials\SpecialPreferences, MediaWiki\Specials\SpecialPrefixIndex, MediaWiki\Specials\SpecialProtectedPages, MediaWiki\Specials\SpecialProtectedTitles, MediaWiki\Specials\SpecialRandomPage, MediaWiki\Specials\SpecialRenameUser, MediaWiki\Specials\SpecialResetTokens, MediaWiki\Specials\SpecialRevisionDelete, MediaWiki\Specials\SpecialRunJobs, MediaWiki\Specials\SpecialSearch, MediaWiki\Specials\SpecialSpecialPages, MediaWiki\Specials\SpecialStatistics, MediaWiki\Specials\SpecialTags, MediaWiki\Specials\SpecialTrackingCategories, MediaWiki\Specials\SpecialUnblock, MediaWiki\Specials\SpecialUncategorizedImages, MediaWiki\Specials\SpecialUncategorizedPages, MediaWiki\Specials\SpecialUndelete, MediaWiki\Specials\SpecialUnwatchedPages, MediaWiki\Specials\SpecialUpload, MediaWiki\Specials\SpecialUserLogout, MediaWiki\Specials\SpecialUserRights, MediaWiki\Specials\SpecialVersion, MediaWiki\Specials\SpecialWantedPages, MediaWiki\Specials\SpecialWithoutInterwiki, MediaWiki\SpecialPage\ChangesListSpecialPage, MediaWiki\SpecialPage\DisabledSpecialPage, MediaWiki\SpecialPage\LoginSignupSpecialPage, MediaWiki\SpecialPage\RedirectSpecialPage, MediaWiki\Specials\SpecialChangeCredentials, MediaWiki\Specials\SpecialExpandTemplates, MediaWiki\Specials\SpecialLinkAccounts, MediaWiki\Specials\SpecialPageData, MediaWiki\Specials\SpecialRecentChanges, MediaWiki\Specials\SpecialUnlinkAccounts, MediaWiki\Specials\SpecialUploadStash, and MediaWiki\Specials\SpecialWatchlist.
Definition at line 770 of file SpecialPage.php.
MediaWiki\SpecialPage\SpecialPage::getAssociatedNavigationLinks | ( | ) |
Return an array of strings representing page titles that are discoverable to end users via UI.
Reimplemented in MediaWiki\Specials\SpecialContribute, MediaWiki\Specials\SpecialContributions, MediaWiki\Specials\SpecialEditWatchlist, and MediaWiki\Specials\SpecialWatchlist.
Definition at line 639 of file SpecialPage.php.
|
finalprotected |
Definition at line 584 of file SpecialPage.php.
References MediaWiki\MediaWikiServices\getInstance().
Referenced by MediaWiki\Specials\SpecialChangeEmail\checkExecutePermissions(), MediaWiki\SpecialPage\SpecialPage\checkLoginSecurityLevel(), MediaWiki\Specials\SpecialCreateAccount\checkPermissions(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReauthBeforeExecute(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReturnBeforeExecute(), MediaWiki\SpecialPage\AuthManagerSpecialPage\isActionAllowed(), MediaWiki\Specials\SpecialChangeEmail\isListed(), MediaWiki\Specials\SpecialLinkAccounts\isListed(), MediaWiki\Specials\SpecialUnlinkAccounts\isListed(), MediaWiki\Specials\SpecialUserLogin\isListed(), MediaWiki\Specials\SpecialUserLogout\isListed(), MediaWiki\SpecialPage\LoginSignupSpecialPage\load(), MediaWiki\SpecialPage\AuthManagerSpecialPage\loadAuth(), and MediaWiki\SpecialPage\AuthManagerSpecialPage\performAuthenticationStep().
MediaWiki\SpecialPage\SpecialPage::getAuthority | ( | ) |
Shortcut to get the Authority executing this instance.
Definition at line 911 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialUserRights\changeableGroups(), MediaWiki\Specials\SpecialChangeEmail\checkExecutePermissions(), MediaWiki\Specials\SpecialCreateAccount\checkPermissions(), MediaWiki\Specials\SpecialExport\doExport(), MediaWiki\Specials\SpecialWatchlist\doMainQuery(), MediaWiki\Specials\SpecialUserRights\doSaveUserGroups(), MediaWiki\Specials\SpecialConfirmEmail\execute(), MediaWiki\Specials\SpecialApiSandbox\execute(), MediaWiki\Specials\SpecialLog\execute(), MediaWiki\Specials\SpecialRevisionDelete\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\Specials\SpecialUserRights\fetchUser(), MediaWiki\Specials\SpecialBrokenRedirects\formatResult(), MediaWiki\Specials\SpecialDoubleRedirects\formatResult(), MediaWiki\Specials\SpecialAutoblockList\getBlockListPager(), MediaWiki\Specials\SpecialBlockList\getBlockListPager(), MediaWiki\Specials\SpecialBlock\getFormFields(), MediaWiki\Specials\SpecialEmailUser\onFormSubmit(), MediaWiki\Specials\SpecialChangeContentModel\onSubmit(), MediaWiki\Specials\SpecialPageLanguage\onSubmit(), MediaWiki\SpecialPage\AuthManagerSpecialPage\performAuthenticationStep(), MediaWiki\Specials\SpecialBlock\postHtml(), MediaWiki\Specials\SpecialTags\showActivateDeactivateForm(), MediaWiki\Specials\SpecialTags\showDeleteTagForm(), MediaWiki\Specials\SpecialMovePage\showForm(), MediaWiki\Specials\SpecialPreferences\showResetForm(), MediaWiki\Specials\SpecialEditTags\submit(), MediaWiki\Specials\SpecialPreferences\submitReset(), MediaWiki\Specials\SpecialUserRights\userCanChangeRights(), and MediaWiki\Specials\SpecialExport\userCanOverrideExportDepth().
|
protected |
Reimplemented in MediaWiki\Specials\SpecialNewPages, and MediaWiki\Specials\SpecialRecentChanges.
Definition at line 303 of file SpecialPage.php.
Referenced by MediaWiki\SpecialPage\SpecialPage\maxIncludeCacheTime().
MediaWiki\SpecialPage\SpecialPage::getConfig | ( | ) |
Shortcut to get main config object.
Definition at line 966 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Specials\SpecialRecentChanges\__construct(), MediaWiki\Specials\SpecialPasswordReset\alterForm(), MediaWiki\Specials\SpecialBotPasswords\checkExecutePermissions(), MediaWiki\Specials\SpecialLockdb\checkExecutePermissions(), MediaWiki\Specials\SpecialUnlockdb\checkExecutePermissions(), MediaWiki\Specials\SpecialWatchlist\doMainQuery(), MediaWiki\Specials\SpecialRecentChangesLinked\doMainQuery(), MediaWiki\Specials\SpecialAllMessages\execute(), MediaWiki\Specials\SpecialAllPages\execute(), MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialEmailUser\execute(), MediaWiki\Specials\SpecialExport\execute(), MediaWiki\Specials\SpecialImport\execute(), MediaWiki\Specials\SpecialLinkSearch\execute(), MediaWiki\Specials\SpecialListGrants\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialLog\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\Specials\SpecialRunJobs\execute(), MediaWiki\Specials\SpecialSearch\execute(), MediaWiki\SpecialPage\ChangesListSpecialPage\execute(), MediaWiki\SpecialPage\LoginSignupSpecialPage\execute(), MediaWiki\Specials\SpecialWatchlist\execute(), MediaWiki\Specials\SpecialNewPages\feed(), MediaWiki\Specials\SpecialNewPages\feedTitle(), MediaWiki\Specials\SpecialUserRights\fetchUser(), MediaWiki\Specials\SpecialBlock\getFormFields(), MediaWiki\Specials\SpecialPageLanguage\getFormFields(), MediaWiki\Specials\SpecialPasswordReset\getFormFields(), MediaWiki\Specials\SpecialActiveUsers\getIntroText(), MediaWiki\Specials\SpecialProtectedPages\getLevelMenu(), MediaWiki\SpecialPage\ChangesListSpecialPage\getLinkDays(), MediaWiki\Specials\SpecialUnusedImages\getPageHeader(), MediaWiki\SpecialPage\LoginSignupSpecialPage\getPageHtml(), MediaWiki\Specials\SpecialExport\getPagesFromCategory(), MediaWiki\Specials\SpecialExport\getPagesFromNamespace(), MediaWiki\SpecialPage\LoginSignupSpecialPage\getPreservedParams(), MediaWiki\Specials\SpecialLinkSearch\getQueryInfo(), MediaWiki\Specials\SpecialShortPages\getQueryInfo(), MediaWiki\Specials\SpecialUnusedImages\getQueryInfo(), MediaWiki\Specials\SpecialWantedPages\getQueryInfo(), MediaWiki\Specials\SpecialChangeCredentials\getRequestBlacklist(), MediaWiki\Specials\SpecialLinkAccounts\getRequestBlacklist(), MediaWiki\Specials\SpecialRemoveCredentials\getRequestBlacklist(), MediaWiki\Specials\SpecialUnlinkAccounts\getRequestBlacklist(), MediaWiki\Specials\SpecialResetTokens\getTokensList(), MediaWiki\SpecialPage\ChangesListSpecialPage\includeRcFiltersApp(), MediaWiki\Specials\SpecialBotPasswords\isListed(), MediaWiki\Specials\SpecialEmailUser\isListed(), MediaWiki\Specials\SpecialLinkSearch\linkParameters(), MediaWiki\SpecialPage\LoginSignupSpecialPage\load(), MediaWiki\SpecialPage\SpecialPage\maxIncludeCacheTime(), MediaWiki\Specials\SpecialBlock\maybeAlterFormDefaults(), MediaWiki\Specials\SpecialLockdb\onSubmit(), MediaWiki\Specials\SpecialUnlockdb\onSubmit(), MediaWiki\Specials\SpecialPasswordReset\onSuccess(), MediaWiki\Specials\SpecialWhatLinksHere\onSuccess(), MediaWiki\Specials\SpecialWatchlist\outputChangesList(), MediaWiki\Specials\SpecialAllPages\outputHTMLForm(), MediaWiki\Specials\SpecialBlock\preHtml(), MediaWiki\Specials\SpecialUpload\processUpload(), MediaWiki\Specials\SpecialUpload\processVerificationError(), MediaWiki\SpecialPage\ChangesListSpecialPage\registerFilters(), MediaWiki\Specials\SpecialMovePage\showForm(), MediaWiki\Specials\SpecialSearch\showResults(), MediaWiki\Specials\SpecialUserLogin\successfulAction(), MediaWiki\Specials\SpecialExport\validateLinkDepth(), and MediaWiki\SpecialPage\ChangesListSpecialPage\validateOptions().
|
final |
Shortcut to get content language.
Definition at line 941 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialMIMESearch\__construct(), MediaWiki\Specials\SpecialMostLinkedCategories\__construct(), MediaWiki\Specials\SpecialWantedCategories\__construct(), MediaWiki\Specials\SpecialUnwatchedPages\__construct(), MediaWiki\Specials\SpecialFileDuplicateSearch\__construct(), MediaWiki\Specials\SpecialAncientPages\__construct(), MediaWiki\Specials\SpecialFewestRevisions\__construct(), MediaWiki\Specials\SpecialListGroupRights\__construct(), MediaWiki\Specials\SpecialAllMessages\execute(), MediaWiki\Specials\SpecialPrefixIndex\execute(), MediaWiki\Specials\SpecialExpandTemplates\execute(), MediaWiki\SpecialPage\PageQueryPage\getLanguageConverter(), MediaWiki\Specials\SpecialUpload\getUploadForm(), MediaWiki\Specials\SpecialLockdb\onSubmit(), MediaWiki\Specials\SpecialNewFiles\setTopText(), MediaWiki\Specials\SpecialPrefixIndex\showPrefixChunk(), and MediaWiki\Specials\SpecialSearch\showResults().
MediaWiki\SpecialPage\SpecialPage::getContext | ( | ) |
Gets the context this SpecialPage is executed in.
Definition at line 865 of file SpecialPage.php.
References wfDebug().
Referenced by MediaWiki\Specials\SpecialActiveUsers\buildForm(), MediaWiki\Specials\SpecialUserRights\changeableGroups(), MediaWiki\Specials\SpecialActiveUsers\execute(), MediaWiki\Specials\SpecialAllMessages\execute(), MediaWiki\Specials\SpecialApiHelp\execute(), MediaWiki\Specials\SpecialAutoblockList\execute(), MediaWiki\Specials\SpecialBlockList\execute(), MediaWiki\Specials\SpecialCategories\execute(), MediaWiki\Specials\SpecialComparePages\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialExport\execute(), MediaWiki\Specials\SpecialFileDuplicateSearch\execute(), MediaWiki\Specials\SpecialLinkSearch\execute(), MediaWiki\Specials\SpecialListFiles\execute(), MediaWiki\Specials\SpecialListUsers\execute(), MediaWiki\Specials\SpecialNewFiles\execute(), MediaWiki\Specials\SpecialPagesWithProp\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialProtectedPages\execute(), MediaWiki\Specials\SpecialProtectedTitles\execute(), MediaWiki\Specials\SpecialStatistics\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\Specials\SpecialExpandTemplates\execute(), MediaWiki\Specials\SpecialNewPages\form(), MediaWiki\Specials\SpecialFewestRevisions\formatResult(), MediaWiki\Specials\SpecialMostCategories\formatResult(), MediaWiki\Specials\SpecialMostInterwikis\formatResult(), MediaWiki\Specials\SpecialMostLinked\formatResult(), MediaWiki\Specials\SpecialMostLinkedCategories\formatResult(), MediaWiki\Specials\SpecialMostLinkedTemplates\formatResult(), MediaWiki\Specials\SpecialShortPages\formatResult(), MediaWiki\Specials\SpecialUnwatchedPages\formatResult(), MediaWiki\SpecialPage\AuthManagerSpecialPage\getAuthForm(), MediaWiki\Specials\SpecialAutoblockList\getBlockListPager(), MediaWiki\Specials\SpecialBlockList\getBlockListPager(), MediaWiki\Specials\SpecialUpload\getDupeWarning(), MediaWiki\SpecialPage\FormSpecialPage\getForm(), MediaWiki\Specials\SpecialEditTags\getList(), MediaWiki\Specials\SpecialRevisionDelete\getList(), MediaWiki\Specials\SpecialMIMESearch\getPageHeader(), MediaWiki\Specials\SpecialWithoutInterwiki\getPageHeader(), MediaWiki\SpecialPage\LoginSignupSpecialPage\getPageHtml(), MediaWiki\SpecialPage\AuthManagerSpecialPage\getRequest(), MediaWiki\Specials\SpecialUpload\getUploadForm(), ChangesListBooleanFilter\modifyQuery(), ChangesListStringOptionsFilterGroup\modifyQuery(), MediaWiki\Specials\SpecialPrefixIndex\namespacePrefixForm(), MediaWiki\Specials\SpecialChangeContentModel\onSubmit(), MediaWiki\Specials\SpecialPageLanguage\onSubmit(), MediaWiki\Specials\SpecialWatchlist\outputChangesList(), MediaWiki\Specials\SpecialAllPages\outputHTMLForm(), MediaWiki\SpecialPage\ImageQueryPage\outputResults(), MediaWiki\Specials\SpecialEmailUser\sendEmailForm(), MediaWiki\SpecialPage\AuthManagerSpecialPage\setRequest(), MediaWiki\SpecialPage\LoginSignupSpecialPage\setSessionUserForCurrentRequest(), MediaWiki\Specials\SpecialTags\showActivateDeactivateForm(), MediaWiki\Specials\SpecialTags\showDeleteTagForm(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialRevisionDelete\showForm(), MediaWiki\Specials\SpecialProtectedPages\showOptions(), MediaWiki\Specials\SpecialPreferences\showResetForm(), MediaWiki\SpecialPage\LoginSignupSpecialPage\showReturnToPage(), MediaWiki\SpecialPage\LoginSignupSpecialPage\showSuccessPage(), MediaWiki\Specials\SpecialPreferences\submitReset(), MediaWiki\Specials\SpecialUserLogin\successfulAction(), and MediaWiki\Specials\SpecialEmailUser\userForm().
MediaWiki\SpecialPage\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.
Returning a string from this method has been deprecated since 1.41.
Reimplemented in MediaWiki\Specials\SpecialCreateAccount, MediaWiki\Specials\SpecialDiff, MediaWiki\Specials\SpecialEditTags, MediaWiki\Specials\SpecialEmailUser, MediaWiki\Specials\SpecialMute, and MediaWiki\Specials\SpecialUserLogin.
Definition at line 815 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialNewPages\feedTitle().
MediaWiki\SpecialPage\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 1061 of file SpecialPage.php.
MediaWiki\SpecialPage\SpecialPage::getFullTitle | ( | ) |
Return the full title, including $par.
Definition at line 976 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\SpecialPage\SpecialPage\checkLoginSecurityLevel(), MediaWiki\SpecialPage\LoginSignupSpecialPage\execute(), MediaWiki\SpecialPage\AuthManagerSpecialPage\getAuthForm(), and MediaWiki\SpecialPage\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 MediaWiki\SpecialPage\ChangesListSpecialPage, MediaWiki\SpecialPage\LoginSignupSpecialPage, MediaWiki\SpecialPage\SpecialRedirectWithAction, MediaWiki\Specials\SpecialActiveUsers, MediaWiki\Specials\SpecialAllMessages, MediaWiki\Specials\SpecialAllPages, MediaWiki\Specials\SpecialAncientPages, MediaWiki\Specials\SpecialApiSandbox, MediaWiki\Specials\SpecialAutoblockList, MediaWiki\Specials\SpecialBlock, MediaWiki\Specials\SpecialBlockList, MediaWiki\Specials\SpecialBookSources, MediaWiki\Specials\SpecialBotPasswords, MediaWiki\Specials\SpecialBrokenRedirects, MediaWiki\Specials\SpecialCategories, MediaWiki\Specials\SpecialChangeContentModel, MediaWiki\Specials\SpecialChangeCredentials, MediaWiki\Specials\SpecialChangeEmail, MediaWiki\Specials\SpecialComparePages, MediaWiki\Specials\SpecialContributions, MediaWiki\Specials\SpecialCreateAccount, MediaWiki\Specials\SpecialDeadendPages, MediaWiki\Specials\SpecialDeletedContributions, MediaWiki\Specials\SpecialDiff, MediaWiki\Specials\SpecialDoubleRedirects, MediaWiki\Specials\SpecialEditTags, MediaWiki\Specials\SpecialEmailUser, MediaWiki\Specials\SpecialExpandTemplates, MediaWiki\Specials\SpecialExport, MediaWiki\Specials\SpecialFewestRevisions, MediaWiki\Specials\SpecialFileDuplicateSearch, MediaWiki\Specials\SpecialFilepath, MediaWiki\Specials\SpecialGoToInterwiki, MediaWiki\Specials\SpecialImport, MediaWiki\Specials\SpecialJavaScriptTest, MediaWiki\Specials\SpecialLinkAccounts, MediaWiki\Specials\SpecialLinkSearch, MediaWiki\Specials\SpecialListDuplicatedFiles, MediaWiki\Specials\SpecialListFiles, MediaWiki\Specials\SpecialListGrants, MediaWiki\Specials\SpecialListGroupRights, MediaWiki\Specials\SpecialListRedirects, MediaWiki\Specials\SpecialListUsers, MediaWiki\Specials\SpecialLockdb, MediaWiki\Specials\SpecialLog, MediaWiki\Specials\SpecialLonelyPages, MediaWiki\Specials\SpecialLongPages, MediaWiki\Specials\SpecialMediaStatistics, MediaWiki\Specials\SpecialMergeHistory, MediaWiki\Specials\SpecialMIMESearch, MediaWiki\Specials\SpecialMostCategories, MediaWiki\Specials\SpecialMostImages, MediaWiki\Specials\SpecialMostInterwikis, MediaWiki\Specials\SpecialMostLinked, MediaWiki\Specials\SpecialMostLinkedCategories, MediaWiki\Specials\SpecialMostLinkedTemplates, MediaWiki\Specials\SpecialMostRevisions, MediaWiki\Specials\SpecialMovePage, MediaWiki\Specials\SpecialNewFiles, MediaWiki\Specials\SpecialNewPages, MediaWiki\Specials\SpecialNewSection, MediaWiki\Specials\SpecialPageLanguage, MediaWiki\Specials\SpecialPagesWithProp, MediaWiki\Specials\SpecialPasswordPolicies, MediaWiki\Specials\SpecialPasswordReset, MediaWiki\Specials\SpecialPermanentLink, MediaWiki\Specials\SpecialPreferences, MediaWiki\Specials\SpecialPrefixIndex, MediaWiki\Specials\SpecialProtectedPages, MediaWiki\Specials\SpecialProtectedTitles, MediaWiki\Specials\SpecialRandomInCategory, MediaWiki\Specials\SpecialRandomPage, MediaWiki\Specials\SpecialRedirect, MediaWiki\Specials\SpecialRenameUser, MediaWiki\Specials\SpecialResetTokens, MediaWiki\Specials\SpecialRevisionDelete, MediaWiki\Specials\SpecialSearch, MediaWiki\Specials\SpecialShortPages, MediaWiki\Specials\SpecialStatistics, MediaWiki\Specials\SpecialTags, MediaWiki\Specials\SpecialTrackingCategories, MediaWiki\Specials\SpecialUnblock, MediaWiki\Specials\SpecialUncategorizedImages, MediaWiki\Specials\SpecialUncategorizedPages, MediaWiki\Specials\SpecialUndelete, MediaWiki\Specials\SpecialUnlinkAccounts, MediaWiki\Specials\SpecialUnlockdb, MediaWiki\Specials\SpecialUnusedCategories, MediaWiki\Specials\SpecialUnusedImages, MediaWiki\Specials\SpecialUnusedTemplates, MediaWiki\Specials\SpecialUnwatchedPages, MediaWiki\Specials\SpecialUpload, MediaWiki\Specials\SpecialUserLogin, MediaWiki\Specials\SpecialUserLogout, MediaWiki\Specials\SpecialUserRights, MediaWiki\Specials\SpecialVersion, MediaWiki\Specials\SpecialWantedCategories, MediaWiki\Specials\SpecialWantedFiles, MediaWiki\Specials\SpecialWantedPages, MediaWiki\Specials\SpecialWantedTemplates, MediaWiki\Specials\SpecialWhatLinksHere, and MediaWiki\Specials\SpecialWithoutInterwiki.
Definition at line 1098 of file SpecialPage.php.
|
protected |
Definition at line 1184 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialActiveUsers\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialListUsers\execute(), MediaWiki\Specials\SpecialUpload\getInitialPageText(), MediaWiki\Specials\SpecialLog\getLogTypesOnUser(), MediaWiki\SpecialPage\QueryPage\getPages(), MediaWiki\Specials\SpecialUpload\getUploadForm(), and MediaWiki\Specials\SpecialSearch\showResults().
|
protected |
Definition at line 1197 of file SpecialPage.php.
Referenced by MediaWiki\SpecialPage\RedirectSpecialArticle\__construct(), MediaWiki\SpecialPage\ChangesListSpecialPage\__construct(), MediaWiki\Specials\SpecialPageLanguage\alterForm(), MediaWiki\Specials\SpecialUserRights\doSaveUserGroups(), MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialImport\execute(), MediaWiki\Specials\SpecialLog\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\Specials\SpecialSearch\execute(), MediaWiki\Specials\SpecialStatistics\execute(), MediaWiki\Specials\SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialUpload\execute(), MediaWiki\SpecialPage\AuthManagerSpecialPage\fieldInfoToFormDescriptor(), MediaWiki\SpecialPage\FormSpecialPage\getForm(), MediaWiki\Specials\SpecialBlock\getFormFields(), MediaWiki\SpecialPage\LoginSignupSpecialPage\getPageHtml(), MediaWiki\Specials\SpecialRandomPage\getQueryInfo(), MediaWiki\Specials\SpecialAncientPages\getQueryInfo(), MediaWiki\Specials\SpecialLonelyPages\getQueryInfo(), MediaWiki\Specials\SpecialShortPages\getQueryInfo(), MediaWiki\Specials\SpecialWantedPages\getQueryInfo(), MediaWiki\Specials\SpecialRandomPage\getRandomTitle(), MediaWiki\Specials\SpecialSearch\getSearchProfiles(), MediaWiki\Specials\SpecialResetTokens\getTokensList(), MediaWiki\Specials\SpecialSearch\goResult(), MediaWiki\Specials\SpecialUserLogout\onSuccess(), MediaWiki\SpecialPage\AuthManagerSpecialPage\performAuthenticationStep(), MediaWiki\Specials\SpecialBlock\preHtml(), MediaWiki\Specials\SpecialUpload\processUpload(), MediaWiki\SpecialPage\ChangesListSpecialPage\registerFilters(), MediaWiki\Specials\SpecialWatchlist\registerFilters(), MediaWiki\SpecialPage\ChangesListSpecialPage\runMainQueryHook(), MediaWiki\Specials\SpecialEmailUser\sendEmailForm(), MediaWiki\Specials\SpecialNewPages\setup(), MediaWiki\Specials\SpecialSearch\showCreateLink(), MediaWiki\Specials\SpecialUndelete\showHistory(), MediaWiki\Specials\SpecialAutoblockList\showList(), MediaWiki\Specials\SpecialBlockList\showList(), MediaWiki\Specials\SpecialSearch\showResults(), MediaWiki\Specials\SpecialCreateAccount\successfulAction(), MediaWiki\Specials\SpecialUserLogin\successfulAction(), and MediaWiki\SpecialPage\AuthManagerSpecialPage\trySubmit().
MediaWiki\SpecialPage\SpecialPage::getLanguage | ( | ) |
Shortcut to get user's language.
Definition at line 931 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Specials\SpecialEditTags\buildCheckBoxes(), MediaWiki\Specials\SpecialActiveUsers\buildForm(), MediaWiki\SpecialPage\FormSpecialPage\checkExecutePermissions(), MediaWiki\Specials\SpecialAllMessages\execute(), MediaWiki\Specials\SpecialAllPages\execute(), MediaWiki\Specials\SpecialFileDuplicateSearch\execute(), MediaWiki\Specials\SpecialLinkSearch\execute(), MediaWiki\Specials\SpecialListGrants\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Specials\SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\Specials\SpecialNewPages\filterLinks(), MediaWiki\SpecialPage\WantedQueryPage\formatResult(), MediaWiki\Specials\SpecialAncientPages\formatResult(), MediaWiki\Specials\SpecialBrokenRedirects\formatResult(), MediaWiki\Specials\SpecialDoubleRedirects\formatResult(), MediaWiki\Specials\SpecialFewestRevisions\formatResult(), MediaWiki\Specials\SpecialListRedirects\formatResult(), MediaWiki\Specials\SpecialMIMESearch\formatResult(), MediaWiki\Specials\SpecialMostCategories\formatResult(), MediaWiki\Specials\SpecialMostInterwikis\formatResult(), MediaWiki\Specials\SpecialMostLinked\formatResult(), MediaWiki\Specials\SpecialMostLinkedCategories\formatResult(), MediaWiki\Specials\SpecialMostLinkedTemplates\formatResult(), MediaWiki\Specials\SpecialShortPages\formatResult(), MediaWiki\Specials\SpecialUnusedTemplates\formatResult(), MediaWiki\Specials\SpecialUnwatchedPages\formatResult(), MediaWiki\Specials\SpecialWantedCategories\formatResult(), MediaWiki\Specials\SpecialUndelete\formatRevisionRow(), MediaWiki\Specials\SpecialBotPasswords\getFormFields(), MediaWiki\Specials\SpecialPageLanguage\getFormFields(), MediaWiki\Specials\SpecialEmailUser\onFormSubmit(), MediaWiki\Specials\SpecialNewPages\parseParams(), MediaWiki\Specials\SpecialBlock\postHtml(), MediaWiki\Specials\SpecialUpload\processVerificationError(), MediaWiki\Specials\SpecialEditTags\showConvenienceLinks(), MediaWiki\Specials\SpecialRevisionDelete\showConvenienceLinks(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialMovePage\showForm(), MediaWiki\Specials\SpecialEditTags\showForm(), MediaWiki\Specials\SpecialRevisionDelete\showForm(), and MediaWiki\Specials\SpecialRevisionDelete\tryShowFile().
MediaWiki\SpecialPage\SpecialPage::getLinkRenderer | ( | ) |
Definition at line 1116 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialAllMessages\execute(), MediaWiki\Specials\SpecialCategories\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialListFiles\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialNewFiles\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Specials\SpecialProtectedPages\execute(), MediaWiki\Specials\SpecialProtectedTitles\execute(), MediaWiki\Specials\SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialNewPages\filterLinks(), MediaWiki\SpecialPage\WantedQueryPage\formatResult(), MediaWiki\Specials\SpecialAncientPages\formatResult(), MediaWiki\Specials\SpecialBrokenRedirects\formatResult(), MediaWiki\Specials\SpecialDoubleRedirects\formatResult(), MediaWiki\Specials\SpecialFewestRevisions\formatResult(), MediaWiki\Specials\SpecialLinkSearch\formatResult(), MediaWiki\Specials\SpecialListRedirects\formatResult(), MediaWiki\Specials\SpecialMIMESearch\formatResult(), MediaWiki\Specials\SpecialMostCategories\formatResult(), MediaWiki\Specials\SpecialMostInterwikis\formatResult(), MediaWiki\Specials\SpecialMostLinked\formatResult(), MediaWiki\Specials\SpecialMostLinkedCategories\formatResult(), MediaWiki\Specials\SpecialMostLinkedTemplates\formatResult(), MediaWiki\Specials\SpecialPagesWithProp\formatResult(), MediaWiki\Specials\SpecialShortPages\formatResult(), MediaWiki\Specials\SpecialUncategorizedCategories\formatResult(), MediaWiki\Specials\SpecialUnusedCategories\formatResult(), MediaWiki\Specials\SpecialUnusedTemplates\formatResult(), MediaWiki\Specials\SpecialUnwatchedPages\formatResult(), MediaWiki\Specials\SpecialWantedCategories\formatResult(), MediaWiki\Specials\SpecialUndelete\formatRevisionRow(), MediaWiki\Specials\SpecialAutoblockList\getBlockListPager(), MediaWiki\Specials\SpecialBlockList\getBlockListPager(), MediaWiki\Specials\SpecialBotPasswords\getFormFields(), MediaWiki\Specials\SpecialEmailUser\getFormFields(), MediaWiki\Specials\SpecialUpload\getUploadForm(), MediaWiki\SpecialPage\LoginSignupSpecialPage\load(), MediaWiki\SpecialPage\WantedQueryPage\makeWlhLink(), MediaWiki\Specials\SpecialWatchlist\outputChangesList(), MediaWiki\Specials\SpecialEditWatchlist\outputSubtitle(), MediaWiki\Specials\SpecialMediaStatistics\outputTableRow(), MediaWiki\Specials\SpecialBlock\postHtml(), MediaWiki\Specials\SpecialEditTags\showConvenienceLinks(), MediaWiki\Specials\SpecialRevisionDelete\showConvenienceLinks(), MediaWiki\Specials\SpecialMovePage\showForm(), MediaWiki\Specials\SpecialRevisionDelete\showForm(), MediaWiki\Specials\SpecialPrefixIndex\showPrefixChunk(), MediaWiki\Specials\SpecialSearch\showResults(), MediaWiki\Specials\SpecialChangeCredentials\showSubpageList(), and MediaWiki\Specials\SpecialUpload\showUploadWarning().
MediaWiki\SpecialPage\SpecialPage::getLocalName | ( | ) |
Get the localised name of the special page.
Definition at line 321 of file SpecialPage.php.
References MediaWiki\SpecialPage\SpecialPage\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 MediaWiki\SpecialPage\AuthManagerSpecialPage, MediaWiki\Specials\SpecialBotPasswords, MediaWiki\Specials\SpecialChangeEmail, MediaWiki\Specials\SpecialCreateAccount, MediaWiki\Specials\SpecialUnlinkAccounts, and MediaWiki\Specials\SpecialUserLogin.
Definition at line 468 of file SpecialPage.php.
Referenced by MediaWiki\SpecialPage\FormSpecialPage\execute().
MediaWiki\SpecialPage\SpecialPage::getName | ( | ) |
Get the name of this Special Page.
Reimplemented in MediaWiki\Specials\SpecialDiff.
Definition at line 225 of file SpecialPage.php.
References MediaWiki\SpecialPage\SpecialPage\$mName.
Referenced by MediaWiki\SpecialPage\SpecialPage\checkLoginSecurityLevel(), MediaWiki\Specials\SpecialContribute\execute(), MediaWiki\Specials\SpecialRandomPage\execute(), MediaWiki\SpecialPage\FormSpecialPage\getForm(), MediaWiki\SpecialPage\AuthManagerSpecialPage\getLoginSecurityLevel(), MediaWiki\Specials\SpecialBotPasswords\getLoginSecurityLevel(), MediaWiki\Specials\SpecialChangeEmail\getLoginSecurityLevel(), MediaWiki\SpecialPage\FormSpecialPage\getMessagePrefix(), MediaWiki\Specials\Redirects\SpecialAllMyUploads\getRedirect(), MediaWiki\Specials\Redirects\SpecialMycontributions\getRedirect(), MediaWiki\Specials\Redirects\SpecialMylog\getRedirect(), MediaWiki\Specials\Redirects\SpecialMypage\getRedirect(), MediaWiki\Specials\Redirects\SpecialMytalk\getRedirect(), MediaWiki\Specials\Redirects\SpecialMyuploads\getRedirect(), MediaWiki\SpecialPage\AuthManagerSpecialPage\getToken(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReauthBeforeExecute(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReturnBeforeExecute(), MediaWiki\SpecialPage\LoginSignupSpecialPage\mainLoginForm(), MediaWiki\Specials\SpecialBlock\maybeAlterFormDefaults(), MediaWiki\Specials\SpecialBotPasswords\onSubmit(), MediaWiki\Specials\SpecialLockdb\onSubmit(), MediaWiki\Specials\SpecialEditWatchlist\outputSubtitle(), MediaWiki\SpecialPage\ChangesListSpecialPage\runMainQueryHook(), MediaWiki\SpecialPage\LoginSignupSpecialPage\showSuccessPage(), and MediaWiki\Specials\SpecialCreateAccount\successfulAction().
MediaWiki\SpecialPage\SpecialPage::getOutput | ( | ) |
Get the OutputPage being used for this instance.
Definition at line 891 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Search\SearchWidgets\InterwikiSearchResultSetWidget\__construct(), MediaWiki\Specials\SpecialRevisionDelete\addUsageText(), MediaWiki\Specials\SpecialChangeContentModel\alterForm(), MediaWiki\Specials\SpecialPageLanguage\alterForm(), MediaWiki\SpecialPage\AuthManagerSpecialPage\beforeExecute(), MediaWiki\Specials\SpecialUserLogin\beforeExecute(), MediaWiki\SpecialPage\SpecialPage\checkLoginSecurityLevel(), MediaWiki\SpecialPage\ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), MediaWiki\Specials\SpecialRecentChangesLinked\doMainQuery(), MediaWiki\Specials\SpecialConfirmEmail\execute(), MediaWiki\Specials\SpecialBookSources\execute(), MediaWiki\Specials\SpecialEditWatchlist\execute(), MediaWiki\Specials\SpecialActiveUsers\execute(), MediaWiki\Specials\SpecialAllMessages\execute(), MediaWiki\Specials\SpecialAllPages\execute(), MediaWiki\Specials\SpecialApiHelp\execute(), MediaWiki\Specials\SpecialApiSandbox\execute(), MediaWiki\Specials\SpecialAutoblockList\execute(), MediaWiki\Specials\SpecialBlankpage\execute(), MediaWiki\Specials\SpecialBlockList\execute(), MediaWiki\Specials\SpecialBotPasswords\execute(), MediaWiki\Specials\SpecialCategories\execute(), MediaWiki\Specials\SpecialChangeEmail\execute(), MediaWiki\Specials\SpecialComparePages\execute(), MediaWiki\Specials\SpecialContribute\execute(), MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialEditTags\execute(), MediaWiki\Specials\SpecialEmailUser\execute(), MediaWiki\Specials\SpecialExport\execute(), MediaWiki\Specials\SpecialFileDuplicateSearch\execute(), MediaWiki\Specials\SpecialGoToInterwiki\execute(), MediaWiki\Specials\SpecialImport\execute(), MediaWiki\Specials\SpecialJavaScriptTest\execute(), MediaWiki\Specials\SpecialLinkSearch\execute(), MediaWiki\Specials\SpecialListFiles\execute(), MediaWiki\Specials\SpecialListGrants\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialListUsers\execute(), MediaWiki\Specials\SpecialLog\execute(), MediaWiki\Specials\SpecialMovePage\execute(), MediaWiki\Specials\SpecialMute\execute(), MediaWiki\Specials\SpecialNewFiles\execute(), MediaWiki\Specials\SpecialNewPages\execute(), MediaWiki\Specials\SpecialPagesWithProp\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Specials\SpecialPasswordReset\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialPrefixIndex\execute(), MediaWiki\Specials\SpecialProtectedPages\execute(), MediaWiki\Specials\SpecialProtectedTitles\execute(), MediaWiki\Specials\SpecialRandomPage\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\Specials\SpecialResetTokens\execute(), MediaWiki\Specials\SpecialRevisionDelete\execute(), MediaWiki\Specials\SpecialRunJobs\execute(), MediaWiki\Specials\SpecialSearch\execute(), MediaWiki\Specials\SpecialSpecialPages\execute(), MediaWiki\Specials\SpecialStatistics\execute(), MediaWiki\Specials\SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\Specials\SpecialUndelete\execute(), MediaWiki\Specials\SpecialUnwatchedPages\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\SpecialPage\ChangesListSpecialPage\execute(), MediaWiki\SpecialPage\DisabledSpecialPage\execute(), MediaWiki\SpecialPage\LoginSignupSpecialPage\execute(), MediaWiki\SpecialPage\RedirectSpecialPage\execute(), MediaWiki\Specials\SpecialChangeCredentials\execute(), MediaWiki\Specials\SpecialExpandTemplates\execute(), MediaWiki\Specials\SpecialLinkAccounts\execute(), MediaWiki\Specials\SpecialPageData\execute(), MediaWiki\Specials\SpecialRecentChanges\execute(), MediaWiki\Specials\SpecialUnlinkAccounts\execute(), MediaWiki\Specials\SpecialWatchlist\execute(), MediaWiki\Specials\SpecialEditTags\failure(), MediaWiki\Specials\SpecialRevisionDelete\failure(), MediaWiki\Specials\SpecialNewPages\feed(), MediaWiki\Specials\SpecialNewPages\form(), MediaWiki\Specials\SpecialChangeCredentials\getAuthFormDescriptor(), MediaWiki\Specials\SpecialBlock\getFormFields(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReauthBeforeExecute(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReturnBeforeExecute(), MediaWiki\SpecialPage\ChangesListSpecialPage\includeRcFiltersApp(), MediaWiki\SpecialPage\LoginSignupSpecialPage\mainLoginForm(), MediaWiki\Specials\SpecialBlock\maybeAlterFormDefaults(), MediaWiki\SpecialPage\SpecialRedirectWithAction\onFormSubmit(), MediaWiki\Specials\SpecialDiff\onFormSubmit(), MediaWiki\Specials\SpecialNewSection\onFormSubmit(), MediaWiki\Specials\SpecialPermanentLink\onFormSubmit(), MediaWiki\Specials\SpecialBotPasswords\onSubmit(), MediaWiki\Specials\SpecialChangeContentModel\onSubmit(), MediaWiki\Specials\SpecialPageLanguage\onSubmit(), MediaWiki\Specials\SpecialRandomInCategory\onSubmit(), MediaWiki\Specials\SpecialBotPasswords\onSuccess(), MediaWiki\Specials\SpecialChangeContentModel\onSuccess(), MediaWiki\Specials\SpecialChangeEmail\onSuccess(), MediaWiki\Specials\SpecialLockdb\onSuccess(), MediaWiki\Specials\SpecialMute\onSuccess(), MediaWiki\Specials\SpecialPageLanguage\onSuccess(), MediaWiki\Specials\SpecialPasswordReset\onSuccess(), MediaWiki\Specials\SpecialResetTokens\onSuccess(), MediaWiki\Specials\SpecialUnlockdb\onSuccess(), MediaWiki\Specials\SpecialUserLogout\onSuccess(), MediaWiki\Specials\SpecialWhatLinksHere\onSuccess(), MediaWiki\Specials\SpecialWatchlist\outputChangesList(), MediaWiki\Specials\SpecialMediaStatistics\outputMediaType(), MediaWiki\SpecialPage\ChangesListSpecialPage\outputNoResults(), MediaWiki\Specials\SpecialRecentChangesLinked\outputNoResults(), MediaWiki\Specials\SpecialMediaStatistics\outputResults(), MediaWiki\Specials\SpecialEditWatchlist\outputSubtitle(), MediaWiki\Specials\SpecialMediaStatistics\outputTableEnd(), MediaWiki\Specials\SpecialMediaStatistics\outputTableRow(), MediaWiki\Specials\SpecialMediaStatistics\outputTableStart(), MediaWiki\SpecialPage\ChangesListSpecialPage\outputTimeout(), MediaWiki\Specials\SpecialBlock\postHtml(), MediaWiki\Specials\SpecialBlock\preHtml(), MediaWiki\Specials\SpecialPageLanguage\preHtml(), MediaWiki\Specials\SpecialUpload\processUpload(), MediaWiki\Specials\SpecialEmailUser\sendEmailForm(), MediaWiki\Specials\SpecialUserLogin\setHeaders(), MediaWiki\Specials\SpecialNewFiles\setTopText(), MediaWiki\Specials\SpecialRecentChangesLinked\setTopText(), MediaWiki\Specials\SpecialSearch\setupPage(), MediaWiki\Specials\SpecialTags\showActivateDeactivateForm(), MediaWiki\Specials\SpecialEditTags\showConvenienceLinks(), MediaWiki\Specials\SpecialRevisionDelete\showConvenienceLinks(), MediaWiki\Specials\SpecialSearch\showCreateLink(), MediaWiki\Specials\SpecialTags\showDeleteTagForm(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialMovePage\showForm(), MediaWiki\Specials\SpecialEditTags\showForm(), MediaWiki\Specials\SpecialPageData\showForm(), MediaWiki\Specials\SpecialRevisionDelete\showForm(), MediaWiki\Specials\SpecialUndelete\showHistory(), MediaWiki\Specials\SpecialAutoblockList\showList(), MediaWiki\Specials\SpecialBlockList\showList(), MediaWiki\Specials\SpecialUndelete\showMoreHistory(), MediaWiki\Specials\SpecialPrefixIndex\showPrefixChunk(), MediaWiki\Specials\SpecialPreferences\showResetForm(), MediaWiki\Specials\SpecialSearch\showResults(), MediaWiki\Specials\SpecialChangeCredentials\showSubpageList(), MediaWiki\SpecialPage\LoginSignupSpecialPage\showSuccessPage(), MediaWiki\Specials\SpecialAutoblockList\showTotal(), MediaWiki\Specials\SpecialUploadStash\showUpload(), MediaWiki\Specials\SpecialUpload\showUploadForm(), MediaWiki\Specials\SpecialUpload\showUploadWarning(), MediaWiki\Specials\SpecialEditTags\submit(), MediaWiki\Specials\SpecialRevisionDelete\submit(), MediaWiki\Specials\SpecialPreferences\submitReset(), MediaWiki\Specials\SpecialChangeCredentials\success(), MediaWiki\Specials\SpecialEditTags\success(), MediaWiki\Specials\SpecialRevisionDelete\success(), MediaWiki\Specials\SpecialCreateAccount\successfulAction(), MediaWiki\Specials\SpecialUserRights\switchForm(), MediaWiki\Specials\SpecialRevisionDelete\tryShowFile(), MediaWiki\Specials\SpecialUpload\unsaveUploadedFile(), and MediaWiki\SpecialPage\ChangesListSpecialPage\validateOptions().
MediaWiki\SpecialPage\SpecialPage::getPageTitle | ( | $subpage = false | ) |
Get a self-referential title object.
string | false | null | $subpage |
Definition at line 845 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialActiveUsers\buildForm(), MediaWiki\SpecialPage\ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), MediaWiki\Specials\SpecialApiHelp\execute(), MediaWiki\Specials\SpecialAutoblockList\execute(), MediaWiki\Specials\SpecialBlockList\execute(), MediaWiki\Specials\SpecialFileDuplicateSearch\execute(), MediaWiki\Specials\SpecialLinkSearch\execute(), MediaWiki\Specials\SpecialPagesWithProp\execute(), MediaWiki\Specials\SpecialSearch\execute(), MediaWiki\SpecialPage\LoginSignupSpecialPage\execute(), MediaWiki\Specials\SpecialChangeCredentials\execute(), MediaWiki\Specials\SpecialExpandTemplates\execute(), MediaWiki\Specials\SpecialLinkAccounts\execute(), MediaWiki\Specials\SpecialUnlinkAccounts\execute(), MediaWiki\Specials\SpecialWatchlist\execute(), MediaWiki\Specials\SpecialNewPages\feed(), MediaWiki\Specials\SpecialNewPages\filterLinks(), MediaWiki\Specials\SpecialUndelete\formatRevisionRow(), MediaWiki\SpecialPage\FormSpecialPage\getForm(), MediaWiki\Specials\SpecialBotPasswords\getFormFields(), MediaWiki\Specials\SpecialMIMESearch\getPageHeader(), MediaWiki\Specials\SpecialUpload\getUploadForm(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReturnBeforeExecute(), MediaWiki\SpecialPage\LoginSignupSpecialPage\load(), MediaWiki\Specials\SpecialPrefixIndex\namespacePrefixForm(), MediaWiki\Specials\SpecialDiff\onFormSubmit(), MediaWiki\Specials\SpecialPermanentLink\onFormSubmit(), MediaWiki\Specials\SpecialBotPasswords\onSubmit(), MediaWiki\Specials\SpecialBotPasswords\onSuccess(), MediaWiki\Specials\SpecialAllPages\outputHTMLForm(), MediaWiki\SpecialPage\AuthManagerSpecialPage\performAuthenticationStep(), MediaWiki\Specials\SpecialTags\processCreateTagForm(), MediaWiki\Specials\SpecialTags\processTagForm(), MediaWiki\Specials\SpecialEmailUser\sendEmailForm(), MediaWiki\Specials\SpecialSearch\setupPage(), MediaWiki\Specials\SpecialTags\showActivateDeactivateForm(), MediaWiki\Specials\SpecialTags\showDeleteTagForm(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialMovePage\showForm(), MediaWiki\Specials\SpecialEditTags\showForm(), MediaWiki\Specials\SpecialRevisionDelete\showForm(), MediaWiki\Specials\SpecialUndelete\showHistory(), MediaWiki\Specials\SpecialPrefixIndex\showPrefixChunk(), MediaWiki\Specials\SpecialPreferences\showResetForm(), MediaWiki\Specials\SpecialPreferences\submitReset(), MediaWiki\Specials\SpecialCreateAccount\successfulAction(), MediaWiki\Specials\SpecialUserRights\switchForm(), MediaWiki\Specials\SpecialRevisionDelete\tryShowFile(), MediaWiki\Specials\SpecialEmailUser\userForm(), and MediaWiki\SpecialPage\ChangesListSpecialPage\validateOptions().
MediaWiki\SpecialPage\SpecialPage::getRequest | ( | ) |
Get the WebRequest being used for this instance.
Reimplemented in MediaWiki\SpecialPage\AuthManagerSpecialPage.
Definition at line 881 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Specials\SpecialBlock\alterForm(), MediaWiki\Specials\SpecialChangeEmail\alterForm(), MediaWiki\Specials\SpecialPasswordReset\alterForm(), MediaWiki\Specials\SpecialUserLogout\alterForm(), MediaWiki\Specials\SpecialActiveUsers\buildForm(), MediaWiki\SpecialPage\FormSpecialPage\checkExecutePermissions(), MediaWiki\SpecialPage\SpecialPage\checkLoginSecurityLevel(), MediaWiki\SpecialPage\ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), MediaWiki\Specials\SpecialRedirect\dispatchFile(), MediaWiki\Specials\SpecialBookSources\execute(), MediaWiki\Specials\SpecialEditWatchlist\execute(), MediaWiki\Specials\SpecialActiveUsers\execute(), MediaWiki\Specials\SpecialAllMessages\execute(), MediaWiki\Specials\SpecialAllPages\execute(), MediaWiki\Specials\SpecialApiHelp\execute(), MediaWiki\Specials\SpecialBlockList\execute(), MediaWiki\Specials\SpecialCategories\execute(), MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialEditTags\execute(), MediaWiki\Specials\SpecialEmailUser\execute(), MediaWiki\Specials\SpecialExport\execute(), MediaWiki\Specials\SpecialFileDuplicateSearch\execute(), MediaWiki\Specials\SpecialImport\execute(), MediaWiki\Specials\SpecialLinkSearch\execute(), MediaWiki\Specials\SpecialListFiles\execute(), MediaWiki\Specials\SpecialLog\execute(), MediaWiki\Specials\SpecialMIMESearch\execute(), MediaWiki\Specials\SpecialMovePage\execute(), MediaWiki\Specials\SpecialNewFiles\execute(), MediaWiki\Specials\SpecialPagesWithProp\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialPrefixIndex\execute(), MediaWiki\Specials\SpecialProtectedPages\execute(), MediaWiki\Specials\SpecialProtectedTitles\execute(), MediaWiki\Specials\SpecialRandomPage\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\Specials\SpecialRevisionDelete\execute(), MediaWiki\Specials\SpecialRunJobs\execute(), MediaWiki\Specials\SpecialSearch\execute(), MediaWiki\Specials\SpecialTags\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\Specials\SpecialWithoutInterwiki\execute(), MediaWiki\SpecialPage\ChangesListSpecialPage\execute(), MediaWiki\Specials\SpecialExpandTemplates\execute(), MediaWiki\Specials\SpecialPageData\execute(), MediaWiki\Specials\SpecialRecentChanges\execute(), MediaWiki\Specials\SpecialWatchlist\execute(), MediaWiki\Specials\SpecialRevisionDelete\extractBitParams(), MediaWiki\SpecialPage\ChangesListSpecialPage\fetchOptionsFromRequest(), MediaWiki\Specials\SpecialWatchlist\fetchOptionsFromRequest(), MediaWiki\SpecialPage\ChangesListSpecialPage\getDefaultOptions(), MediaWiki\SpecialPage\FormSpecialPage\getForm(), MediaWiki\Specials\SpecialPasswordReset\getFormFields(), MediaWiki\Specials\SpecialFilepath\getRedirect(), MediaWiki\SpecialPage\RedirectSpecialPage\getRedirectQuery(), MediaWiki\Specials\SpecialSearch\load(), MediaWiki\Specials\SpecialUpload\loadRequest(), MediaWiki\Specials\SpecialBlock\maybeAlterFormDefaults(), MediaWiki\Specials\SpecialEmailUser\onFormSubmit(), MediaWiki\Specials\SpecialBotPasswords\onSubmit(), MediaWiki\Specials\SpecialRandomInCategory\onSubmit(), MediaWiki\Specials\SpecialChangeEmail\onSuccess(), MediaWiki\Specials\SpecialPasswordReset\onSuccess(), MediaWiki\Specials\SpecialWhatLinksHere\onSuccess(), MediaWiki\Specials\SpecialUpload\processUpload(), MediaWiki\Specials\SpecialSearch\saveNamespaces(), MediaWiki\Specials\SpecialUserRights\saveUserGroups(), MediaWiki\Specials\SpecialBlock\setParameter(), MediaWiki\Specials\SpecialChangeContentModel\setParameter(), MediaWiki\Specials\SpecialNewPages\setup(), MediaWiki\Specials\SpecialRevisionDelete\showForm(), MediaWiki\Specials\SpecialEditTags\submit(), MediaWiki\Specials\SpecialRevisionDelete\submit(), MediaWiki\Specials\SpecialPreferences\submitReset(), and MediaWiki\Specials\SpecialRevisionDelete\tryShowFile().
MediaWiki\SpecialPage\SpecialPage::getRestriction | ( | ) |
Get the permission that a user must have to execute this page.
Definition at line 233 of file SpecialPage.php.
References MediaWiki\SpecialPage\SpecialPage\$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 987 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 182 of file SpecialPage.php.
References MediaWiki\MediaWikiServices\getInstance(), and NS_SPECIAL.
Referenced by MediaWiki\Specials\SpecialFilepath\getRedirect(), MediaWiki\Specials\Redirects\SpecialMylog\getRedirect(), MediaWiki\Skin\SkinComponentUtils\makeSpecialUrl(), and MediaWiki\Skin\SkinComponentUtils\makeSpecialUrlSubpage().
MediaWiki\SpecialPage\SpecialPage::getShortDescription | ( | string | $path = '' | ) |
Similar to getDescription but takes into account sub pages and designed for display in tabs.
string | $path | (optional) |
Reimplemented in MediaWiki\Specials\SpecialContribute, MediaWiki\Specials\SpecialContributions, MediaWiki\Specials\SpecialEditWatchlist, and MediaWiki\Specials\SpecialWatchlist.
Definition at line 830 of file SpecialPage.php.
MediaWiki\SpecialPage\SpecialPage::getSkin | ( | ) |
Shortcut to get the skin being used for this instance.
Definition at line 921 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialListFiles\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\Specials\SpecialUndelete\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\Specials\SpecialWhatLinksHere\onSuccess(), MediaWiki\Specials\SpecialEditWatchlist\outputSubtitle(), MediaWiki\Specials\SpecialBlock\setParameter(), MediaWiki\Specials\SpecialRecentChangesLinked\setTopText(), MediaWiki\Specials\SpecialEditTags\showConvenienceLinks(), MediaWiki\Specials\SpecialRevisionDelete\showConvenienceLinks(), and MediaWiki\Specials\SpecialMovePage\showForm().
|
finalprotected |
Definition at line 1217 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialBlockList\execute(), MediaWiki\Specials\SpecialAutoblockList\getBlockListPager(), MediaWiki\Specials\SpecialBlockList\getBlockListPager(), and MediaWiki\SpecialPage\SpecialPage\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 MediaWiki\Specials\Redirects\SpecialMylog, MediaWiki\Specials\SpecialEditWatchlist, MediaWiki\Specials\SpecialListUsers, MediaWiki\Specials\SpecialLog, MediaWiki\Specials\SpecialRedirect, MediaWiki\Specials\SpecialTags, and MediaWiki\Specials\SpecialWatchlist.
Definition at line 628 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 | null | $subpage | Subpage string, or false/null to not use a subpage |
string | $fragment | The link fragment (after the "#") |
Definition at line 153 of file SpecialPage.php.
Referenced by MediaWiki\Preferences\SignatureValidator\applyPreSaveTransform(), MediaWiki\Specials\SpecialUserLogin\beforeExecute(), MediaWiki\Linker\Linker\blockLink(), MediaWiki\SpecialPage\SpecialPage\checkLoginSecurityLevel(), MediaWiki\Linker\Linker\emailLink(), MediaWiki\Specials\SpecialEditWatchlist\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Specials\SpecialResetTokens\execute(), MediaWiki\Specials\SpecialWatchlist\execute(), MediaWiki\Specials\SpecialEditWatchlist\executeViewEditWatchlist(), MediaWiki\Specials\SpecialListDuplicatedFiles\formatResult(), MediaWiki\Specials\SpecialUnusedTemplates\formatResult(), MediaWiki\SpecialPage\LoginSignupSpecialPage\getFieldDefinitions(), MediaWiki\Search\TitleMatcher\getNearMatchInternal(), MediaWiki\SpecialPage\ChangesListSpecialPage\getRcFiltersConfigSummary(), MediaWiki\SpecialPage\ChangesListSpecialPage\getRcFiltersConfigVars(), MediaWiki\SpecialPage\SpecialRedirectToSpecial\getRedirect(), MediaWiki\Specials\Redirects\SpecialAllMyUploads\getRedirect(), MediaWiki\Specials\Redirects\SpecialMycontributions\getRedirect(), MediaWiki\Specials\Redirects\SpecialMyuploads\getRedirect(), MediaWiki\getTitle(), MediaWiki\Pager\AllMessagesTablePager\getTitle(), MediaWiki\Linker\Linker\getUploadUrl(), MediaWiki\Specials\SpecialContributions\getUserLinks(), MediaWiki\User\ExternalUserNames\getUserLinkTitle(), MediaWiki\SpecialPage\AuthManagerSpecialPage\handleReauthBeforeExecute(), MediaWiki\SpecialPage\WantedQueryPage\makeWlhLink(), MediaWiki\SpecialPage\SpecialPage\newSearchPage(), MediaWiki\Specials\SpecialMediaStatistics\outputTableRow(), MediaWiki\Specials\SpecialBlock\postHtml(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\sendPasswordResetEmail(), MediaWiki\Specials\SpecialEditTags\showConvenienceLinks(), MediaWiki\Specials\SpecialRevisionDelete\showConvenienceLinks(), MediaWiki\Specials\SpecialUpload\showUploadWarning(), MediaWiki\Linker\Linker\specialLink(), MediaWiki\Linker\Linker\userToolLinks(), and MediaWiki\Preferences\DefaultPreferencesFactory\watchlistPreferences().
|
static |
Get a localised TitleValue object for a specified special page name.
string | $name | |
string | false | null | $subpage | Subpage string, or false/null to not use a subpage |
string | $fragment | The link fragment (after the "#") |
Definition at line 168 of file SpecialPage.php.
References MediaWiki\MediaWikiServices\getInstance(), and NS_SPECIAL.
Referenced by MediaWiki\Linker\Linker\userLink().
MediaWiki\SpecialPage\SpecialPage::getUser | ( | ) |
Shortcut to get the User executing this instance.
Definition at line 901 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Specials\SpecialUserRights\addLogEntry(), MediaWiki\Specials\SpecialUserLogout\alterForm(), MediaWiki\Specials\SpecialNewFiles\buildForm(), MediaWiki\Specials\SpecialBotPasswords\checkExecutePermissions(), MediaWiki\SpecialPage\SpecialPage\checkPermissions(), MediaWiki\Specials\SpecialUndelete\checkPermissions(), MediaWiki\SpecialPage\ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), MediaWiki\Specials\SpecialWatchlist\doMainQuery(), MediaWiki\Specials\SpecialUserRights\doSaveUserGroups(), MediaWiki\Specials\SpecialConfirmEmail\execute(), MediaWiki\Specials\SpecialEditWatchlist\execute(), MediaWiki\SpecialPage\FormSpecialPage\execute(), MediaWiki\Specials\SpecialContribute\execute(), MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialEditTags\execute(), MediaWiki\Specials\SpecialEmailUser\execute(), MediaWiki\Specials\SpecialImport\execute(), MediaWiki\Specials\SpecialMovePage\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\Specials\SpecialRevisionDelete\execute(), MediaWiki\Specials\SpecialUndelete\execute(), MediaWiki\Specials\SpecialUpload\execute(), MediaWiki\Specials\SpecialUserLogout\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\SpecialPage\ChangesListSpecialPage\execute(), MediaWiki\SpecialPage\LoginSignupSpecialPage\execute(), MediaWiki\Specials\SpecialUnlinkAccounts\execute(), MediaWiki\Specials\SpecialUploadStash\execute(), MediaWiki\Specials\SpecialWatchlist\execute(), MediaWiki\Specials\SpecialNewPages\filterLinks(), MediaWiki\Specials\SpecialUndelete\formatRevisionRow(), MediaWiki\Specials\SpecialEmailUser\getDescription(), MediaWiki\Specials\SpecialBlock\getFormFields(), MediaWiki\Specials\SpecialBotPasswords\getFormFields(), MediaWiki\Specials\SpecialChangeEmail\getFormFields(), MediaWiki\Specials\SpecialEmailUser\getFormFields(), MediaWiki\Specials\SpecialPasswordReset\getFormFields(), MediaWiki\Specials\SpecialResetTokens\getFormFields(), MediaWiki\Specials\Redirects\SpecialAllMyUploads\getRedirect(), MediaWiki\Specials\Redirects\SpecialMycontributions\getRedirect(), MediaWiki\Specials\Redirects\SpecialMylog\getRedirect(), MediaWiki\Specials\Redirects\SpecialMypage\getRedirect(), MediaWiki\Specials\Redirects\SpecialMytalk\getRedirect(), MediaWiki\Specials\Redirects\SpecialMyuploads\getRedirect(), MediaWiki\Specials\SpecialUpload\getWatchCheck(), MediaWiki\SpecialPage\ChangesListSpecialPage\includeRcFiltersApp(), MediaWiki\Specials\SpecialUndelete\isAllowed(), MediaWiki\Specials\SpecialSearch\load(), MediaWiki\SpecialPage\AuthManagerSpecialPage\loadAuth(), MediaWiki\Specials\SpecialUpload\loadRequest(), MediaWiki\SpecialPage\LoginSignupSpecialPage\mainLoginForm(), MediaWiki\Specials\SpecialBlock\maybeAlterFormDefaults(), MediaWiki\Specials\SpecialBotPasswords\onSubmit(), MediaWiki\Specials\SpecialChangeEmail\onSubmit(), MediaWiki\Specials\SpecialLockdb\onSubmit(), MediaWiki\Specials\SpecialUserLogout\onSubmit(), MediaWiki\Specials\SpecialResetTokens\onSubmit(), MediaWiki\Specials\SpecialBotPasswords\onSuccess(), MediaWiki\Specials\SpecialUserLogout\onSuccess(), MediaWiki\Specials\SpecialWatchlist\outputChangesList(), MediaWiki\Specials\SpecialWatchlist\outputFeedLinks(), MediaWiki\Specials\SpecialEditWatchlist\outputSubtitle(), MediaWiki\SpecialPage\AuthManagerSpecialPage\performAuthenticationStep(), MediaWiki\Specials\SpecialUpload\processUpload(), MediaWiki\SpecialPage\ChangesListSpecialPage\registerFilters(), MediaWiki\Specials\SpecialWatchlist\registerFilters(), MediaWiki\SpecialPage\SpecialPage\requireLogin(), MediaWiki\SpecialPage\SpecialPage\requireNamedUser(), MediaWiki\Specials\SpecialSearch\saveNamespaces(), MediaWiki\Specials\SpecialUserRights\saveUserGroups(), MediaWiki\Specials\SpecialUserLogin\setHeaders(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialMovePage\showForm(), MediaWiki\Specials\SpecialEditTags\showForm(), MediaWiki\Specials\SpecialRevisionDelete\showForm(), MediaWiki\Specials\SpecialUndelete\showHistory(), MediaWiki\Specials\SpecialUpload\showRecoverableUploadError(), MediaWiki\SpecialPage\LoginSignupSpecialPage\showSuccessPage(), MediaWiki\Specials\SpecialUpload\showUploadWarning(), MediaWiki\Specials\SpecialEditTags\submit(), MediaWiki\Specials\SpecialRevisionDelete\submit(), MediaWiki\Specials\SpecialPreferences\submitReset(), MediaWiki\Specials\SpecialConfirmEmail\submitSend(), MediaWiki\Specials\SpecialChangeCredentials\success(), MediaWiki\Specials\SpecialCreateAccount\successfulAction(), MediaWiki\Specials\SpecialUserLogin\successfulAction(), MediaWiki\Specials\SpecialRevisionDelete\tryShowFile(), and MediaWiki\Specials\SpecialUserRights\userCanChangeRights().
MediaWiki\SpecialPage\SpecialPage::including | ( | $x = null | ) |
Whether the special page is being evaluated via transclusion.
bool | null | $x |
Definition at line 312 of file SpecialPage.php.
References wfSetVar().
Referenced by MediaWiki\SpecialPage\ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), MediaWiki\SpecialPage\FormSpecialPage\execute(), MediaWiki\Specials\SpecialApiHelp\execute(), MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialListFiles\execute(), MediaWiki\Specials\SpecialListUsers\execute(), MediaWiki\Specials\SpecialNewFiles\execute(), MediaWiki\Specials\SpecialNewPages\execute(), MediaWiki\Specials\SpecialPrefixIndex\execute(), MediaWiki\Specials\SpecialWantedPages\execute(), MediaWiki\SpecialPage\ChangesListSpecialPage\execute(), MediaWiki\Specials\SpecialRecentChanges\execute(), MediaWiki\SpecialPage\ChangesListSpecialPage\includeRcFiltersApp(), MediaWiki\SpecialPage\ChangesListSpecialPage\registerFilters(), and MediaWiki\Specials\SpecialPrefixIndex\showPrefixChunk().
MediaWiki\SpecialPage\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 MediaWiki\SpecialPage\QueryPage.
Definition at line 352 of file SpecialPage.php.
MediaWiki\SpecialPage\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 MediaWiki\SpecialPage\QueryPage, MediaWiki\SpecialPage\WantedQueryPage, MediaWiki\Specials\SpecialAncientPages, MediaWiki\Specials\SpecialBrokenRedirects, MediaWiki\Specials\SpecialDeadendPages, MediaWiki\Specials\SpecialDoubleRedirects, MediaWiki\Specials\SpecialFewestRevisions, MediaWiki\Specials\SpecialListDuplicatedFiles, MediaWiki\Specials\SpecialListRedirects, MediaWiki\Specials\SpecialLonelyPages, MediaWiki\Specials\SpecialMediaStatistics, MediaWiki\Specials\SpecialMIMESearch, MediaWiki\Specials\SpecialMostCategories, MediaWiki\Specials\SpecialMostImages, MediaWiki\Specials\SpecialMostInterwikis, MediaWiki\Specials\SpecialMostLinked, MediaWiki\Specials\SpecialMostLinkedTemplates, MediaWiki\Specials\SpecialUncategorizedImages, MediaWiki\Specials\SpecialUncategorizedPages, MediaWiki\Specials\SpecialUnusedCategories, MediaWiki\Specials\SpecialUnusedImages, MediaWiki\Specials\SpecialUnusedTemplates, MediaWiki\Specials\SpecialUnwatchedPages, and MediaWiki\Specials\SpecialWithoutInterwiki.
Definition at line 338 of file SpecialPage.php.
MediaWiki\SpecialPage\SpecialPage::isIncludable | ( | ) |
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
Reimplemented in MediaWiki\SpecialPage\IncludableSpecialPage, MediaWiki\Specials\SpecialApiHelp, MediaWiki\Specials\SpecialRecentChanges, and MediaWiki\Specials\SpecialWantedPages.
Definition at line 280 of file SpecialPage.php.
References MediaWiki\SpecialPage\SpecialPage\$mIncludable.
MediaWiki\SpecialPage\SpecialPage::isListed | ( | ) |
Whether this special page is listed in Special:SpecialPages.
Reimplemented in MediaWiki\SpecialPage\SpecialRedirectWithAction, MediaWiki\SpecialPage\UnlistedSpecialPage, MediaWiki\Specials\SpecialBotPasswords, MediaWiki\Specials\SpecialChangeCredentials, MediaWiki\Specials\SpecialChangeEmail, MediaWiki\Specials\SpecialDiff, MediaWiki\Specials\SpecialEmailUser, MediaWiki\Specials\SpecialLinkAccounts, MediaWiki\Specials\SpecialNewSection, MediaWiki\Specials\SpecialPageData, MediaWiki\Specials\SpecialPasswordReset, MediaWiki\Specials\SpecialPermanentLink, MediaWiki\Specials\SpecialResetTokens, MediaWiki\Specials\SpecialUnlinkAccounts, MediaWiki\Specials\SpecialUserLogin, and MediaWiki\Specials\SpecialUserLogout.
Definition at line 245 of file SpecialPage.php.
MediaWiki\SpecialPage\SpecialPage::isRestricted | ( | ) |
Can be overridden by subclasses with more complicated permissions schemes.
Definition at line 364 of file SpecialPage.php.
References MediaWiki\MediaWikiServices\getInstance().
MediaWiki\SpecialPage\SpecialPage::listed | ( | $x = null | ) |
Get or set whether this special page is listed in Special:SpecialPages.
bool | null | $x |
Definition at line 270 of file SpecialPage.php.
References wfDeprecated(), and wfSetVar().
MediaWiki\SpecialPage\SpecialPage::maxIncludeCacheTime | ( | ) |
How long to cache page when it is being included.
Definition at line 295 of file SpecialPage.php.
References MediaWiki\SpecialPage\SpecialPage\getCacheTTL(), MediaWiki\SpecialPage\SpecialPage\getConfig(), and MediaWiki\MainConfigNames\MiserMode.
MediaWiki\SpecialPage\SpecialPage::msg | ( | $key, | |
$params ) |
Wrapper around wfMessage that sets the current context.
string | string[] | MessageSpecifier | $key | |
mixed | ...$params |
Implements MessageLocalizer.
Definition at line 1000 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Specials\SpecialBlock\alterForm(), MediaWiki\Specials\SpecialChangeEmail\alterForm(), MediaWiki\Specials\SpecialLockdb\alterForm(), MediaWiki\Specials\SpecialPasswordReset\alterForm(), MediaWiki\Specials\SpecialUnlockdb\alterForm(), MediaWiki\Specials\SpecialUserLogout\alterForm(), MediaWiki\Specials\SpecialEditTags\buildCheckBoxes(), MediaWiki\Specials\SpecialRevisionDelete\buildCheckBoxes(), MediaWiki\Specials\SpecialNewFiles\buildForm(), MediaWiki\Specials\SpecialComparePages\checkExistingRevision(), MediaWiki\Specials\SpecialRecentChangesLinked\doMainQuery(), MediaWiki\Specials\SpecialEditWatchlist\execute(), MediaWiki\Specials\SpecialAllMessages\execute(), MediaWiki\Specials\SpecialAllPages\execute(), MediaWiki\Specials\SpecialApiHelp\execute(), MediaWiki\Specials\SpecialAutoblockList\execute(), MediaWiki\Specials\SpecialBlockList\execute(), MediaWiki\Specials\SpecialCategories\execute(), MediaWiki\Specials\SpecialContribute\execute(), MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialExport\execute(), MediaWiki\Specials\SpecialFileDuplicateSearch\execute(), MediaWiki\Specials\SpecialListFiles\execute(), MediaWiki\Specials\SpecialListGrants\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialListUsers\execute(), MediaWiki\Specials\SpecialMovePage\execute(), MediaWiki\Specials\SpecialPagesWithProp\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialPrefixIndex\execute(), MediaWiki\Specials\SpecialStatistics\execute(), MediaWiki\Specials\SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\Specials\SpecialUndelete\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\SpecialPage\DisabledSpecialPage\execute(), MediaWiki\Specials\SpecialChangeCredentials\execute(), MediaWiki\Specials\SpecialLinkAccounts\execute(), MediaWiki\Specials\SpecialUnlinkAccounts\execute(), MediaWiki\Specials\SpecialEditTags\failure(), MediaWiki\Specials\SpecialRevisionDelete\failure(), MediaWiki\Specials\SpecialNewPages\feed(), MediaWiki\Specials\SpecialNewPages\feedItemDesc(), MediaWiki\Specials\SpecialNewPages\filterLinks(), MediaWiki\SpecialPage\WantedQueryPage\formatResult(), MediaWiki\Specials\SpecialBrokenRedirects\formatResult(), MediaWiki\Specials\SpecialDoubleRedirects\formatResult(), MediaWiki\Specials\SpecialFewestRevisions\formatResult(), MediaWiki\Specials\SpecialLinkSearch\formatResult(), MediaWiki\Specials\SpecialListDuplicatedFiles\formatResult(), MediaWiki\Specials\SpecialMIMESearch\formatResult(), MediaWiki\Specials\SpecialMostCategories\formatResult(), MediaWiki\Specials\SpecialMostInterwikis\formatResult(), MediaWiki\Specials\SpecialMostLinked\formatResult(), MediaWiki\Specials\SpecialMostLinkedCategories\formatResult(), MediaWiki\Specials\SpecialPagesWithProp\formatResult(), MediaWiki\Specials\SpecialShortPages\formatResult(), MediaWiki\Specials\SpecialUnwatchedPages\formatResult(), MediaWiki\Specials\SpecialWantedCategories\formatResult(), MediaWiki\Specials\SpecialUndelete\formatRevisionRow(), MediaWiki\Specials\SpecialChangeCredentials\getAuthForm(), MediaWiki\SpecialPage\LoginSignupSpecialPage\getBenefitsContainerHtml(), MediaWiki\Specials\SpecialMostImages\getCellHtml(), MediaWiki\Specials\SpecialCreateAccount\getDescription(), MediaWiki\Specials\SpecialDiff\getDescription(), MediaWiki\Specials\SpecialEditTags\getDescription(), MediaWiki\Specials\SpecialEmailUser\getDescription(), MediaWiki\Specials\SpecialMute\getDescription(), MediaWiki\Specials\SpecialUserLogin\getDescription(), MediaWiki\Specials\SpecialUpload\getDupeWarning(), MediaWiki\Specials\SpecialRecentChangesLinked\getExtraOptions(), MediaWiki\SpecialPage\FormSpecialPage\getForm(), MediaWiki\Specials\SpecialBlock\getFormFields(), MediaWiki\Specials\SpecialBotPasswords\getFormFields(), MediaWiki\Specials\SpecialChangeContentModel\getFormFields(), MediaWiki\Specials\SpecialChangeEmail\getFormFields(), MediaWiki\Specials\SpecialEmailUser\getFormFields(), MediaWiki\Specials\SpecialPageLanguage\getFormFields(), MediaWiki\Specials\SpecialRedirect\getFormFields(), MediaWiki\Specials\SpecialResetTokens\getFormFields(), MediaWiki\Specials\SpecialActiveUsers\getIntroText(), MediaWiki\Specials\SpecialBrokenRedirects\getPageHeader(), MediaWiki\Specials\SpecialDeadendPages\getPageHeader(), MediaWiki\Specials\SpecialDoubleRedirects\getPageHeader(), MediaWiki\Specials\SpecialLonelyPages\getPageHeader(), MediaWiki\Specials\SpecialUnusedCategories\getPageHeader(), MediaWiki\Specials\SpecialUnusedImages\getPageHeader(), MediaWiki\Specials\SpecialUnusedTemplates\getPageHeader(), MediaWiki\Specials\SpecialWantedFiles\getPageHeader(), MediaWiki\SpecialPage\LoginSignupSpecialPage\getPageHtml(), MediaWiki\Specials\SpecialWatchlist\getShortDescriptionHelper(), MediaWiki\Specials\SpecialMediaStatistics\getTableHeaderRow(), MediaWiki\Specials\SpecialProtectedPages\getTypeMenu(), MediaWiki\Specials\SpecialUpload\getUploadForm(), MediaWiki\SpecialPage\ChangesListSpecialPage\includeRcFiltersApp(), MediaWiki\SpecialPage\LoginSignupSpecialPage\load(), MediaWiki\Specials\SpecialUpload\loadRequest(), MediaWiki\SpecialPage\LoginSignupSpecialPage\mainLoginForm(), MediaWiki\Specials\SpecialUserRights\makeGroupNameList(), MediaWiki\SpecialPage\WantedQueryPage\makeWlhLink(), MediaWiki\Specials\SpecialLockdb\onSubmit(), MediaWiki\Specials\SpecialRandomInCategory\onSubmit(), MediaWiki\Specials\SpecialBotPasswords\onSuccess(), MediaWiki\Specials\SpecialChangeContentModel\onSuccess(), MediaWiki\Specials\SpecialLockdb\onSuccess(), MediaWiki\Specials\SpecialPasswordReset\onSuccess(), MediaWiki\Specials\SpecialUnlockdb\onSuccess(), MediaWiki\Specials\SpecialWhatLinksHere\onSuccess(), MediaWiki\Specials\SpecialWatchlist\outputChangesList(), MediaWiki\Specials\SpecialMediaStatistics\outputMediaType(), MediaWiki\SpecialPage\ChangesListSpecialPage\outputNoResults(), MediaWiki\Specials\SpecialRecentChangesLinked\outputNoResults(), MediaWiki\Specials\SpecialMediaStatistics\outputResults(), MediaWiki\Specials\SpecialEditWatchlist\outputSubtitle(), MediaWiki\Specials\SpecialMediaStatistics\outputTableEnd(), MediaWiki\Specials\SpecialMediaStatistics\outputTableRow(), MediaWiki\SpecialPage\ChangesListSpecialPage\outputTimeout(), MediaWiki\Specials\SpecialBlock\postHtml(), MediaWiki\Specials\SpecialBlock\preHtml(), MediaWiki\Specials\SpecialTags\processCreateTagForm(), MediaWiki\Specials\SpecialTags\processTagForm(), MediaWiki\Specials\SpecialUpload\processUpload(), MediaWiki\Specials\SpecialUpload\processVerificationError(), MediaWiki\Specials\SpecialEmailUser\sendEmailForm(), MediaWiki\Specials\SpecialUserLogin\setHeaders(), MediaWiki\Specials\SpecialNewFiles\setTopText(), MediaWiki\Specials\SpecialSearch\setupPage(), MediaWiki\Specials\SpecialTags\showActivateDeactivateForm(), MediaWiki\Specials\SpecialEditTags\showConvenienceLinks(), MediaWiki\Specials\SpecialRevisionDelete\showConvenienceLinks(), MediaWiki\Specials\SpecialTags\showDeleteTagForm(), MediaWiki\Specials\SpecialUserRights\showEditUserGroupsForm(), MediaWiki\Specials\SpecialMovePage\showForm(), MediaWiki\Specials\SpecialEditTags\showForm(), MediaWiki\Specials\SpecialRevisionDelete\showForm(), MediaWiki\Specials\SpecialUndelete\showHistory(), MediaWiki\Specials\SpecialAutoblockList\showList(), MediaWiki\Specials\SpecialBlockList\showList(), MediaWiki\Specials\SpecialProtectedPages\showOptions(), MediaWiki\Specials\SpecialPrefixIndex\showPrefixChunk(), MediaWiki\Specials\SpecialUpload\showRecoverableUploadError(), MediaWiki\Specials\SpecialAutoblockList\showTotal(), MediaWiki\Specials\SpecialUpload\showUploadError(), MediaWiki\Specials\SpecialUpload\showUploadWarning(), MediaWiki\Specials\SpecialRevisionDelete\submit(), MediaWiki\Specials\SpecialConfirmEmail\submitSend(), MediaWiki\Specials\SpecialEditTags\success(), MediaWiki\Specials\SpecialLinkAccounts\success(), MediaWiki\Specials\SpecialRevisionDelete\success(), MediaWiki\Specials\SpecialCreateAccount\successfulAction(), MediaWiki\Specials\SpecialUserLogin\successfulAction(), MediaWiki\Specials\SpecialUserRights\switchForm(), MediaWiki\Specials\SpecialUpload\unsaveUploadedFile(), and MediaWiki\Specials\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 126 of file SpecialPage.php.
References MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\SpecialPage\SpecialPage\getTitleFor().
|
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 790 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialBookSources\execute(), MediaWiki\Specials\SpecialEditWatchlist\execute(), MediaWiki\SpecialPage\FormSpecialPage\execute(), MediaWiki\Specials\SpecialActiveUsers\execute(), MediaWiki\Specials\SpecialAllPages\execute(), MediaWiki\Specials\SpecialAutoblockList\execute(), MediaWiki\Specials\SpecialBlockList\execute(), MediaWiki\Specials\SpecialCategories\execute(), MediaWiki\Specials\SpecialComparePages\execute(), MediaWiki\Specials\SpecialContribute\execute(), MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialEditTags\execute(), MediaWiki\Specials\SpecialEmailUser\execute(), MediaWiki\Specials\SpecialExport\execute(), MediaWiki\Specials\SpecialFileDuplicateSearch\execute(), MediaWiki\Specials\SpecialImport\execute(), MediaWiki\Specials\SpecialLinkSearch\execute(), MediaWiki\Specials\SpecialListFiles\execute(), MediaWiki\Specials\SpecialListGrants\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialListUsers\execute(), MediaWiki\Specials\SpecialLog\execute(), MediaWiki\Specials\SpecialMergeHistory\execute(), MediaWiki\Specials\SpecialMIMESearch\execute(), MediaWiki\Specials\SpecialMovePage\execute(), MediaWiki\Specials\SpecialNewFiles\execute(), MediaWiki\Specials\SpecialNewPages\execute(), MediaWiki\Specials\SpecialPagesWithProp\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialPrefixIndex\execute(), MediaWiki\Specials\SpecialProtectedPages\execute(), MediaWiki\Specials\SpecialProtectedTitles\execute(), MediaWiki\Specials\SpecialRevisionDelete\execute(), MediaWiki\Specials\SpecialSpecialPages\execute(), MediaWiki\Specials\SpecialStatistics\execute(), MediaWiki\Specials\SpecialTags\execute(), MediaWiki\Specials\SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\Specials\SpecialUndelete\execute(), MediaWiki\Specials\SpecialUpload\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\SpecialPage\ChangesListSpecialPage\execute(), MediaWiki\SpecialPage\DisabledSpecialPage\execute(), MediaWiki\Specials\SpecialChangeCredentials\execute(), MediaWiki\Specials\SpecialLinkAccounts\execute(), MediaWiki\Specials\SpecialUnlinkAccounts\execute(), MediaWiki\Specials\SpecialSearch\setupPage(), MediaWiki\SpecialPage\SpecialRedirectWithAction\showNoRedirectPage(), MediaWiki\Specials\SpecialDiff\showNoRedirectPage(), MediaWiki\Specials\SpecialNewSection\showNoRedirectPage(), and MediaWiki\Specials\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 683 of file SpecialPage.php.
Referenced by MediaWiki\Specials\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 652 of file SpecialPage.php.
References SearchEngineFactory\create(), and MediaWiki\MediaWikiServices\getInstance().
Referenced by MediaWiki\SpecialPage\SpecialRedirectWithAction\prefixSearchSubpages(), MediaWiki\Specials\SpecialAllPages\prefixSearchSubpages(), MediaWiki\Specials\SpecialChangeContentModel\prefixSearchSubpages(), MediaWiki\Specials\SpecialNewSection\prefixSearchSubpages(), MediaWiki\Specials\SpecialPageLanguage\prefixSearchSubpages(), MediaWiki\Specials\SpecialRecentChangesLinked\prefixSearchSubpages(), and MediaWiki\Specials\SpecialUndelete\prefixSearchSubpages().
MediaWiki\SpecialPage\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 MediaWiki\SpecialPage\SpecialRedirectWithAction, MediaWiki\Specials\SpecialAllPages, MediaWiki\Specials\SpecialBlock, MediaWiki\Specials\SpecialChangeContentModel, MediaWiki\Specials\SpecialContributions, MediaWiki\Specials\SpecialDeletedContributions, MediaWiki\Specials\SpecialEmailUser, MediaWiki\Specials\SpecialFileDuplicateSearch, MediaWiki\Specials\SpecialFilepath, MediaWiki\Specials\SpecialListFiles, MediaWiki\Specials\SpecialMovePage, MediaWiki\Specials\SpecialNewSection, MediaWiki\Specials\SpecialPageLanguage, MediaWiki\Specials\SpecialPagesWithProp, MediaWiki\Specials\SpecialRecentChangesLinked, MediaWiki\Specials\SpecialRenameUser, MediaWiki\Specials\SpecialUnblock, MediaWiki\Specials\SpecialUndelete, MediaWiki\Specials\SpecialUserRights, and MediaWiki\Specials\SpecialWhatLinksHere.
Definition at line 610 of file SpecialPage.php.
MediaWiki\SpecialPage\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 436 of file SpecialPage.php.
References MediaWiki\SpecialPage\SpecialPage\getUser().
MediaWiki\SpecialPage\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 452 of file SpecialPage.php.
References MediaWiki\SpecialPage\SpecialPage\getUser().
Referenced by MediaWiki\Specials\SpecialChangeEmail\checkExecutePermissions(), MediaWiki\Specials\SpecialConfirmEmail\execute(), MediaWiki\Specials\SpecialBotPasswords\execute(), MediaWiki\Specials\SpecialMute\execute(), MediaWiki\Specials\SpecialPreferences\execute(), and MediaWiki\Specials\SpecialResetTokens\execute().
|
final |
Entry point.
string | null | $subPage |
Definition at line 720 of file SpecialPage.php.
|
finalprotected |
Set the injected AuthManager from the special page constructor.
AuthManager | $authManager |
Definition at line 574 of file SpecialPage.php.
Referenced by MediaWiki\Specials\SpecialChangeCredentials\__construct(), MediaWiki\Specials\SpecialChangeEmail\__construct(), MediaWiki\Specials\SpecialCreateAccount\__construct(), MediaWiki\Specials\SpecialLinkAccounts\__construct(), MediaWiki\Specials\SpecialUnlinkAccounts\__construct(), MediaWiki\Specials\SpecialUserLogin\__construct(), and MediaWiki\Specials\SpecialBotPasswords\__construct().
|
final |
Set content language.
Language | $contentLanguage |
Definition at line 957 of file SpecialPage.php.
MediaWiki\SpecialPage\SpecialPage::setContext | ( | $context | ) |
Sets the context this SpecialPage is executed in.
IContextSource | $context |
Definition at line 855 of file SpecialPage.php.
Referenced by Skin\buildNavUrls(), and MediaWiki\SpecialPage\LoginSignupSpecialPage\setSessionUserForCurrentRequest().
|
protected |
Sets headers - this should be called from the execute() method of all derived classes!
Reimplemented in MediaWiki\Specials\SpecialUserLogin.
Definition at line 693 of file SpecialPage.php.
References MediaWiki\MainConfigNames\UseMediaWikiUIEverywhere, and wfDeprecated().
Referenced by MediaWiki\Specials\SpecialConfirmEmail\execute(), MediaWiki\Specials\SpecialEmailInvalidate\execute(), MediaWiki\Specials\SpecialBookSources\execute(), MediaWiki\Specials\SpecialEditWatchlist\execute(), MediaWiki\SpecialPage\FormSpecialPage\execute(), MediaWiki\Specials\SpecialActiveUsers\execute(), MediaWiki\Specials\SpecialAllMessages\execute(), MediaWiki\Specials\SpecialAllPages\execute(), MediaWiki\Specials\SpecialApiSandbox\execute(), MediaWiki\Specials\SpecialAutoblockList\execute(), MediaWiki\Specials\SpecialBlankpage\execute(), MediaWiki\Specials\SpecialBlockList\execute(), MediaWiki\Specials\SpecialCategories\execute(), MediaWiki\Specials\SpecialComparePages\execute(), MediaWiki\Specials\SpecialContribute\execute(), MediaWiki\Specials\SpecialContributions\execute(), MediaWiki\Specials\SpecialDeletedContributions\execute(), MediaWiki\Specials\SpecialEditTags\execute(), MediaWiki\Specials\SpecialEmailUser\execute(), MediaWiki\Specials\SpecialExport\execute(), MediaWiki\Specials\SpecialFileDuplicateSearch\execute(), MediaWiki\Specials\SpecialGoToInterwiki\execute(), MediaWiki\Specials\SpecialImport\execute(), MediaWiki\Specials\SpecialLinkSearch\execute(), MediaWiki\Specials\SpecialListFiles\execute(), MediaWiki\Specials\SpecialListGrants\execute(), MediaWiki\Specials\SpecialListGroupRights\execute(), MediaWiki\Specials\SpecialListUsers\execute(), MediaWiki\Specials\SpecialLog\execute(), MediaWiki\Specials\SpecialMergeHistory\execute(), MediaWiki\Specials\SpecialMIMESearch\execute(), MediaWiki\Specials\SpecialMovePage\execute(), MediaWiki\Specials\SpecialNewFiles\execute(), MediaWiki\Specials\SpecialNewPages\execute(), MediaWiki\Specials\SpecialPagesWithProp\execute(), MediaWiki\Specials\SpecialPasswordPolicies\execute(), MediaWiki\Specials\SpecialPreferences\execute(), MediaWiki\Specials\SpecialPrefixIndex\execute(), MediaWiki\Specials\SpecialProtectedPages\execute(), MediaWiki\Specials\SpecialProtectedTitles\execute(), MediaWiki\Specials\SpecialRandomPage\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\Specials\SpecialRevisionDelete\execute(), MediaWiki\Specials\SpecialSpecialPages\execute(), MediaWiki\Specials\SpecialStatistics\execute(), MediaWiki\Specials\SpecialTags\execute(), MediaWiki\Specials\SpecialTrackingCategories\execute(), MediaWiki\Specials\SpecialUnblock\execute(), MediaWiki\Specials\SpecialUndelete\execute(), MediaWiki\Specials\SpecialUpload\execute(), MediaWiki\Specials\SpecialUserLogout\execute(), MediaWiki\Specials\SpecialUserRights\execute(), MediaWiki\SpecialPage\ChangesListSpecialPage\execute(), MediaWiki\SpecialPage\DisabledSpecialPage\execute(), MediaWiki\SpecialPage\LoginSignupSpecialPage\execute(), MediaWiki\Specials\SpecialChangeCredentials\execute(), MediaWiki\Specials\SpecialExpandTemplates\execute(), MediaWiki\Specials\SpecialLinkAccounts\execute(), MediaWiki\Specials\SpecialUnlinkAccounts\execute(), MediaWiki\Specials\SpecialSearch\setupPage(), MediaWiki\SpecialPage\SpecialRedirectWithAction\showNoRedirectPage(), MediaWiki\Specials\SpecialDiff\showNoRedirectPage(), MediaWiki\Specials\SpecialNewSection\showNoRedirectPage(), and MediaWiki\Specials\SpecialPermanentLink\showNoRedirectPage().
MediaWiki\SpecialPage\SpecialPage::setHookContainer | ( | HookContainer | $hookContainer | ) |
HookContainer | $hookContainer |
Definition at line 1175 of file SpecialPage.php.
MediaWiki\SpecialPage\SpecialPage::setLinkRenderer | ( | LinkRenderer | $linkRenderer | ) |
MediaWiki\SpecialPage\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 257 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 MediaWiki\SpecialPage\FormSpecialPage.
Definition at line 489 of file SpecialPage.php.
Referenced by MediaWiki\SpecialPage\SpecialPage\checkLoginSecurityLevel().
|
final |
SpecialPageFactory | $specialPageFactory |
Definition at line 1209 of file SpecialPage.php.
MediaWiki\SpecialPage\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 MediaWiki\Specials\SpecialPasswordReset, MediaWiki\Specials\SpecialUndelete, and MediaWiki\Specials\SpecialUpload.
Definition at line 380 of file SpecialPage.php.
References MediaWiki\MediaWikiServices\getInstance().
Referenced by MediaWiki\SpecialPage\SpecialPage\checkPermissions().
|
protected |
Call wfTransactionalTimeLimit() if this request was POSTed.
Definition at line 1106 of file SpecialPage.php.
References wfTransactionalTimeLimit().
Referenced by MediaWiki\Specials\SpecialImport\execute(), MediaWiki\Specials\SpecialMergeHistory\execute(), MediaWiki\Specials\SpecialMovePage\execute(), MediaWiki\Specials\SpecialRenameUser\execute(), MediaWiki\Specials\SpecialRevisionDelete\execute(), MediaWiki\Specials\SpecialUndelete\execute(), MediaWiki\Specials\SpecialUpload\execute(), and MediaWiki\Specials\SpecialUploadStash\execute().
|
protected |
Current request context.
Definition at line 95 of file SpecialPage.php.
|
protected |
Whether the special page can be included in an article.
Definition at line 89 of file SpecialPage.php.
Referenced by MediaWiki\SpecialPage\SpecialPage\isIncludable().
|
protected |
Whether or not this special page is being included from an article.
Definition at line 86 of file SpecialPage.php.
|
protected |
The canonical name of this special page Also used as the message key for the default.
Definition at line 71 of file SpecialPage.php.
Referenced by MediaWiki\SpecialPage\SpecialPage\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 80 of file SpecialPage.php.
Referenced by MediaWiki\SpecialPage\SpecialPage\getRestriction().