MediaWiki REL1_33
|
Parent class for all special pages. More...
Public Member Functions | |
__construct ( $name='', $restriction='', $listed=true, $function=false, $file='', $includable=false) | |
Default constructor for special pages Derivative classes should call this from their constructor Note that if the user does not have the required level, an error message will be displayed by the default execute() method, without the global function ever being called. | |
addHelpLink ( $to, $overrideBaseUrl=false) | |
Adds help link with an icon via page indicators. | |
checkPermissions () | |
Checks if userCanExecute, and if not throws a PermissionsError. | |
checkReadOnly () | |
If the wiki is currently in readonly mode, throws a ReadOnlyError. | |
displayRestrictionError () | |
Output an error message telling the user what access level they have to have. | |
doesWrites () | |
Indicates whether this special page may perform database writes. | |
execute ( $subPage) | |
Default execute method Checks user permissions. | |
getConfig () | |
Shortcut to get main config object. | |
getContext () | |
Gets the context this SpecialPage is executed in. | |
getDescription () | |
Returns the name that goes in the \<h1\> in the special page itself, and also the name that will be listed in Special:Specialpages. | |
getFinalGroupName () | |
Get the group that the special page belongs in on Special:SpecialPage Use this method, instead of getGroupName to allow customization of the group name from the wiki side. | |
getFullTitle () | |
Return the full title, including $par. | |
getLanguage () | |
Shortcut to get user's language. | |
getLinkRenderer () | |
getLocalName () | |
Get the localised name of the special page. | |
getName () | |
Get the name of this Special Page. | |
getOutput () | |
Get the OutputPage being used for this instance. | |
getPageTitle ( $subpage=false) | |
Get a self-referential title object. | |
getRequest () | |
Get the WebRequest being used for this instance. | |
getRestriction () | |
Get the permission that a user must have to execute this page. | |
getSkin () | |
Shortcut to get the skin being used for this instance. | |
getTitle ( $subpage=false) | |
Get a self-referential title object. | |
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) | |
Wrapper around wfMessage that sets the current context. | |
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. | |
prefixSearchSubpages ( $search, $limit, $offset) | |
Return an array of subpages beginning with $search that this special page will accept. | |
requireLogin ( $reasonMsg='exception-nologin-text', $titleMsg='exception-nologin') | |
If the user is not logged in, throws UserNotLoggedIn error. | |
run ( $subPage) | |
Entry point. | |
setContext ( $context) | |
Sets the context this SpecialPage is executed in. | |
setHeaders () | |
Sets headers - this should be called from the execute() method of all derived classes! | |
setLinkRenderer (LinkRenderer $linkRenderer) | |
setListed ( $listed) | |
Set whether this page is listed in Special:Specialpages, at run-time. | |
userCanExecute (User $user) | |
Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction). | |
Static Public Member Functions | |
static | getSafeTitleFor ( $name, $subpage=false) |
Get a localised Title object for a page name with a possibly unvalidated subpage. | |
static | getTitleFor ( $name, $subpage=false, $fragment='') |
Get a localised Title object for a specified special page name If you don't need a full Title object, consider using TitleValue through getTitleValueFor() below. | |
static | getTitleValueFor ( $name, $subpage=false, $fragment='') |
Get a localised TitleValue object for a specified special page name. | |
Protected Member Functions | |
addFeedLinks ( $params) | |
Adds RSS/atom links. | |
afterExecute ( $subPage) | |
Gets called after. | |
beforeExecute ( $subPage) | |
Gets called before. | |
buildPrevNextNavigation ( $offset, $limit, array $query=[], $atend=false, $subpage=false) | |
Generate (prev x| next x) (20|50|100...) type links for paging. | |
checkLoginSecurityLevel ( $level=null) | |
Verifies that the user meets the security level, possibly reauthenticating them in the process. | |
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'. | |
getLoginSecurityLevel () | |
Tells if the special page does something security-sensitive and needs extra defense against a stolen account (e.g. | |
getRobotPolicy () | |
Return the robot policy. | |
getSubpagesForPrefixSearch () | |
Return an array of subpages that this special page will accept for prefix searches. | |
prefixSearchString ( $search, $limit, $offset) | |
Perform a regular substring search for prefixSearchSubpages. | |
setReauthPostData (array $data) | |
Record preserved POST data after a reauthentication. | |
useTransactionalTimeLimit () | |
Call wfTransactionalTimeLimit() if this request was POSTed. | |
Static Protected Member Functions | |
static | prefixSearchArray ( $search, $limit, array $subpages, $offset) |
Helper function for implementations of prefixSearchSubpages() that filter the values in memory (as opposed to making a query). | |
Protected Attributes | |
IContextSource | $mContext |
Current request context. | |
$mIncludable | |
$mIncluding | |
$mName | |
$mRestriction | |
Private Member Functions | |
numLink ( $offset, $limit, array $query, $link, $tooltipMsg, $class, $subpage=false) | |
Helper function for buildPrevNextNavigation() that generates links. | |
Private Attributes | |
MediaWiki Linker LinkRenderer null | $linkRenderer |
$mListed | |
$mLocalName | |
Parent class for all special pages.
Includes some static functions for handling the special page list deprecated in favor of SpecialPageFactory.
Definition at line 36 of file SpecialPage.php.
SpecialPage::__construct | ( | $name = '', | |
$restriction = '', | |||
$listed = true, | |||
$function = false, | |||
$file = '', | |||
$includable = false ) |
Default constructor for special pages Derivative classes should call this from their constructor Note that if the user does not have the required level, an error message will be displayed by the default execute() method, without the global function ever being called.
If you override execute(), you can recover the default behavior with userCanExecute() and displayRestrictionError()
string | $name | Name of the special page, as seen in links and URLs |
string | $restriction | User right required, e.g. "block" or "delete" |
bool | $listed | Whether the page is listed in Special:Specialpages |
callable | bool | $function | Unused |
string | $file | Unused |
bool | $includable | Whether the page can be included in normal pages |
Definition at line 138 of file SpecialPage.php.
|
protected |
Adds RSS/atom links.
array | $params |
Definition at line 814 of file SpecialPage.php.
References $params, getConfig(), getOutput(), wfAppendQuery(), and wfScript().
Referenced by SpecialContributions\execute(), SpecialRecentChanges\outputFeedLinks(), and SpecialWatchlist\outputFeedLinks().
SpecialPage::addHelpLink | ( | $to, | |
$overrideBaseUrl = false ) |
Adds help link with an icon via page indicators.
Link target can be overridden by a local message containing a wikilink: the message key is: lowercase special page name + '-helppage'.
string | $to | Target MediaWiki.org page title or encoded URL. |
bool | $overrideBaseUrl | Whether $url is a full URL, to avoid MW.o. |
Definition at line 832 of file SpecialPage.php.
References getName(), getOutput(), including, and msg().
Referenced by SpecialBlock\alterForm(), SpecialChangeContentModel\alterForm(), SpecialRenameuser\execute(), SpecialAllMessages\execute(), SpecialApiSandbox\execute(), SpecialAutoblockList\execute(), SpecialContributions\execute(), SpecialExport\execute(), LinkSearchPage\execute(), SpecialLog\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialSpecialpages\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), UserrightsPage\execute(), SpecialWhatLinksHere\execute(), SpecialExpandTemplates\execute(), SpecialRecentChanges\execute(), SpecialWatchlist\execute(), SpecialRecentChangesLinked\getExtraOptions(), SpecialRandomInCategory\getFormFields(), SpecialSearch\setupPage(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showMergeForm(), and SpecialDiff\showNoRedirectPage().
|
protected |
Gets called after.
string | null | $subPage |
Reimplemented in ProxySpecialPage, and SpecialCachedPage.
Definition at line 603 of file SpecialPage.php.
Referenced by run().
|
protected |
Gets called before.
string | null | $subPage |
Reimplemented in ProxySpecialPage, AuthManagerSpecialPage, LoginSignupSpecialPage, and SpecialUserLogin.
Definition at line 592 of file SpecialPage.php.
Referenced by run().
|
protected |
Generate (prev x| next x) (20|50|100...) type links for paging.
int | $offset | |
int | $limit | |
array | $query | Optional URL query parameter string |
bool | $atend | Optional param for specified if this is the last page |
string | bool | $subpage | Optional param for specifying subpage |
Definition at line 934 of file SpecialPage.php.
References $lang, $query, and(), getLanguage(), msg(), and numLink().
Referenced by QueryPage\execute(), and SpecialSearch\showResults().
|
protected |
Verifies that the user meets the security level, possibly reauthenticating them in the process.
This should be used when the page does something security-sensitive and needs extra defense against a stolen account (e.g. a reauthentication). The authentication framework will make an extra effort to make sure the user account is not compromised. What that exactly means will depend on the system and user settings; e.g. the user might be required to log in again unless their last login happened recently, or they might be given a second-factor challenge.
Calling this method will result in one if these actions:
Note that this does not in any way check that the user is authorized to use this special page (use checkPermissions() for that).
string | null | $level | A security level. Can be an arbitrary string, defaults to the page name. |
ErrorPageError | If the security level cannot be met, even with reauthentication. |
Definition at line 400 of file SpecialPage.php.
References $data, $query, $request, and(), MWCryptRand\generateHex(), getFullTitle(), getName(), getOutput(), getRequest(), PROTO_HTTPS, setReauthPostData(), wfArrayToCgi(), and wfMessage().
Referenced by FormSpecialPage\execute(), and execute().
SpecialPage::checkPermissions | ( | ) |
Checks if userCanExecute, and if not throws a PermissionsError.
PermissionsError |
Reimplemented in ProxySpecialPage, and SpecialCreateAccount.
Definition at line 309 of file SpecialPage.php.
References displayRestrictionError(), getUser(), and userCanExecute().
Referenced by FormSpecialPage\checkExecutePermissions(), EmailConfirmation\execute(), EmailInvalidation\execute(), SpecialEditWatchlist\execute(), SpecialNuke\execute(), DeletedContributionsPage\execute(), SpecialEditTags\execute(), SpecialMergeHistory\execute(), SpecialRevisionDelete\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), LoginSignupSpecialPage\execute(), execute(), SpecialUploadStash\execute(), and SpecialWatchlist\execute().
SpecialPage::checkReadOnly | ( | ) |
If the wiki is currently in readonly mode, throws a ReadOnlyError.
ReadOnlyError |
Definition at line 322 of file SpecialPage.php.
References wfReadOnly().
Referenced by FormSpecialPage\checkExecutePermissions(), EmailConfirmation\execute(), EmailInvalidation\execute(), SpecialEditWatchlist\execute(), SpecialNuke\execute(), SpecialEditTags\execute(), SpecialImport\execute(), SpecialMergeHistory\execute(), MovePageForm\execute(), SpecialPreferences\execute(), SpecialRevisionDelete\execute(), SpecialUnblock\execute(), SpecialUpload\execute(), UserrightsPage\execute(), SpecialUndelete\showHistory(), and SpecialUndelete\undelete().
SpecialPage::displayRestrictionError | ( | ) |
Output an error message telling the user what access level they have to have.
PermissionsError |
Reimplemented in ProxySpecialPage.
Definition at line 298 of file SpecialPage.php.
Referenced by checkPermissions(), and QueryPage\execute().
SpecialPage::doesWrites | ( | ) |
Indicates whether this special page may perform database writes.
Reimplemented in SpecialInterwiki, SpecialNuke, SpecialDisableOATHForUser, SpecialOATHDisable, SpecialOATHEnable, SpecialRenameuser, SpecialReplaceText, SpecialBlock, SpecialChangeContentModel, SpecialChangeCredentials, SpecialChangeEmail, EmailConfirmation, SpecialCreateAccount, SpecialEditTags, SpecialEditWatchlist, EmailInvalidation, SpecialEmailUser, SpecialImport, SpecialLockdb, SpecialMergeHistory, MovePageForm, SpecialPageLanguage, SpecialPasswordReset, SpecialPreferences, SpecialResetTokens, SpecialRevisionDelete, SpecialRunJobs, SpecialUnblock, SpecialUndelete, SpecialUnlockdb, SpecialUpload, SpecialUploadStash, SpecialUserLogin, SpecialUserLogout, UserrightsPage, and SpecialWatchlist.
Definition at line 878 of file SpecialPage.php.
SpecialPage::execute | ( | $subPage | ) |
Default execute method Checks user permissions.
This must be overridden by subclasses; it will be made abstract in a future version
string | null | $subPage |
Reimplemented in EmailConfirmation, EmailInvalidation, SpecialBookSources, SpecialEditWatchlist, CategoryTreePage, SpecialCiteThisPage, SpecialCaptcha, SpecialGadgets, SpecialInterwiki, SpecialNuke, SpecialDisableOATHForUser, SpecialOATHDisable, SpecialOATHEnable, SpecialRenameuser, FormSpecialPage, QueryPage, SpecialActiveUsers, SpecialAllMessages, SpecialAllPages, SpecialApiHelp, SpecialApiSandbox, SpecialAutoblockList, SpecialBlankpage, SpecialBlockList, SpecialBotPasswords, SpecialCategories, SpecialChangeEmail, SpecialComparePages, SpecialContributions, DeletedContributionsPage, SpecialEditTags, SpecialEmailUser, SpecialExport, FileDuplicateSearchPage, SpecialGoToInterwiki, SpecialImport, SpecialJavaScriptTest, LinkSearchPage, SpecialListFiles, SpecialListGrants, SpecialListGroupRights, SpecialListUsers, SpecialLog, SpecialMergeHistory, MIMEsearchPage, MovePageForm, SpecialNewFiles, SpecialNewpages, SpecialPagesWithProp, SpecialPasswordPolicies, SpecialPasswordReset, SpecialPreferences, SpecialPrefixindex, SpecialProtectedpages, SpecialProtectedtitles, RandomPage, SpecialResetTokens, SpecialRevisionDelete, SpecialSearch, SpecialSpecialpages, SpecialStatistics, SpecialTags, SpecialTrackingCategories, SpecialUnblock, SpecialUndelete, UnwatchedpagesPage, SpecialUpload, SpecialUserLogout, UserrightsPage, SpecialVersion, WantedPagesPage, SpecialWhatLinksHere, WithoutInterwikiPage, SpecialRunJobs, SpecialReplaceText, ProxySpecialPage, ChangesListSpecialPage, DisabledSpecialPage, LoginSignupSpecialPage, RedirectSpecialPage, SpecialChangeCredentials, SpecialExpandTemplates, SpecialLinkAccounts, SpecialPageData, SpecialRecentChanges, SpecialUnlinkAccounts, SpecialUploadStash, and SpecialWatchlist.
Definition at line 615 of file SpecialPage.php.
References checkLoginSecurityLevel(), checkPermissions(), getLoginSecurityLevel(), outputHeader(), and setHeaders().
|
protected |
Reimplemented in SpecialNewpages, and SpecialRecentChanges.
Definition at line 219 of file SpecialPage.php.
Referenced by maxIncludeCacheTime().
SpecialPage::getConfig | ( | ) |
Shortcut to get main config object.
Definition at line 764 of file SpecialPage.php.
References getContext().
Referenced by SpecialGadgetUsage\__construct(), SpecialWatchlist\__construct(), addFeedLinks(), SpecialPasswordReset\alterForm(), SpecialNewFiles\buildForm(), SpecialBotPasswords\checkExecutePermissions(), SpecialLockdb\checkExecutePermissions(), SpecialUnlockdb\checkExecutePermissions(), SpecialImport\doImport(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), QueryPage\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialContributions\execute(), DeletedContributionsPage\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), SpecialImport\execute(), LinkSearchPage\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialLog\execute(), SpecialPasswordPolicies\execute(), SpecialSearch\execute(), SpecialTrackingCategories\execute(), SpecialWhatLinksHere\execute(), SpecialRunJobs\execute(), ChangesListSpecialPage\execute(), SpecialExpandTemplates\execute(), SpecialWatchlist\execute(), SpecialNewpages\feed(), SpecialNewpages\feedTitle(), UserrightsPage\fetchUser(), QueryPage\getDBLimit(), SpecialRecentChanges\getFeedQuery(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialBlock\getFormFields(), SpecialPageLanguage\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialStatistics\getGroupStats(), SpecialActiveUsers\getIntroText(), SpecialProtectedpages\getLevelMenu(), SpecialProtectedtitles\getLevelMenu(), QueryPage\getLimitOffset(), SpecialImport\getMappingFormPart(), QueryPage\getMaxResults(), UnusedimagesPage\getPageHeader(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), SpecialStatistics\getPageStats(), SpecialCiteThisPage\getParser(), SpecialPasswordReset\getPasswordReset(), LinkSearchPage\getQueryInfo(), ShortPagesPage\getQueryInfo(), UnusedimagesPage\getQueryInfo(), WantedPagesPage\getQueryInfo(), SpecialChangeCredentials\getRequestBlacklist(), SpecialLinkAccounts\getRequestBlacklist(), SpecialRemoveCredentials\getRequestBlacklist(), SpecialUnlinkAccounts\getRequestBlacklist(), SpecialResetTokens\getTokensList(), SpecialStatistics\getUserStats(), SpecialSearch\goResult(), ChangesListSpecialPage\includeRcFiltersApp(), QueryPage\isCached(), QueryPage\isExpensive(), SpecialBotPasswords\isListed(), ChangesListSpecialPage\isStructuredFilterUiEnabled(), LinkSearchPage\linkParameters(), maxIncludeCacheTime(), SpecialBlock\maybeAlterFormDefaults(), SpecialLockdb\onSubmit(), SpecialUnlockdb\onSubmit(), SpecialRecentChanges\optionsPanel(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialAllPages\outputHTMLForm(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialGadgetUsage\outputResults(), SpecialUploadStash\outputThumbFromStash(), SpecialBlock\preText(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), ChangesListSpecialPage\registerFilters(), SpecialBotPasswords\save(), setHeaders(), SpecialWatchlist\setTopText(), MovePageForm\showForm(), SpecialImport\showForm(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialWhatLinksHere\showIndirectLinks(), SpecialUndelete\showRevision(), SpecialUndelete\undelete(), SpecialExport\validateLinkDepth(), and ChangesListSpecialPage\validateOptions().
SpecialPage::getContext | ( | ) |
Gets the context this SpecialPage is executed in.
Definition at line 698 of file SpecialPage.php.
References wfDebug().
Referenced by SpecialBookSources\buildForm(), SpecialActiveUsers\buildForm(), SpecialUndelete\diffHeader(), SpecialImport\doImport(), SpecialTags\doTagRow(), SpecialActiveUsers\execute(), SpecialAllMessages\execute(), SpecialApiHelp\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialComparePages\execute(), SpecialContributions\execute(), DeletedContributionsPage\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), FileDuplicateSearchPage\execute(), LinkSearchPage\execute(), SpecialListFiles\execute(), SpecialListUsers\execute(), SpecialNewFiles\execute(), SpecialPagesWithProp\execute(), SpecialPreferences\execute(), SpecialStatistics\execute(), SpecialUnblock\execute(), SpecialExpandTemplates\execute(), CategoryTreePage\executeInputForm(), SpecialNewpages\form(), SpecialListGroupRights\formatPermissions(), FewestrevisionsPage\formatResult(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), MostlinkedPage\formatResult(), MostlinkedCategoriesPage\formatResult(), MostlinkedTemplatesPage\formatResult(), ShortPagesPage\formatResult(), UnwatchedpagesPage\formatResult(), PageQueryPage\formatResult(), SpecialProtectedtitles\formatRow(), SpecialExpandTemplates\generateHtml(), AuthManagerSpecialPage\getAuthForm(), LoginSignupSpecialPage\getAuthForm(), SpecialEmailUser\getBlockedEmailError(), SpecialEditWatchlist\getClearForm(), SpecialUpload\getDupeWarning(), SpecialRecentChanges\getExtraOptions(), FormSpecialPage\getForm(), SpecialContributions\getForm(), SpecialEditTags\getList(), SpecialRevisionDelete\getList(), SpecialEditWatchlist\getNormalForm(), MIMEsearchPage\getPageHeader(), WithoutInterwikiPage\getPageHeader(), SpecialEditWatchlist\getRawForm(), AuthManagerSpecialPage\getRequest(), SpecialUpload\getUploadForm(), SpecialExpandTemplates\makeForm(), ChangesListSpecialPage\makeLegend(), ChangesListBooleanFilter\modifyQuery(), ChangesListStringOptionsFilterGroup\modifyQuery(), SpecialPrefixindex\namespacePrefixForm(), CategoryTreeHooks\onSpecialTrackingCategoriesGenerateCatLink(), SpecialChangeContentModel\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialAllPages\outputHTMLForm(), ImageQueryPage\outputResults(), SpecialTags\processCreateTagForm(), SpecialNuke\promptForm(), SpecialEmailUser\sendEmailForm(), AuthManagerSpecialPage\setRequest(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), SpecialLog\show(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialTags\showDeleteTagForm(), SpecialUndelete\showDiff(), UserrightsPage\showEditUserGroupsForm(), SpecialGadgets\showExportForm(), SpecialInterwiki\showForm(), SpecialDiff\showForm(), SpecialPermanentLink\showForm(), SpecialUndelete\showList(), SpecialProtectedtitles\showOptions(), SpecialProtectedpages\showOptions(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), LoginSignupSpecialPage\showReturnToPage(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialUploadStash\showUploads(), SpecialPreferences\submitReset(), SpecialUserLogin\successfulAction(), and SpecialEmailUser\userForm().
SpecialPage::getDescription | ( | ) |
Returns the name that goes in the \<h1\> in the special page itself, and also the name that will be listed in Special:Specialpages.
Derived classes can override this, but usually it is easier to keep the default behavior.
Reimplemented in SpecialInterwiki, ProxySpecialPage, SpecialCreateAccount, SpecialDiff, SpecialEditTags, SpecialEmailUser, and SpecialUserLogin.
Definition at line 655 of file SpecialPage.php.
Referenced by SpecialNewpages\feedTitle(), and setHeaders().
SpecialPage::getFinalGroupName | ( | ) |
Get the group that the special page belongs in on Special:SpecialPage Use this method, instead of getGroupName to allow customization of the group name from the wiki side.
Definition at line 857 of file SpecialPage.php.
References and(), getGroupName(), getName(), and msg().
SpecialPage::getFullTitle | ( | ) |
Return the full title, including $par.
Definition at line 774 of file SpecialPage.php.
References getContext().
Referenced by checkLoginSecurityLevel(), SpecialUserLogout\execute(), LoginSignupSpecialPage\execute(), AuthManagerSpecialPage\getAuthForm(), and AuthManagerSpecialPage\handleReauthBeforeExecute().
|
protected |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented in CategoryTreePage, SpecialCiteThisPage, SpecialGadgets, SpecialGadgetUsage, SpecialInterwiki, SpecialNuke, ProxySpecialPage, SpecialOATH, SpecialRenameuser, SpecialReplaceText, ChangesListSpecialPage, LoginSignupSpecialPage, SpecialActiveUsers, SpecialAllMessages, SpecialAllPages, AncientPagesPage, SpecialApiSandbox, SpecialAutoblockList, SpecialBlock, SpecialBlockList, SpecialBookSources, SpecialBotPasswords, BrokenRedirectsPage, SpecialCategories, SpecialChangeContentModel, SpecialChangeCredentials, SpecialChangeEmail, SpecialComparePages, SpecialContributions, SpecialCreateAccount, DeadendPagesPage, DeletedContributionsPage, SpecialDiff, DoubleRedirectsPage, SpecialEditTags, SpecialEmailUser, SpecialExpandTemplates, SpecialExport, FewestrevisionsPage, FileDuplicateSearchPage, SpecialFilepath, SpecialGoToInterwiki, SpecialImport, SpecialJavaScriptTest, SpecialLinkAccounts, LinkSearchPage, ListDuplicatedFilesPage, SpecialListFiles, SpecialListGrants, SpecialListGroupRights, ListredirectsPage, SpecialListUsers, SpecialLockdb, SpecialLog, LonelyPagesPage, LongPagesPage, MediaStatisticsPage, SpecialMergeHistory, MIMEsearchPage, MostcategoriesPage, MostimagesPage, MostinterwikisPage, MostlinkedPage, MostlinkedCategoriesPage, MostlinkedTemplatesPage, MostrevisionsPage, MovePageForm, SpecialNewFiles, SpecialNewpages, SpecialPageLanguage, SpecialPagesWithProp, SpecialPasswordPolicies, SpecialPasswordReset, SpecialPermanentLink, SpecialPreferences, SpecialPrefixindex, SpecialProtectedpages, SpecialProtectedtitles, SpecialRandomInCategory, RandomPage, SpecialRedirect, SpecialResetTokens, SpecialRevisionDelete, SpecialSearch, ShortPagesPage, SpecialStatistics, SpecialTags, SpecialTrackingCategories, SpecialUnblock, UncategorizedImagesPage, UncategorizedPagesPage, SpecialUndelete, SpecialUnlinkAccounts, SpecialUnlockdb, UnusedCategoriesPage, UnusedimagesPage, UnusedtemplatesPage, UnwatchedpagesPage, SpecialUpload, SpecialUserLogin, SpecialUserLogout, UserrightsPage, SpecialVersion, WantedCategoriesPage, WantedFilesPage, WantedPagesPage, WantedTemplatesPage, SpecialWhatLinksHere, and WithoutInterwikiPage.
Definition at line 890 of file SpecialPage.php.
Referenced by getFinalGroupName().
SpecialPage::getLanguage | ( | ) |
Shortcut to get user's language.
Definition at line 755 of file SpecialPage.php.
References getContext().
Referenced by SpecialEditTags\buildCheckBoxes(), buildPrevNextNavigation(), SpecialEditWatchlist\buildRemoveLine(), SpecialVersion\compare(), SpecialUndelete\diffHeader(), SpecialWatchlist\doHeader(), SpecialReplaceText\doSpecialReplaceText(), SpecialTags\doTagRow(), QueryPage\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), FileDuplicateSearchPage\execute(), LinkSearchPage\execute(), SpecialTrackingCategories\execute(), SpecialJavaScriptTest\exportQUnit(), SpecialNewpages\filterLinks(), SpecialMyLanguage\findTitle(), SpecialUndelete\formatFileRow(), SpecialListGroupRights\formatPermissions(), SpecialPasswordPolicies\formatPolicies(), SpecialGadgetUsage\formatResult(), WantedQueryPage\formatResult(), AncientPagesPage\formatResult(), BrokenRedirectsPage\formatResult(), DoubleRedirectsPage\formatResult(), FewestrevisionsPage\formatResult(), FileDuplicateSearchPage\formatResult(), ListredirectsPage\formatResult(), MIMEsearchPage\formatResult(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), MostlinkedPage\formatResult(), MostlinkedCategoriesPage\formatResult(), MostlinkedTemplatesPage\formatResult(), SpecialPagesWithProp\formatResult(), ShortPagesPage\formatResult(), UnusedtemplatesPage\formatResult(), UnwatchedpagesPage\formatResult(), WantedCategoriesPage\formatResult(), SpecialUndelete\formatRevisionRow(), SpecialNewpages\formatRow(), SpecialProtectedtitles\formatRow(), SpecialCachedPage\getCacheKey(), SpecialVersion\getCreditsForExtension(), SpecialStatistics\getEditStats(), SpecialVersion\getEntryPointInfo(), MediaStatisticsPage\getExtensionList(), SpecialUndelete\getFileLink(), SpecialWhatLinksHere\getFilterPanel(), SpecialBotPasswords\getFormFields(), SpecialPageLanguage\getFormFields(), SpecialStatistics\getGroupStats(), SpecialEditWatchlist\getNormalForm(), SpecialStatistics\getOtherStats(), SpecialUndelete\getPageLink(), SpecialWhatLinksHere\getPrevNext(), DeletedContributionsPage\getSubTitle(), SpecialStatistics\getUserStats(), UserrightsPage\groupCheckboxes(), SpecialWhatLinksHere\listItem(), SpecialVersion\listToText(), LoginSignupSpecialPage\makeLanguageSelector(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialRecentChanges\optionsPanel(), SpecialEditWatchlist\outputSubtitle(), SpecialNewpages\parseParams(), SpecialBlock\postText(), SpecialUpload\processVerificationError(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialRevisionDelete\showForm(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), EmailConfirmation\showRequestForm(), SpecialUndelete\showRevision(), MovePageForm\showSubpagesList(), SpecialRevisionDelete\tryShowFile(), and SpecialWhatLinksHere\wlhLink().
SpecialPage::getLinkRenderer | ( | ) |
Definition at line 908 of file SpecialPage.php.
References $linkRenderer.
Referenced by SpecialEditWatchlist\buildRemoveLine(), SpecialContributions\contributionsSub(), SpecialUndelete\diffHeader(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialRenameuser\execute(), SpecialCategories\execute(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), SpecialProtectedpages\execute(), SpecialTrackingCategories\execute(), SpecialNewpages\filterLinks(), WantedQueryPage\formatResult(), AncientPagesPage\formatResult(), BrokenRedirectsPage\formatResult(), DoubleRedirectsPage\formatResult(), FewestrevisionsPage\formatResult(), FileDuplicateSearchPage\formatResult(), LinkSearchPage\formatResult(), ListredirectsPage\formatResult(), MIMEsearchPage\formatResult(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), MostlinkedPage\formatResult(), MostlinkedCategoriesPage\formatResult(), MostlinkedTemplatesPage\formatResult(), SpecialPagesWithProp\formatResult(), ShortPagesPage\formatResult(), UncategorizedCategoriesPage\formatResult(), UnusedCategoriesPage\formatResult(), UnusedtemplatesPage\formatResult(), UnwatchedpagesPage\formatResult(), WantedCategoriesPage\formatResult(), PageQueryPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialNewpages\formatRow(), SpecialProtectedtitles\formatRow(), SpecialVersion\getCreditsForExtension(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileLink(), SpecialBotPasswords\getFormFields(), SpecialEmailUser\getFormFields(), SpecialStatistics\getGroupStats(), SpecialUndelete\getPageLink(), SpecialStatistics\getPageStats(), DeletedContributionsPage\getSubTitle(), SpecialUpload\getUploadForm(), SpecialStatistics\getUserStats(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), SpecialWhatLinksHere\listItem(), LoginSignupSpecialPage\load(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialRecentChanges\makeOptionsLink(), SpecialWhatLinksHere\makeSelfLink(), SpecialInterwiki\makeTable(), MostlinkedPage\makeWlhLink(), WantedQueryPage\makeWlhLink(), MostlinkedTemplatesPage\makeWlhLink(), SpecialMergeHistory\merge(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialSpecialpages\outputPageList(), SpecialEditWatchlist\outputSubtitle(), MediaStatisticsPage\outputTableRow(), SpecialBlock\postText(), SpecialLog\show(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialRevisionDelete\showForm(), SpecialWhatLinksHere\showIndirectLinks(), SpecialUndelete\showList(), SpecialInterwiki\showList(), SpecialGadgets\showMainForm(), SpecialPrefixindex\showPrefixChunk(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialChangeCredentials\showSubpageList(), MovePageForm\showSubpagesList(), SpecialEditWatchlist\showTitles(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialUndelete\undelete(), and SpecialWhatLinksHere\wlhLink().
SpecialPage::getLocalName | ( | ) |
Get the localised name of the special page.
Reimplemented in ProxySpecialPage.
Definition at line 236 of file SpecialPage.php.
References and().
|
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 SpecialDisableOATHForUser, AuthManagerSpecialPage, SpecialBotPasswords, SpecialChangeEmail, SpecialCreateAccount, SpecialUnlinkAccounts, and SpecialUserLogin.
Definition at line 354 of file SpecialPage.php.
Referenced by FormSpecialPage\execute(), and execute().
SpecialPage::getName | ( | ) |
Get the name of this Special Page.
Reimplemented in ProxySpecialPage, and SpecialDiff.
Definition at line 152 of file SpecialPage.php.
Referenced by addHelpLink(), checkLoginSecurityLevel(), QueryPage\execute(), RandomPage\execute(), QueryPage\fetchFromCache(), QueryPage\getCachedTimestamp(), SpecialRecentChanges\getExtraOptions(), getFinalGroupName(), FormSpecialPage\getForm(), SpecialEmailUser\getFormFields(), SpecialDisableOATHForUser\getLoginSecurityLevel(), AuthManagerSpecialPage\getLoginSecurityLevel(), SpecialBotPasswords\getLoginSecurityLevel(), SpecialChangeEmail\getLoginSecurityLevel(), FormSpecialPage\getMessagePrefix(), QueryPage\getRecacheDB(), SpecialAllMyUploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMypage\getRedirect(), SpecialMytalk\getRedirect(), SpecialMyuploads\getRedirect(), AuthManagerSpecialPage\getToken(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), LoginSignupSpecialPage\mainLoginForm(), SpecialBlock\maybeAlterFormDefaults(), SpecialBotPasswords\onSubmit(), SpecialLockdb\onSubmit(), SpecialDisableOATHForUser\onSubmit(), SpecialOATHDisable\onSubmit(), SpecialOATHEnable\onSubmit(), SpecialChangeEmail\onSuccess(), outputHeader(), SpecialEditWatchlist\outputSubtitle(), QueryPage\recache(), ChangesListSpecialPage\runMainQueryHook(), SpecialBotPasswords\save(), LoginSignupSpecialPage\showSuccessPage(), and SpecialCreateAccount\successfulAction().
SpecialPage::getOutput | ( | ) |
Get the OutputPage being used for this instance.
Definition at line 725 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\__construct(), SpecialCachedPage\addCachedHTML(), addFeedLinks(), SpecialLog\addHeader(), addHelpLink(), ChangesListSpecialPage\addModules(), SpecialRecentChanges\addModules(), SpecialRevisionDelete\addUsageText(), SpecialPageLanguage\alterForm(), EmailConfirmation\attemptConfirm(), EmailInvalidation\attemptInvalidate(), AuthManagerSpecialPage\beforeExecute(), SpecialUserLogin\beforeExecute(), checkLoginSecurityLevel(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialContributions\contributionsSub(), SpecialRedirect\dispatch(), SpecialNuke\doDelete(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), SpecialReplaceText\doSpecialReplaceText(), MovePageForm\doSubmit(), UserrightsPage\editUserGroupsForm(), SpecialInterwiki\error(), EmailConfirmation\execute(), SpecialBookSources\execute(), SpecialEditWatchlist\execute(), CategoryTreePage\execute(), SpecialInterwiki\execute(), SpecialDisableOATHForUser\execute(), SpecialOATHDisable\execute(), SpecialOATHEnable\execute(), SpecialRenameuser\execute(), QueryPage\execute(), SpecialActiveUsers\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialApiHelp\execute(), SpecialApiSandbox\execute(), SpecialAutoblockList\execute(), SpecialBlankpage\execute(), SpecialBlockList\execute(), SpecialBotPasswords\execute(), SpecialCategories\execute(), SpecialChangeEmail\execute(), SpecialComparePages\execute(), SpecialContributions\execute(), DeletedContributionsPage\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), FileDuplicateSearchPage\execute(), SpecialGoToInterwiki\execute(), SpecialImport\execute(), SpecialJavaScriptTest\execute(), LinkSearchPage\execute(), SpecialListFiles\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialListUsers\execute(), SpecialLog\execute(), SpecialMergeHistory\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPasswordReset\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), RandomPage\execute(), SpecialResetTokens\execute(), SpecialRevisionDelete\execute(), SpecialSearch\execute(), SpecialSpecialpages\execute(), SpecialStatistics\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), UnwatchedpagesPage\execute(), SpecialUserLogout\execute(), UserrightsPage\execute(), SpecialVersion\execute(), SpecialWhatLinksHere\execute(), SpecialRunJobs\execute(), SpecialReplaceText\execute(), ChangesListSpecialPage\execute(), DisabledSpecialPage\execute(), LoginSignupSpecialPage\execute(), RedirectSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialLinkAccounts\execute(), SpecialPageData\execute(), SpecialRecentChanges\execute(), SpecialWatchlist\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), SpecialJavaScriptTest\exportQUnit(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\feed(), SpecialNewpages\form(), SpecialLog\getActionButtons(), SpecialChangeCredentials\getAuthFormDescriptor(), SpecialVersion\getCreditsForExtension(), SpecialContributions\getForm(), SpecialBlock\getFormFields(), DeletedContributionsPage\getSubTitle(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), LoginSignupSpecialPage\mainLoginForm(), SpecialInterwiki\makeTable(), SpecialBlock\maybeAlterFormDefaults(), SpecialMergeHistory\merge(), SpecialCachedPage\onCacheInitialized(), SpecialDiff\onFormSubmit(), SpecialPermanentLink\onFormSubmit(), SpecialInterwiki\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialDisableOATHForUser\onSuccess(), SpecialOATHDisable\onSuccess(), SpecialOATHEnable\onSuccess(), SpecialBlock\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialChangeEmail\onSuccess(), SpecialLockdb\onSuccess(), SpecialPageLanguage\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialResetTokens\onSuccess(), SpecialUnlockdb\onSuccess(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), outputHeader(), MediaStatisticsPage\outputMediaType(), SpecialListGroupRights\outputNamespaceProtectionInfo(), ChangesListSpecialPage\outputNoResults(), SpecialRecentChangesLinked\outputNoResults(), SpecialSpecialpages\outputPageList(), MediaStatisticsPage\outputResults(), SpecialEditWatchlist\outputSubtitle(), SpecialGadgetUsage\outputTableEnd(), MediaStatisticsPage\outputTableEnd(), MediaStatisticsPage\outputTableRow(), MediaStatisticsPage\outputTableStart(), SpecialGadgetUsage\outputTableStart(), ChangesListSpecialPage\outputTimeout(), SpecialReplaceText\pageListForm(), SpecialJavaScriptTest\plainQUnit(), SpecialBlock\postText(), SpecialBlock\preText(), SpecialPageLanguage\preText(), SpecialUpload\processUpload(), SpecialNuke\promptForm(), SpecialUndelete\redirectToRevDel(), SpecialEmailUser\sendEmailForm(), setHeaders(), SpecialUserLogin\setHeaders(), SpecialNewFiles\setTopText(), SpecialRecentChanges\setTopText(), SpecialRecentChangesLinked\setTopText(), SpecialWatchlist\setTopText(), SpecialSearch\setupPage(), SpecialLog\show(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialCiteThisPage\showCitations(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialSearch\showCreateLink(), SpecialTags\showDeleteTagForm(), SpecialUndelete\showDiff(), UserrightsPage\showEditUserGroupsForm(), QueryPage\showEmptyText(), SpecialGadgets\showExportForm(), SpecialUndelete\showFile(), SpecialUndelete\showFileConfirmationForm(), SpecialInterwiki\showForm(), MovePageForm\showForm(), SpecialReplaceText\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialPageData\showForm(), SpecialRevisionDelete\showForm(), SpecialSearch\showGoogleSearch(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialWhatLinksHere\showIndirectLinks(), FileDuplicateSearchPage\showList(), SpecialBookSources\showList(), SpecialUndelete\showList(), SpecialInterwiki\showList(), SpecialAutoblockList\showList(), SpecialBlockList\showList(), MovePageForm\showLogFragment(), SpecialGadgets\showMainForm(), SpecialMergeHistory\showMergeForm(), SpecialPrefixindex\showPrefixChunk(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialChangeCredentials\showSubpageList(), MovePageForm\showSubpages(), MovePageForm\showSubpagesList(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialAutoblockList\showTotal(), SpecialUploadStash\showUpload(), SpecialUpload\showUploadForm(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialPreferences\submitReset(), SpecialChangeCredentials\success(), SpecialEditTags\success(), SpecialRevisionDelete\success(), SpecialCreateAccount\successfulAction(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), SpecialUndelete\undelete(), SpecialUpload\unsaveUploadedFile(), and ChangesListSpecialPage\validateOptions().
SpecialPage::getPageTitle | ( | $subpage = false | ) |
Get a self-referential title object.
string | bool | $subpage |
Reimplemented in ProxySpecialPage.
Definition at line 678 of file SpecialPage.php.
Referenced by SpecialBookSources\buildForm(), SpecialActiveUsers\buildForm(), SpecialCiteThisPage\citationTag(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialUndelete\diffHeader(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialReplaceText\doSpecialReplaceText(), SpecialTags\doTagRow(), SpecialRenameuser\execute(), SpecialApiHelp\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialEmailUser\execute(), FileDuplicateSearchPage\execute(), SpecialImport\execute(), LinkSearchPage\execute(), SpecialSearch\execute(), SpecialWhatLinksHere\execute(), LoginSignupSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialLinkAccounts\execute(), SpecialWatchlist\execute(), CategoryTreePage\executeInputForm(), SpecialNewpages\feed(), SpecialNewpages\filterLinks(), SpecialUndelete\formatFileRow(), SpecialUndelete\formatRevisionRow(), LoginSignupSpecialPage\getAuthForm(), SpecialEditWatchlist\getClearForm(), SpecialVersion\getCreditsForExtension(), SpecialContributions\getForm(), SpecialBotPasswords\getFormFields(), SpecialEditWatchlist\getNormalForm(), MIMEsearchPage\getPageHeader(), SpecialEditWatchlist\getRawForm(), UserrightsPage\getSuccessURL(), getTitle(), SpecialUpload\getUploadForm(), AuthManagerSpecialPage\handleReturnBeforeExecute(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), LoginSignupSpecialPage\load(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialRecentChanges\makeOptionsLink(), SpecialInterwiki\makeTable(), SpecialPrefixindex\namespacePrefixForm(), numLink(), SpecialDiff\onFormSubmit(), SpecialPermanentLink\onFormSubmit(), SpecialInterwiki\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialBotPasswords\onSuccess(), SpecialAllPages\outputHTMLForm(), SpecialReplaceText\pageListForm(), AuthManagerSpecialPage\performAuthenticationStep(), SpecialJavaScriptTest\plainQUnit(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialNuke\promptForm(), SpecialWatchlist\setTopText(), SpecialSearch\setupPage(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), SpecialInterwiki\showForm(), MovePageForm\showForm(), SpecialReplaceText\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialUndelete\showList(), SpecialInterwiki\showList(), SpecialGadgets\showMainForm(), SpecialMergeHistory\showMergeForm(), SpecialPrefixindex\showPrefixChunk(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialTags\showTagList(), SpecialUploadStash\showUploads(), SpecialPreferences\submitReset(), SpecialCreateAccount\successfulAction(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), ChangesListSpecialPage\validateOptions(), SpecialWhatLinksHere\whatlinkshereForm(), and SpecialWhatLinksHere\wlhLink().
SpecialPage::getRequest | ( | ) |
Get the WebRequest being used for this instance.
Reimplemented in AuthManagerSpecialPage.
Definition at line 715 of file SpecialPage.php.
References getContext().
Referenced by SpecialBlock\alterForm(), SpecialChangeEmail\alterForm(), SpecialPasswordReset\alterForm(), SpecialRevisionDelete\buildCheckBoxes(), SpecialActiveUsers\buildForm(), checkLoginSecurityLevel(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialReplaceText\createJobsForTextReplacements(), SpecialRedirect\dispatchFile(), SpecialImport\doImport(), SpecialReplaceText\doSpecialReplaceText(), SpecialBookSources\execute(), SpecialEditWatchlist\execute(), CategoryTreePage\execute(), SpecialCiteThisPage\execute(), SpecialInterwiki\execute(), SpecialNuke\execute(), SpecialRenameuser\execute(), SpecialActiveUsers\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialApiHelp\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialContributions\execute(), DeletedContributionsPage\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), FileDuplicateSearchPage\execute(), SpecialImport\execute(), LinkSearchPage\execute(), SpecialListFiles\execute(), SpecialLog\execute(), MIMEsearchPage\execute(), MovePageForm\execute(), SpecialNewFiles\execute(), SpecialPagesWithProp\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), RandomPage\execute(), SpecialRevisionDelete\execute(), SpecialSearch\execute(), SpecialTags\execute(), SpecialUnblock\execute(), SpecialUserLogout\execute(), UserrightsPage\execute(), SpecialWhatLinksHere\execute(), WithoutInterwikiPage\execute(), SpecialRunJobs\execute(), ChangesListSpecialPage\execute(), SpecialExpandTemplates\execute(), SpecialPageData\execute(), SpecialRecentChanges\execute(), SpecialWatchlist\execute(), CategoryTreePage\executeInputForm(), SpecialRevisionDelete\extractBitParams(), ChangesListSpecialPage\fetchOptionsFromRequest(), SpecialWatchlist\fetchOptionsFromRequest(), ChangesListSpecialPage\getDefaultOptions(), FormSpecialPage\getForm(), SpecialOATHDisable\getFormFields(), SpecialOATHEnable\getFormFields(), SpecialPasswordReset\getFormFields(), QueryPage\getLimitOffset(), SpecialNuke\getNewPages(), SpecialFilepath\getRedirect(), RedirectSpecialPage\getRedirectQuery(), SpecialReplaceText\getSelectedNamespaces(), SpecialEditWatchlist\getWatchlist(), SpecialVersion\IPInfo(), ChangesListSpecialPage\isStructuredFilterUiEnabled(), SpecialSearch\load(), SpecialUndelete\loadRequest(), SpecialUpload\loadRequest(), SpecialMergeHistory\loadRequestParams(), ChangesListSpecialPage\makeLegend(), SpecialBlock\maybeAlterFormDefaults(), SpecialInterwiki\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialDisableOATHForUser\onSubmit(), SpecialOATHDisable\onSubmit(), SpecialOATHEnable\onSubmit(), SpecialChangeEmail\onSuccess(), SpecialUpload\processUpload(), SpecialUndelete\redirectToRevDel(), SpecialSearch\saveNamespaces(), UserrightsPage\saveUserGroups(), SpecialBlock\setParameter(), SpecialChangeContentModel\setParameter(), SpecialRecentChanges\setTopText(), SpecialNewpages\setup(), SpecialUndelete\showFile(), SpecialInterwiki\showForm(), SpecialRevisionDelete\showForm(), SpecialExpandTemplates\showHtmlPreview(), SpecialUndelete\showSearchForm(), SpecialCachedPage\startCache(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialPreferences\submitReset(), SpecialRevisionDelete\tryShowFile(), and useTransactionalTimeLimit().
SpecialPage::getRestriction | ( | ) |
Get the permission that a user must have to execute this page.
Reimplemented in ProxySpecialPage.
Definition at line 160 of file SpecialPage.php.
|
protected |
Return the robot policy.
Derived classes that override this can change the robot policy set by setHeaders() from the default 'noindex,nofollow'.
Reimplemented in ProxySpecialPage.
Definition at line 785 of file SpecialPage.php.
Referenced by setHeaders().
|
static |
Get a localised Title object for a page name with a possibly unvalidated subpage.
string | $name | |
string | bool | $subpage | Subpage string, or false to not use a subpage |
Definition at line 111 of file SpecialPage.php.
References NS_SPECIAL.
Referenced by SpecialFilepath\getRedirect().
SpecialPage::getSkin | ( | ) |
Shortcut to get the skin being used for this instance.
Definition at line 745 of file SpecialPage.php.
References getContext().
Referenced by QueryPage\execute(), SpecialContributions\execute(), DeletedContributionsPage\execute(), SpecialListFiles\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), UserrightsPage\execute(), SpecialWhatLinksHere\execute(), SpecialJavaScriptTest\exportQUnit(), SpecialBlock\setParameter(), SpecialRecentChangesLinked\setTopText(), SpecialLog\show(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), and MovePageForm\showForm().
|
protected |
Return an array of subpages that this special page will accept for prefix searches.
If this method requires a query you might instead want to implement prefixSearchSubpages() directly so you can support $limit and $offset. This method is better for static-ish lists of things.
Reimplemented in SpecialInterwiki, SpecialEditWatchlist, SpecialListUsers, SpecialLog, SpecialRedirect, SpecialTags, and SpecialWatchlist.
Definition at line 484 of file SpecialPage.php.
Referenced by prefixSearchSubpages().
SpecialPage::getTitle | ( | $subpage = false | ) |
Get a self-referential title object.
string | bool | $subpage |
Definition at line 666 of file SpecialPage.php.
References getPageTitle(), and wfDeprecated().
Referenced by SpecialTags\doTagRow(), SpecialUpload\getExistsWarning(), SpecialBlock\postText(), and SpecialRevisionDelete\showForm().
|
static |
Get a localised Title object for a specified special page name If you don't need a full Title object, consider using TitleValue through getTitleValueFor() below.
string | $name | |
string | bool | $subpage | Subpage string, or false to not use a subpage |
string | $fragment | The link fragment (after the "#") |
MWException |
Definition at line 82 of file SpecialPage.php.
Referenced by EmailConfirmation\attemptConfirm(), SpecialUserLogin\beforeExecute(), SpecialEditWatchlist\buildRemoveLine(), SpecialEditWatchlist\buildTools(), MediaWiki\Permissions\PermissionManager\checkReadPermissions(), SpecialTags\doTagRow(), SpecialEditWatchlist\execute(), SpecialBlockList\execute(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), SpecialResetTokens\execute(), SpecialUserLogout\execute(), SpecialWatchlist\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), ListDuplicatedFilesPage\formatResult(), UnusedtemplatesPage\formatResult(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialStatistics\getGroupStats(), SpecialStatistics\getPageStats(), ChangesListSpecialPage\getRcFiltersConfigVars(), SpecialRedirectToSpecial\getRedirect(), SpecialAllMyUploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), DeletedContributionsPage\getSubTitle(), SpecialContributions\getUserLinks(), SpecialStatistics\getUserStats(), AuthManagerSpecialPage\handleReauthBeforeExecute(), MostlinkedPage\makeWlhLink(), WantedQueryPage\makeWlhLink(), MostlinkedTemplatesPage\makeWlhLink(), SpecialListGroupRights\outputNamespaceProtectionInfo(), MediaStatisticsPage\outputTableRow(), SpecialReplaceText\pageListForm(), SpecialBlock\postText(), SpecialUndelete\redirectToRevDel(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialGadgets\showExportForm(), SpecialReplaceText\showForm(), SpecialInterwiki\showList(), SpecialUpload\showUploadWarning(), and SpecialUpload\showViewDeletedLinks().
|
static |
Get a localised TitleValue object for a specified special page name.
string | $name | |
string | bool | $subpage | Subpage string, or false to not use a subpage |
string | $fragment | The link fragment (after the "#") |
Definition at line 97 of file SpecialPage.php.
References NS_SPECIAL.
SpecialPage::getUser | ( | ) |
Shortcut to get the User executing this instance.
Definition at line 735 of file SpecialPage.php.
References getContext().
Referenced by UserrightsPage\addLogEntry(), SpecialRevisionDelete\addUsageText(), EmailConfirmation\attemptConfirm(), EmailInvalidation\attemptInvalidate(), SpecialNewFiles\buildForm(), SpecialInterwiki\canModify(), UserrightsPage\changeableGroups(), SpecialBotPasswords\checkExecutePermissions(), SpecialChangeEmail\checkExecutePermissions(), checkPermissions(), SpecialCreateAccount\checkPermissions(), SpecialEditWatchlist\cleanupWatchlist(), SpecialEditWatchlist\clearUserWatchedItems(), ChangesListSpecialPage\considerActionsForDefaultSavedQuery(), SpecialWatchlist\countItems(), SpecialReplaceText\createJobsForTextReplacements(), SpecialWatchlist\cutoffselector(), SpecialUndelete\diffHeader(), SpecialNuke\doDelete(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChanges\doMainQuery(), SpecialWatchlist\doMainQuery(), SpecialRecentChangesLinked\doMainQuery(), UserrightsPage\doSaveUserGroups(), SpecialReplaceText\doSpecialReplaceText(), MovePageForm\doSubmit(), EmailConfirmation\execute(), SpecialNuke\execute(), SpecialRenameuser\execute(), FormSpecialPage\execute(), QueryPage\execute(), SpecialApiSandbox\execute(), SpecialContributions\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialImport\execute(), SpecialLog\execute(), MovePageForm\execute(), SpecialPreferences\execute(), SpecialRevisionDelete\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), SpecialUserLogout\execute(), UserrightsPage\execute(), SpecialReplaceText\execute(), ChangesListSpecialPage\execute(), LoginSignupSpecialPage\execute(), SpecialUnlinkAccounts\execute(), SpecialUploadStash\execute(), SpecialWatchlist\execute(), SpecialReplaceText\extractContext(), UserrightsPage\fetchUser(), SpecialNewpages\filterLinks(), SpecialUndelete\formatFileRow(), BrokenRedirectsPage\formatResult(), DoubleRedirectsPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialLog\getActionButtons(), SpecialEmailUser\getBlockedEmailError(), SpecialAutoblockList\getBlockListPager(), SpecialBlockList\getBlockListPager(), ChangesListSpecialPage\getDefaultDays(), ChangesListSpecialPage\getDefaultLimit(), SpecialRecentChanges\getDefaultLimit(), SpecialEmailUser\getDescription(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileLink(), SpecialContributions\getForm(), SpecialBlock\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialEmailUser\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialResetTokens\getFormFields(), SpecialSpecialpages\getPageGroups(), SpecialUndelete\getPageLink(), SpecialCiteThisPage\getParserOptions(), SpecialAllMyUploads\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMypage\getRedirect(), SpecialMytalk\getRedirect(), SpecialMyuploads\getRedirect(), SpecialOATH\getTargetPage(), SpecialUpload\getWatchCheck(), SpecialEditWatchlist\getWatchlist(), SpecialEditWatchlist\getWatchlistInfo(), UserrightsPage\groupCheckboxes(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialUndelete\isAllowed(), SpecialPasswordReset\isListed(), ChangesListSpecialPage\isStructuredFilterUiEnabled(), SpecialSearch\load(), AuthManagerSpecialPage\loadAuth(), SpecialUndelete\loadRequest(), SpecialUpload\loadRequest(), SpecialMergeHistory\loadRequestParams(), LoginSignupSpecialPage\mainLoginForm(), SpecialExpandTemplates\makeOutput(), SpecialBlock\maybeAlterFormDefaults(), SpecialMergeHistory\merge(), SpecialBotPasswords\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialChangeEmail\onSubmit(), SpecialLockdb\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialPasswordReset\onSubmit(), SpecialDisableOATHForUser\onSubmit(), SpecialOATHDisable\onSubmit(), SpecialOATHEnable\onSubmit(), SpecialResetTokens\onSubmit(), SpecialBotPasswords\onSuccess(), SpecialChangeEmail\onSuccess(), SpecialRecentChanges\optionsPanel(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialWatchlist\outputFeedLinks(), SpecialEditWatchlist\outputSubtitle(), SpecialNewpages\patrollable(), AuthManagerSpecialPage\performAuthenticationStep(), LoginSignupSpecialPage\postProcessFormDescriptor(), SpecialBlock\postText(), SpecialUpload\processUpload(), SpecialNuke\promptForm(), ChangesListSpecialPage\registerFilters(), SpecialRecentChanges\registerFilters(), SpecialWatchlist\registerFilters(), requireLogin(), SpecialEditWatchlist\runWatchUnwatchCompleteHook(), SpecialBotPasswords\save(), SpecialSearch\saveNamespaces(), SpecialUserLogin\setHeaders(), SpecialWatchlist\setTopText(), SpecialNewpages\setup(), SpecialTags\showActivateDeactivateForm(), SpecialRevisionDelete\showConvenienceLinks(), LoginSignupSpecialPage\showCreateAccountLink(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialGadgets\showMainForm(), SpecialUpload\showRecoverableUploadError(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), SpecialUndelete\showRevision(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialEditTags\submit(), SpecialRevisionDelete\submit(), SpecialEditWatchlist\submitRaw(), SpecialPreferences\submitReset(), EmailConfirmation\submitSend(), SpecialChangeCredentials\success(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), SpecialRevisionDelete\tryShowFile(), SpecialUndelete\undelete(), SpecialEditWatchlist\unwatchTitles(), UserrightsPage\userCanChangeRights(), SpecialExport\userCanOverrideExportDepth(), SpecialEditWatchlist\watchTitles(), and SpecialWhatLinksHere\wlhLink().
SpecialPage::including | ( | $x = null | ) |
Whether the special page is being evaluated via transclusion.
bool | null | $x |
Reimplemented in ProxySpecialPage.
Definition at line 228 of file SpecialPage.php.
References wfSetVar().
SpecialPage::isCached | ( | ) |
Is this page cached? Expensive pages are cached or disabled in miser mode.
Used by QueryPage and subclasses, moved here so that Special:SpecialPages can safely call it for all special pages.
Reimplemented in QueryPage, and FileDuplicateSearchPage.
Definition at line 266 of file SpecialPage.php.
SpecialPage::isExpensive | ( | ) |
Is this page expensive (for some definition of expensive)? Expensive pages are disabled or cached in miser mode.
Originally used (and still overridden) by QueryPage and subclasses, moved here so that Special:SpecialPages can safely call it for all special pages.
Reimplemented in SpecialGadgetUsage, QueryPage, WantedQueryPage, AncientPagesPage, BrokenRedirectsPage, DeadendPagesPage, DoubleRedirectsPage, FewestrevisionsPage, ListDuplicatedFilesPage, ListredirectsPage, LonelyPagesPage, MediaStatisticsPage, MIMEsearchPage, MostcategoriesPage, MostimagesPage, MostinterwikisPage, MostlinkedPage, MostlinkedTemplatesPage, UncategorizedImagesPage, UncategorizedPagesPage, UnusedCategoriesPage, UnusedimagesPage, UnusedtemplatesPage, UnwatchedpagesPage, and WithoutInterwikiPage.
Definition at line 253 of file SpecialPage.php.
SpecialPage::isIncludable | ( | ) |
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
Reimplemented in ProxySpecialPage, IncludableSpecialPage, SpecialApiHelp, SpecialRecentChanges, and WantedPagesPage.
Definition at line 198 of file SpecialPage.php.
SpecialPage::isListed | ( | ) |
Whether this special page is listed in Special:SpecialPages.
Reimplemented in ProxySpecialPage, UnlistedSpecialPage, SpecialBotPasswords, SpecialChangeCredentials, SpecialChangeEmail, SpecialDiff, SpecialLinkAccounts, SpecialPageData, SpecialPasswordReset, SpecialPermanentLink, SpecialResetTokens, and SpecialUnlinkAccounts.
Definition at line 170 of file SpecialPage.php.
SpecialPage::isRestricted | ( | ) |
Can be overridden by subclasses with more complicated permissions schemes.
Reimplemented in ProxySpecialPage, and SpecialCreateAccount.
Definition at line 277 of file SpecialPage.php.
References User\groupHasPermission().
SpecialPage::listed | ( | $x = null | ) |
Get or set whether this special page is listed in Special:SpecialPages.
bool | null | $x |
Reimplemented in ProxySpecialPage.
Definition at line 190 of file SpecialPage.php.
References wfSetVar().
SpecialPage::maxIncludeCacheTime | ( | ) |
How long to cache page when it is being included.
Definition at line 212 of file SpecialPage.php.
References getCacheTTL(), and getConfig().
SpecialPage::msg | ( | $key | ) |
Wrapper around wfMessage that sets the current context.
Implements MessageLocalizer.
Definition at line 796 of file SpecialPage.php.
References and(), getContext(), and including.
Referenced by addHelpLink(), SpecialDisableOATHForUser\alterForm(), SpecialOATHDisable\alterForm(), SpecialOATHEnable\alterForm(), SpecialBotPasswords\alterForm(), SpecialChangeEmail\alterForm(), SpecialLockdb\alterForm(), SpecialPasswordReset\alterForm(), SpecialUnlockdb\alterForm(), SpecialEditTags\buildCheckBoxes(), SpecialRevisionDelete\buildCheckBoxes(), SpecialNewFiles\buildForm(), buildPrevNextNavigation(), SpecialEditWatchlist\buildRemoveLine(), SpecialComparePages\checkExistingRevision(), SpecialComparePages\checkExistingTitle(), SpecialEditWatchlist\clearUserWatchedItems(), SpecialReplaceText\createJobsForTextReplacements(), SpecialWatchlist\cutoffselector(), SpecialUndelete\diffHeader(), SpecialNuke\doDelete(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), SpecialReplaceText\doSpecialReplaceText(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialEditWatchlist\execute(), CategoryTreePage\execute(), SpecialNuke\execute(), SpecialRenameuser\execute(), QueryPage\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialApiHelp\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialContributions\execute(), DeletedContributionsPage\execute(), SpecialExport\execute(), FileDuplicateSearchPage\execute(), SpecialJavaScriptTest\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialListUsers\execute(), SpecialMergeHistory\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialStatistics\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), SpecialUserLogout\execute(), UserrightsPage\execute(), SpecialVersion\execute(), SpecialWhatLinksHere\execute(), DisabledSpecialPage\execute(), SpecialChangeCredentials\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\feed(), SpecialNewpages\feedItemDesc(), SpecialNewpages\filterLinks(), SpecialNewpages\form(), SpecialUndelete\formatFileRow(), SpecialListGroupRights\formatPermissions(), SpecialPasswordPolicies\formatPolicies(), WantedQueryPage\formatResult(), BrokenRedirectsPage\formatResult(), DoubleRedirectsPage\formatResult(), FewestrevisionsPage\formatResult(), LinkSearchPage\formatResult(), ListDuplicatedFilesPage\formatResult(), MIMEsearchPage\formatResult(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), MostlinkedPage\formatResult(), MostlinkedCategoriesPage\formatResult(), SpecialPagesWithProp\formatResult(), ShortPagesPage\formatResult(), UnwatchedpagesPage\formatResult(), WantedCategoriesPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialNewpages\formatRow(), SpecialProtectedtitles\formatRow(), SpecialStatistics\formatRow(), SpecialStatistics\formatRowHeader(), SpecialLog\getActionButtons(), SpecialReplaceText\getAnyWarningMessageBeforeReplace(), SpecialChangeCredentials\getAuthForm(), MostimagesPage\getCellHtml(), SpecialEditWatchlist\getClearForm(), SpecialCiteThisPage\getContentText(), SpecialVersion\getCreditsForExtension(), SpecialInterwiki\getDescription(), getDescription(), SpecialCreateAccount\getDescription(), SpecialDiff\getDescription(), SpecialEditTags\getDescription(), SpecialEmailUser\getDescription(), SpecialUserLogin\getDescription(), SpecialUpload\getDupeWarning(), SpecialStatistics\getEditStats(), SpecialVersion\getEntryPointInfo(), UncategorizedCategoriesPage\getExceptionList(), SpecialVersion\getExtensionCredits(), SpecialVersion\getExternalLibraries(), SpecialRecentChangesLinked\getExtraOptions(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileComment(), SpecialUndelete\getFileUser(), SpecialWhatLinksHere\getFilterPanel(), getFinalGroupName(), FormSpecialPage\getForm(), SpecialContributions\getForm(), SpecialOATHEnable\getFormFields(), SpecialBlock\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialChangeContentModel\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialEmailUser\getFormFields(), SpecialPageLanguage\getFormFields(), SpecialRedirect\getFormFields(), SpecialResetTokens\getFormFields(), SpecialStatistics\getGroupStats(), SpecialActiveUsers\getIntroText(), SpecialProtectedpages\getLevelMenu(), SpecialProtectedtitles\getLevelMenu(), SpecialImport\getMappingFormPart(), SpecialEditWatchlist\getNormalForm(), RandomPage\getNsList(), SpecialStatistics\getOtherStats(), BrokenRedirectsPage\getPageHeader(), DeadendPagesPage\getPageHeader(), DoubleRedirectsPage\getPageHeader(), LonelyPagesPage\getPageHeader(), UnusedCategoriesPage\getPageHeader(), UnusedimagesPage\getPageHeader(), UnusedtemplatesPage\getPageHeader(), WantedFilesPage\getPageHeader(), LoginSignupSpecialPage\getPageHtml(), SpecialStatistics\getPageStats(), SpecialVersion\getParserFunctionHooks(), SpecialVersion\getParserTags(), SpecialWhatLinksHere\getPrevNext(), SpecialEditWatchlist\getRawForm(), SpecialVersion\getSkinCredits(), SpecialJavaScriptTest\getSummaryHtml(), MediaStatisticsPage\getTableHeaderRow(), SpecialProtectedpages\getTypeMenu(), SpecialUpload\getUploadForm(), SpecialStatistics\getUserStats(), SpecialVersion\getWgHooks(), UserrightsPage\groupCheckboxes(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), SpecialWhatLinksHere\listItem(), LoginSignupSpecialPage\load(), SpecialUpload\loadRequest(), LoginSignupSpecialPage\mainLoginForm(), SpecialExpandTemplates\makeForm(), UserrightsPage\makeGroupNameList(), LoginSignupSpecialPage\makeLanguageSelector(), SpecialExpandTemplates\makeOutput(), SpecialInterwiki\makeTable(), WantedQueryPage\makeWlhLink(), MostlinkedTemplatesPage\makeWlhLink(), SpecialMergeHistory\merge(), SpecialRecentChanges\namespaceFilterForm(), SpecialReplaceText\namespaceTables(), numLink(), SpecialChangeContentModel\onSubmit(), SpecialLockdb\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialBlock\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialLockdb\onSuccess(), SpecialUnlockdb\onSuccess(), SpecialVersion\openExtType(), SpecialRecentChanges\optionsPanel(), SpecialUploadStash\outputContents(), outputHeader(), SpecialUploadStash\outputLocalFile(), SpecialUploadStash\outputLocallyScaledThumb(), MediaStatisticsPage\outputMediaType(), SpecialListGroupRights\outputNamespaceProtectionInfo(), ChangesListSpecialPage\outputNoResults(), SpecialRecentChangesLinked\outputNoResults(), SpecialSpecialpages\outputPageList(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialGadgetUsage\outputResults(), MediaStatisticsPage\outputResults(), SpecialEditWatchlist\outputSubtitle(), MediaStatisticsPage\outputTableEnd(), MediaStatisticsPage\outputTableRow(), SpecialGadgetUsage\outputTableStart(), ChangesListSpecialPage\outputTimeout(), SpecialReplaceText\pageListForm(), SpecialUploadStash\parseKey(), SpecialBlock\postText(), SpecialBlock\preText(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), SpecialNuke\promptForm(), SpecialEmailUser\sendEmailForm(), SpecialUserLogin\setHeaders(), SpecialNewFiles\setTopText(), SpecialRecentChanges\setTopText(), SpecialWatchlist\setTopText(), SpecialSearch\setupPage(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialGadgets\showExportForm(), SpecialInterwiki\showForm(), MovePageForm\showForm(), SpecialReplaceText\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialSearch\showGoogleSearch(), SpecialWatchlist\showHideCheck(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialWhatLinksHere\showIndirectLinks(), SpecialBookSources\showList(), SpecialUndelete\showList(), SpecialInterwiki\showList(), SpecialAutoblockList\showList(), SpecialBlockList\showList(), SpecialGadgets\showMainForm(), SpecialMergeHistory\showMergeForm(), SpecialProtectedtitles\showOptions(), SpecialProtectedpages\showOptions(), SpecialPrefixindex\showPrefixChunk(), SpecialUpload\showRecoverableUploadError(), EmailConfirmation\showRequestForm(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialTags\showTagList(), SpecialEditWatchlist\showTitles(), SpecialAutoblockList\showTotal(), SpecialUpload\showUploadError(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), SpecialRevisionDelete\submit(), SpecialEditWatchlist\submitNormal(), SpecialEditWatchlist\submitRaw(), EmailConfirmation\submitSend(), SpecialEditTags\success(), SpecialLinkAccounts\success(), SpecialRevisionDelete\success(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), UserrightsPage\switchForm(), SpecialUndelete\undelete(), SpecialUpload\unsaveUploadedFile(), SpecialEmailUser\userForm(), SpecialChangeContentModel\validateTitle(), and SpecialWhatLinksHere\whatlinkshereForm().
|
private |
Helper function for buildPrevNextNavigation() that generates links.
int | $offset | |
int | $limit | |
array | $query | Extra query parameters |
string | $link | Text to use for the link; will be escaped |
string | $tooltipMsg | Name of the message to use as tooltip |
string | $class | Value of the "class" attribute of the link |
string | bool | $subpage | Optional param for specifying subpage |
Definition at line 980 of file SpecialPage.php.
References $link, $query, getPageTitle(), and msg().
Referenced by buildPrevNextNavigation().
SpecialPage::outputHeader | ( | $summaryMessageKey = '' | ) |
Outputs a summary message on top of special pages Per default the message key is the canonical name of the special page May be overridden, i.e.
by extensions to stick with the naming conventions for message keys: 'extensionname-xxx'
string | $summaryMessageKey | Message key of the summary |
Definition at line 633 of file SpecialPage.php.
References and(), getName(), getOutput(), including, and msg().
Referenced by SpecialRedirect\alterForm(), SpecialBookSources\execute(), SpecialEditWatchlist\execute(), SpecialInterwiki\execute(), SpecialNuke\execute(), QueryPage\execute(), SpecialActiveUsers\execute(), SpecialAllPages\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialComparePages\execute(), SpecialContributions\execute(), DeletedContributionsPage\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), FileDuplicateSearchPage\execute(), SpecialImport\execute(), LinkSearchPage\execute(), SpecialListFiles\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialListUsers\execute(), SpecialLog\execute(), SpecialMergeHistory\execute(), MIMEsearchPage\execute(), MovePageForm\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialRevisionDelete\execute(), SpecialSpecialpages\execute(), SpecialTags\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), SpecialUserLogout\execute(), UserrightsPage\execute(), SpecialVersion\execute(), SpecialWhatLinksHere\execute(), ChangesListSpecialPage\execute(), DisabledSpecialPage\execute(), execute(), SpecialChangeCredentials\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialSearch\setupPage(), SpecialDiff\showNoRedirectPage(), SpecialPermanentLink\showNoRedirectPage(), and SpecialUploadStash\showUploads().
|
staticprotected |
Helper function for implementations of prefixSearchSubpages() that filter the values in memory (as opposed to making a query).
string | $search | |
int | $limit | |
array | $subpages | |
int | $offset |
Definition at line 522 of file SpecialPage.php.
References and().
Referenced by SpecialPagesWithProp\prefixSearchSubpages().
|
protected |
Perform a regular substring search for prefixSearchSubpages.
string | $search | Prefix to search for |
int | $limit | Maximum number of results to return (usually 10) |
int | $offset | Number of results to skip (usually 0) |
Definition at line 495 of file SpecialPage.php.
References $result, $t, and and().
Referenced by SpecialAllPages\prefixSearchSubpages(), SpecialChangeContentModel\prefixSearchSubpages(), MovePageForm\prefixSearchSubpages(), SpecialPageLanguage\prefixSearchSubpages(), SpecialPrefixindex\prefixSearchSubpages(), SpecialRecentChangesLinked\prefixSearchSubpages(), SpecialUndelete\prefixSearchSubpages(), and SpecialWhatLinksHere\prefixSearchSubpages().
SpecialPage::prefixSearchSubpages | ( | $search, | |
$limit, | |||
$offset ) |
Return an array of subpages beginning with $search that this special page will accept.
For example, if a page supports subpages "foo", "bar" and "baz" (as in Special:PageName/foo, etc.):
prefixSearchSubpages( "ba" )
should return array( "bar", "baz" )
prefixSearchSubpages( "f" )
should return array( "foo" )
prefixSearchSubpages( "z" )
should return array()
prefixSearchSubpages( "" )
should return array( foo", "bar", "baz" )
string | $search | Prefix to search for |
int | $limit | Maximum number of results to return (usually 10) |
int | $offset | Number of results to skip (usually 0) |
Reimplemented in CategoryTreePage, SpecialCiteThisPage, SpecialNuke, SpecialRenameuser, SpecialAllPages, SpecialBlock, SpecialChangeContentModel, SpecialContributions, DeletedContributionsPage, SpecialEmailUser, FileDuplicateSearchPage, SpecialListFiles, MovePageForm, SpecialPageLanguage, SpecialPagesWithProp, SpecialPrefixindex, SpecialRecentChangesLinked, SpecialUnblock, SpecialUndelete, UserrightsPage, and SpecialWhatLinksHere.
Definition at line 467 of file SpecialPage.php.
References getSubpagesForPrefixSearch().
SpecialPage::requireLogin | ( | $reasonMsg = 'exception-nologin-text', | |
$titleMsg = 'exception-nologin' ) |
If the user is not logged in, throws UserNotLoggedIn error.
The user will be redirected to Special:Userlogin with the given message as an error on the form.
string | $reasonMsg | [optional] Message key to be displayed on login page |
string | $titleMsg | [optional] Passed on to UserNotLoggedIn constructor |
UserNotLoggedIn |
Definition at line 339 of file SpecialPage.php.
References getUser().
Referenced by SpecialDisableOATHForUser\checkExecutePermissions(), SpecialOATHDisable\checkExecutePermissions(), SpecialOATHEnable\checkExecutePermissions(), SpecialChangeEmail\checkExecutePermissions(), EmailConfirmation\execute(), SpecialEditWatchlist\execute(), SpecialBotPasswords\execute(), SpecialPreferences\execute(), SpecialResetTokens\execute(), and SpecialWatchlist\execute().
|
final |
Entry point.
string | null | $subPage |
Definition at line 552 of file SpecialPage.php.
References afterExecute(), beforeExecute(), and execute().
SpecialPage::setContext | ( | $context | ) |
Sets the context this SpecialPage is executed in.
IContextSource | $context |
Reimplemented in ProxySpecialPage.
Definition at line 688 of file SpecialPage.php.
References $context.
Referenced by SkinTemplate\buildNavUrls(), SpecialEmailUser\execute(), ApiQueryUsers\execute(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), and AbstractChangesListSpecialPageTestCase\testValidateOptions().
SpecialPage::setHeaders | ( | ) |
Sets headers - this should be called from the execute() method of all derived classes!
Reimplemented in SpecialUserLogin.
Definition at line 531 of file SpecialPage.php.
References $out, getConfig(), getDescription(), getOutput(), and getRobotPolicy().
Referenced by EmailConfirmation\execute(), EmailInvalidation\execute(), SpecialBookSources\execute(), SpecialEditWatchlist\execute(), CategoryTreePage\execute(), SpecialCiteThisPage\execute(), SpecialCaptcha\execute(), SpecialInterwiki\execute(), SpecialNuke\execute(), SpecialRenameuser\execute(), FormSpecialPage\execute(), QueryPage\execute(), SpecialActiveUsers\execute(), SpecialAllMessages\execute(), SpecialAllPages\execute(), SpecialApiSandbox\execute(), SpecialAutoblockList\execute(), SpecialBlankpage\execute(), SpecialBlockList\execute(), SpecialCategories\execute(), SpecialComparePages\execute(), SpecialContributions\execute(), DeletedContributionsPage\execute(), SpecialEditTags\execute(), SpecialEmailUser\execute(), SpecialExport\execute(), FileDuplicateSearchPage\execute(), SpecialGoToInterwiki\execute(), SpecialImport\execute(), SpecialJavaScriptTest\execute(), LinkSearchPage\execute(), SpecialListFiles\execute(), SpecialListGrants\execute(), SpecialListGroupRights\execute(), SpecialListUsers\execute(), SpecialLog\execute(), SpecialMergeHistory\execute(), MIMEsearchPage\execute(), MovePageForm\execute(), SpecialNewFiles\execute(), SpecialNewpages\execute(), SpecialPagesWithProp\execute(), SpecialPasswordPolicies\execute(), SpecialPreferences\execute(), SpecialPrefixindex\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), RandomPage\execute(), SpecialRevisionDelete\execute(), SpecialSpecialpages\execute(), SpecialStatistics\execute(), SpecialTags\execute(), SpecialTrackingCategories\execute(), SpecialUnblock\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), SpecialUserLogout\execute(), UserrightsPage\execute(), SpecialVersion\execute(), SpecialWhatLinksHere\execute(), SpecialReplaceText\execute(), ChangesListSpecialPage\execute(), DisabledSpecialPage\execute(), LoginSignupSpecialPage\execute(), execute(), SpecialChangeCredentials\execute(), SpecialExpandTemplates\execute(), SpecialLinkAccounts\execute(), SpecialUnlinkAccounts\execute(), SpecialSearch\setupPage(), SpecialGadgets\showExportForm(), SpecialGadgets\showMainForm(), SpecialDiff\showNoRedirectPage(), SpecialPermanentLink\showNoRedirectPage(), and SpecialUploadStash\showUploads().
SpecialPage::setLinkRenderer | ( | LinkRenderer | $linkRenderer | ) |
\\MediaWiki\\Linker\\LinkRenderer | $linkRenderer |
Definition at line 920 of file SpecialPage.php.
References $linkRenderer.
SpecialPage::setListed | ( | $listed | ) |
Set whether this page is listed in Special:Specialpages, at run-time.
bool | $listed |
Reimplemented in ProxySpecialPage.
Definition at line 180 of file SpecialPage.php.
References wfSetVar().
|
protected |
Record preserved POST data after a reauthentication.
This is called from checkLoginSecurityLevel() when returning from the redirect for reauthentication, if the redirect had been served in response to a POST request.
The base SpecialPage implementation does nothing. If your subclass uses getLoginSecurityLevel() or checkLoginSecurityLevel(), it should probably implement this to do something with the data.
array | $data |
Reimplemented in FormSpecialPage.
Definition at line 372 of file SpecialPage.php.
Referenced by checkLoginSecurityLevel().
SpecialPage::userCanExecute | ( | User | $user | ) |
Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction).
Can be overridden by sub- classes with more complicated permissions schemes.
User | $user | The user to check |
Reimplemented in ProxySpecialPage, SpecialCreateAccount, SpecialPasswordReset, SpecialUndelete, and SpecialUpload.
Definition at line 290 of file SpecialPage.php.
Referenced by checkPermissions(), and QueryPage\execute().
|
protected |
Call wfTransactionalTimeLimit() if this request was POSTed.
Definition at line 898 of file SpecialPage.php.
References getRequest(), and wfTransactionalTimeLimit().
Referenced by SpecialRenameuser\execute(), SpecialImport\execute(), SpecialMergeHistory\execute(), MovePageForm\execute(), SpecialRevisionDelete\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), and SpecialUploadStash\execute().
|
private |
Definition at line 66 of file SpecialPage.php.
Referenced by SpecialEditWatchlist\buildRemoveLine(), SpecialEditWatchlist\buildTools(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialRenameuser\execute(), SpecialListGroupRights\execute(), SpecialPasswordPolicies\execute(), SpecialTrackingCategories\execute(), SpecialNewpages\filterLinks(), WantedQueryPage\formatResult(), AncientPagesPage\formatResult(), BrokenRedirectsPage\formatResult(), DoubleRedirectsPage\formatResult(), FewestrevisionsPage\formatResult(), FileDuplicateSearchPage\formatResult(), ListredirectsPage\formatResult(), MIMEsearchPage\formatResult(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), MostlinkedPage\formatResult(), ShortPagesPage\formatResult(), UnusedtemplatesPage\formatResult(), UnwatchedpagesPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialNewpages\formatRow(), SpecialBotPasswords\getFormFields(), SpecialEmailUser\getFormFields(), SpecialStatistics\getGroupStats(), SpecialStatistics\getPageStats(), DeletedContributionsPage\getSubTitle(), SpecialContributions\getUserLinks(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), MostlinkedPage\makeWlhLink(), SpecialMergeHistory\merge(), SpecialListGroupRights\outputNamespaceProtectionInfo(), MediaStatisticsPage\outputTableRow(), SpecialBlock\postText(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), SpecialChangeCredentials\showSubpageList(), MovePageForm\showSubpagesList(), SpecialEditWatchlist\showTitles(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), and SpecialWhatLinksHere\wlhLink().
|
protected |
Current request context.
Definition at line 61 of file SpecialPage.php.
|
protected |
Definition at line 55 of file SpecialPage.php.
|
protected |
Definition at line 52 of file SpecialPage.php.
|
private |
Definition at line 49 of file SpecialPage.php.
|
private |
Definition at line 42 of file SpecialPage.php.
|
protected |
Definition at line 39 of file SpecialPage.php.
Referenced by SpecialCachedPage\getCacheKey().
|
protected |
Definition at line 46 of file SpecialPage.php.