MediaWiki
1.30.0
|
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. More... | |
addHelpLink ( $to, $overrideBaseUrl=false) | |
Adds help link with an icon via page indicators. More... | |
checkPermissions () | |
Checks if userCanExecute, and if not throws a PermissionsError. More... | |
checkReadOnly () | |
If the wiki is currently in readonly mode, throws a ReadOnlyError. More... | |
displayRestrictionError () | |
Output an error message telling the user what access level they have to have. More... | |
doesWrites () | |
Indicates whether this special page may perform database writes. More... | |
execute ( $subPage) | |
Default execute method Checks user permissions. More... | |
getConfig () | |
Shortcut to get main config object. More... | |
getContext () | |
Gets the context this SpecialPage is executed in. More... | |
getDescription () | |
Returns the name that goes in the \<h1\> in the special page itself, and also the name that will be listed in Special:Specialpages. More... | |
getFinalGroupName () | |
Get the group that the special page belongs in on Special:SpecialPage Use this method, instead of getGroupName to allow customization of the group name from the wiki side. More... | |
getFullTitle () | |
Return the full title, including $par. More... | |
getLanguage () | |
Shortcut to get user's language. More... | |
getLinkRenderer () | |
getLocalName () | |
Get the localised name of the special page. More... | |
getName () | |
Get the name of this Special Page. More... | |
getOutput () | |
Get the OutputPage being used for this instance. More... | |
getPageTitle ( $subpage=false) | |
Get a self-referential title object. More... | |
getRequest () | |
Get the WebRequest being used for this instance. More... | |
getRestriction () | |
Get the permission that a user must have to execute this page. More... | |
getSkin () | |
Shortcut to get the skin being used for this instance. More... | |
getTitle ( $subpage=false) | |
Get a self-referential title object. More... | |
getUser () | |
Shortcut to get the User executing this instance. More... | |
including ( $x=null) | |
Whether the special page is being evaluated via transclusion. More... | |
isCached () | |
Is this page cached? Expensive pages are cached or disabled in miser mode. More... | |
isExpensive () | |
Is this page expensive (for some definition of expensive)? Expensive pages are disabled or cached in miser mode. More... | |
isIncludable () | |
Whether it's allowed to transclude the special page via {{Special:Foo/params}}. More... | |
isListed () | |
Whether this special page is listed in Special:SpecialPages. More... | |
isRestricted () | |
Can be overridden by subclasses with more complicated permissions schemes. More... | |
listed ( $x=null) | |
Get or set whether this special page is listed in Special:SpecialPages. More... | |
maxIncludeCacheTime () | |
How long to cache page when it is being included. More... | |
msg ( $key) | |
Wrapper around wfMessage that sets the current context. More... | |
outputHeader ( $summaryMessageKey='') | |
Outputs a summary message on top of special pages Per default the message key is the canonical name of the special page May be overridden, i.e. More... | |
prefixSearchSubpages ( $search, $limit, $offset) | |
Return an array of subpages beginning with $search that this special page will accept. More... | |
requireLogin ( $reasonMsg='exception-nologin-text', $titleMsg='exception-nologin') | |
If the user is not logged in, throws UserNotLoggedIn error. More... | |
run ( $subPage) | |
Entry point. More... | |
setContext ( $context) | |
Sets the context this SpecialPage is executed in. More... | |
setHeaders () | |
Sets headers - this should be called from the execute() method of all derived classes! More... | |
setLinkRenderer (LinkRenderer $linkRenderer) | |
setListed ( $listed) | |
Set whether this page is listed in Special:Specialpages, at run-time. More... | |
userCanExecute (User $user) | |
Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction). More... | |
Static Public Member Functions | |
static | getSafeTitleFor ( $name, $subpage=false) |
Get a localised Title object for a page name with a possibly unvalidated subpage. More... | |
static | getTitleFor ( $name, $subpage=false, $fragment='') |
Get a localised Title object for a specified special page name If you don't need a full Title object, consider using TitleValue through getTitleValueFor() below. More... | |
static | getTitleValueFor ( $name, $subpage=false, $fragment='') |
Get a localised TitleValue object for a specified special page name. More... | |
Protected Member Functions | |
addFeedLinks ( $params) | |
Adds RSS/atom links. More... | |
afterExecute ( $subPage) | |
Gets called after. More... | |
beforeExecute ( $subPage) | |
Gets called before. More... | |
checkLoginSecurityLevel ( $level=null) | |
Verifies that the user meets the security level, possibly reauthenticating them in the process. More... | |
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'. More... | |
getLoginSecurityLevel () | |
Tells if the special page does something security-sensitive and needs extra defense against a stolen account (e.g. More... | |
getRobotPolicy () | |
Return the robot policy. More... | |
getSubpagesForPrefixSearch () | |
Return an array of subpages that this special page will accept for prefix searches. More... | |
prefixSearchString ( $search, $limit, $offset) | |
Perform a regular substring search for prefixSearchSubpages. More... | |
useTransactionalTimeLimit () | |
Call wfTransactionalTimeLimit() if this request was POSTed. More... | |
Static Protected Member Functions | |
static | prefixSearchArray ( $search, $limit, array $subpages, $offset) |
Helper function for implementations of prefixSearchSubpages() that filter the values in memory (as opposed to making a query). More... | |
Protected Attributes | |
IContextSource | $mContext |
Current request context. More... | |
$mIncludable | |
$mIncluding | |
$mName | |
$mRestriction | |
Private Attributes | |
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 136 of file SpecialPage.php.
References $name.
|
protected |
Adds RSS/atom links.
array | $params |
Definition at line 767 of file SpecialPage.php.
References $params, as, getConfig(), getOutput(), wfAppendQuery(), and wfScript().
Referenced by SpecialContributions\execute(), SpecialRecentChanges\outputFeedLinks(), and SpecialWatchlist\outputFeedLinks().
SpecialPage::addHelpLink | ( | $to, | |
$overrideBaseUrl = false |
|||
) |
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 785 of file SpecialPage.php.
References $wgContLang, getOutput(), global, including(), Skin\makeUrl(), and msg().
Referenced by SpecialChangeContentModel\alterForm(), SpecialBlock\alterForm(), SpecialLog\execute(), SpecialSpecialpages\execute(), SpecialNewFiles\execute(), SpecialPreferences\execute(), SpecialContributions\execute(), SpecialExport\execute(), SpecialAutoblockList\execute(), SpecialAllMessages\execute(), SpecialWhatLinksHere\execute(), LinkSearchPage\execute(), SpecialWatchlist\execute(), UserrightsPage\execute(), SpecialNewpages\execute(), SpecialRecentChanges\execute(), SpecialUndelete\execute(), SpecialUpload\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 SpecialCachedPage.
Definition at line 556 of file SpecialPage.php.
Referenced by run().
|
protected |
Gets called before.
string | null | $subPage |
Reimplemented in LoginSignupSpecialPage, AuthManagerSpecialPage, and SpecialUserLogin.
Definition at line 545 of file SpecialPage.php.
Referenced by run().
|
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 | $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 379 of file SpecialPage.php.
References $query, $request, $title, getFullTitle(), getName(), getOutput(), getRequest(), getTitleFor(), PROTO_HTTPS, true, wfArrayToCgi(), and wfMessage().
Referenced by SpecialChangeEmail\execute(), and execute().
SpecialPage::checkPermissions | ( | ) |
Checks if userCanExecute, and if not throws a PermissionsError.
PermissionsError |
Reimplemented in SpecialCreateAccount.
Definition at line 306 of file SpecialPage.php.
References displayRestrictionError(), getUser(), and userCanExecute().
Referenced by FormSpecialPage\checkExecutePermissions(), SpecialNuke\execute(), EmailInvalidation\execute(), DeletedContributionsPage\execute(), SpecialUnblock\execute(), EmailConfirmation\execute(), SpecialWatchlist\execute(), SpecialEditTags\execute(), SpecialUploadStash\execute(), SpecialEditWatchlist\execute(), SpecialMergeHistory\execute(), SpecialRevisionDelete\execute(), SpecialUndelete\execute(), LoginSignupSpecialPage\execute(), and execute().
SpecialPage::checkReadOnly | ( | ) |
If the wiki is currently in readonly mode, throws a ReadOnlyError.
ReadOnlyError |
Definition at line 319 of file SpecialPage.php.
References wfReadOnly().
Referenced by FormSpecialPage\checkExecutePermissions(), SpecialNuke\execute(), SpecialPreferences\execute(), EmailInvalidation\execute(), SpecialUnblock\execute(), EmailConfirmation\execute(), SpecialImport\execute(), SpecialEditTags\execute(), MovePageForm\execute(), UserrightsPage\execute(), SpecialEditWatchlist\execute(), SpecialMergeHistory\execute(), SpecialRevisionDelete\execute(), SpecialUpload\execute(), SpecialUndelete\showHistory(), and SpecialUndelete\undelete().
SpecialPage::displayRestrictionError | ( | ) |
Output an error message telling the user what access level they have to have.
PermissionsError |
Definition at line 295 of file SpecialPage.php.
Referenced by checkPermissions(), and QueryPage\execute().
SpecialPage::doesWrites | ( | ) |
Indicates whether this special page may perform database writes.
Reimplemented in SpecialRevisionDelete, SpecialEditWatchlist, SpecialMergeHistory, MovePageForm, SpecialPasswordReset, SpecialEditTags, SpecialUndelete, SpecialUploadStash, SpecialBlock, SpecialImport, SpecialCreateAccount, SpecialUserLogin, UserrightsPage, SpecialWatchlist, SpecialEmailUser, SpecialUpload, SpecialChangeEmail, SpecialPageLanguage, SpecialUnblock, EmailConfirmation, SpecialResetTokens, SpecialLockdb, SpecialRunJobs, EmailInvalidation, SpecialUnlockdb, SpecialChangeCredentials, SpecialPreferences, SpecialUserLogout, SpecialInterwiki, SpecialRenameuser, SpecialNuke, and SpecialChangeContentModel.
Definition at line 830 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 ChangesListSpecialPage, LoginSignupSpecialPage, SpecialRecentChanges, SpecialChangeCredentials, SpecialUploadStash, SpecialPageData, SpecialExpandTemplates, SpecialWatchlist, RedirectSpecialPage, SpecialLinkAccounts, SpecialUnlinkAccounts, SpecialRunJobs, QueryPage, MIMEsearchPage, SpecialUpload, SpecialUndelete, FormSpecialPage, SpecialNewpages, SpecialRevisionDelete, SpecialEmailUser, SpecialMergeHistory, SpecialSearch, UnwatchedpagesPage, FileDuplicateSearchPage, UserrightsPage, MovePageForm, SpecialResetTokens, SpecialEditTags, SpecialImport, SpecialPagesWithProp, SpecialAllPages, SpecialBotPasswords, SpecialChangeEmail, RandomPage, LinkSearchPage, SpecialPrefixindex, SpecialTags, SpecialComparePages, SpecialVersion, SpecialWhatLinksHere, SpecialAllMessages, SpecialBlockList, SpecialUnblock, DeletedContributionsPage, SpecialListUsers, SpecialAutoblockList, SpecialGoToInterwiki, SpecialActiveUsers, SpecialExport, SpecialListGroupRights, SpecialListGrants, SpecialTrackingCategories, WantedPagesPage, SpecialInterwiki, SpecialContributions, SpecialPreferences, SpecialStatistics, SpecialUserLogout, SpecialCategories, SpecialProtectedpages, SpecialProtectedtitles, WithoutInterwikiPage, SpecialApiHelp, SpecialBlankpage, SpecialNewFiles, SpecialSpecialpages, SpecialLog, SpecialApiSandbox, SpecialJavaScriptTest, SpecialListFiles, SpecialRenameuser, SpecialCiteThisPage, SpecialGadgets, SpecialNuke, CaptchaSpecialPage, SpecialEditWatchlist, SpecialBookSources, EmailConfirmation, and EmailInvalidation.
Definition at line 568 of file SpecialPage.php.
References checkLoginSecurityLevel(), checkPermissions(), getLoginSecurityLevel(), outputHeader(), and setHeaders().
Referenced by SpecialPageExecutor\getHTMLFromSpecialPage(), and run().
|
protected |
Reimplemented in SpecialRecentChanges, and SpecialNewpages.
Definition at line 217 of file SpecialPage.php.
Referenced by maxIncludeCacheTime().
SpecialPage::getConfig | ( | ) |
Shortcut to get main config object.
Definition at line 714 of file SpecialPage.php.
References getContext().
Referenced by SpecialGadgetUsage\__construct(), SpecialWatchlist\__construct(), addFeedLinks(), SpecialPasswordReset\alterForm(), SpecialNewFiles\buildForm(), SpecialUnlockdb\checkExecutePermissions(), SpecialLockdb\checkExecutePermissions(), SpecialBotPasswords\checkExecutePermissions(), QueryPage\doFeed(), SpecialImport\doImport(), SpecialRecentChanges\doMainQuery(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialApiSandbox\execute(), SpecialLog\execute(), SpecialContributions\execute(), SpecialTrackingCategories\execute(), SpecialListGrants\execute(), SpecialExport\execute(), SpecialRunJobs\execute(), SpecialListGroupRights\execute(), DeletedContributionsPage\execute(), SpecialAllMessages\execute(), SpecialWhatLinksHere\execute(), LinkSearchPage\execute(), SpecialWatchlist\execute(), SpecialExpandTemplates\execute(), SpecialAllPages\execute(), SpecialImport\execute(), SpecialSearch\execute(), SpecialEmailUser\execute(), ChangesListSpecialPage\execute(), QueryPage\execute(), SpecialNewpages\feed(), SpecialNewpages\feedTitle(), QueryPage\feedTitle(), UserrightsPage\fetchUser(), QueryPage\getDBLimit(), SpecialRecentChanges\getExtraOptions(), SpecialRecentChanges\getFeedQuery(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialPageLanguage\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialStatistics\getGroupStats(), SpecialActiveUsers\getIntroText(), SpecialProtectedtitles\getLevelMenu(), SpecialProtectedpages\getLevelMenu(), QueryPage\getLimitOffset(), SpecialImport\getMappingFormPart(), QueryPage\getMaxResults(), SpecialExport\getPagesFromCategory(), SpecialExport\getPagesFromNamespace(), SpecialStatistics\getPageStats(), SpecialCiteThisPage\getParser(), SpecialPasswordReset\getPasswordReset(), ShortPagesPage\getQueryInfo(), UnusedimagesPage\getQueryInfo(), WantedPagesPage\getQueryInfo(), LinkSearchPage\getQueryInfo(), SpecialRemoveCredentials\getRequestBlacklist(), SpecialLinkAccounts\getRequestBlacklist(), SpecialUnlinkAccounts\getRequestBlacklist(), SpecialChangeCredentials\getRequestBlacklist(), SpecialLog\getSubpagesForPrefixSearch(), SpecialResetTokens\getTokensList(), SpecialStatistics\getUserStats(), SpecialSearch\goResult(), ChangesListSpecialPage\includeRcFiltersApp(), QueryPage\isCached(), QueryPage\isExpensive(), SpecialBotPasswords\isListed(), SpecialWatchlist\isStructuredFilterUiEnabled(), ChangesListSpecialPage\isStructuredFilterUiEnabled(), SpecialWatchlist\isStructuredFilterUiEnabledByDefault(), ChangesListSpecialPage\isStructuredFilterUiEnabledByDefault(), LinkSearchPage\linkParameters(), maxIncludeCacheTime(), SpecialPrefixindex\namespacePrefixForm(), SpecialUnlockdb\onSubmit(), SpecialLockdb\onSubmit(), SpecialRecentChanges\optionsPanel(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialAllPages\outputHTMLForm(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialUploadStash\outputRemoteScaledThumb(), SpecialGadgetUsage\outputResults(), SpecialUploadStash\outputThumbFromStash(), SpecialLog\parseParams(), 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 SpecialRecentChanges\validateOptions().
SpecialPage::getContext | ( | ) |
Gets the context this SpecialPage is executed in.
Definition at line 648 of file SpecialPage.php.
References $mContext, RequestContext\getMain(), and wfDebug().
Referenced by MergeHistoryPager\__construct(), SpecialLog\addHeader(), ChangesListSpecialPage\buildChangeTagList(), SpecialActiveUsers\buildForm(), SpecialBookSources\buildForm(), SpecialUndelete\diffHeader(), SpecialImport\doImport(), SpecialTags\doTagRow(), SpecialListFiles\execute(), SpecialNewFiles\execute(), SpecialApiHelp\execute(), SpecialCategories\execute(), SpecialPreferences\execute(), SpecialContributions\execute(), SpecialStatistics\execute(), SpecialExport\execute(), SpecialActiveUsers\execute(), SpecialAutoblockList\execute(), DeletedContributionsPage\execute(), SpecialListUsers\execute(), SpecialUnblock\execute(), SpecialBlockList\execute(), SpecialComparePages\execute(), LinkSearchPage\execute(), SpecialExpandTemplates\execute(), SpecialPagesWithProp\execute(), FileDuplicateSearchPage\execute(), SpecialEmailUser\execute(), SpecialNewpages\form(), SpecialListGroupRights\formatPermissions(), PageQueryPage\formatResult(), FewestrevisionsPage\formatResult(), MostlinkedCategoriesPage\formatResult(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), MostlinkedTemplatesPage\formatResult(), MostlinkedPage\formatResult(), UnwatchedpagesPage\formatResult(), ShortPagesPage\formatResult(), SpecialProtectedtitles\formatRow(), SpecialExpandTemplates\generateHtml(), AuthManagerSpecialPage\getAuthForm(), LoginSignupSpecialPage\getAuthForm(), SpecialEditWatchlist\getClearForm(), getConfig(), SpecialUpload\getDupeWarning(), SpecialRecentChanges\getExtraOptions(), FormSpecialPage\getForm(), SpecialContributions\getForm(), getFullTitle(), getLanguage(), SpecialEditTags\getList(), SpecialRevisionDelete\getList(), SpecialEditWatchlist\getNormalForm(), getOutput(), WithoutInterwikiPage\getPageHeader(), MIMEsearchPage\getPageHeader(), SpecialEditWatchlist\getRawForm(), AuthManagerSpecialPage\getRequest(), getRequest(), getSkin(), SpecialUpload\getUploadForm(), getUser(), SpecialExpandTemplates\makeForm(), ChangesListSpecialPage\makeLegend(), ChangesListStringOptionsFilterGroup\modifyQuery(), ChangesListBooleanFilter\modifyQuery(), msg(), SpecialPageLanguage\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialAllPages\outputHTMLForm(), ImageQueryPage\outputResults(), SpecialTags\processCreateTagForm(), SpecialNuke\promptForm(), AuthManagerSpecialPage\setRequest(), LoginSignupSpecialPage\setSessionUserForCurrentRequest(), SpecialLog\show(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialTags\showDeleteTagForm(), SpecialUndelete\showDiff(), UserrightsPage\showEditUserGroupsForm(), SpecialPermanentLink\showForm(), SpecialDiff\showForm(), SpecialUndelete\showList(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), LoginSignupSpecialPage\showReturnToPage(), LoginSignupSpecialPage\showSuccessPage(), SpecialTags\showTagList(), SpecialUploadStash\showUploads(), SpecialPreferences\submitReset(), and SpecialUserLogin\successfulAction().
SpecialPage::getDescription | ( | ) |
Returns the name that goes in the \<h1\> in the special page itself, and also the name that will be listed in Special:Specialpages.
Derived classes can override this, but usually it is easier to keep the default behavior.
Reimplemented in SpecialEditTags, SpecialDiff, SpecialCreateAccount, SpecialUserLogin, SpecialEmailUser, and SpecialInterwiki.
Definition at line 606 of file SpecialPage.php.
References msg().
Referenced by SpecialNewpages\feedTitle(), QueryPage\feedTitle(), and setHeaders().
SpecialPage::getFinalGroupName | ( | ) |
Get the group that the special page belongs in on Special:SpecialPage Use this method, instead of getGroupName to allow customization of the group name from the wiki side.
Definition at line 809 of file SpecialPage.php.
References $name, getGroupName(), getName(), and msg().
SpecialPage::getFullTitle | ( | ) |
Return the full title, including $par.
Definition at line 724 of file SpecialPage.php.
References getContext().
Referenced by checkLoginSecurityLevel(), LoginSignupSpecialPage\execute(), AuthManagerSpecialPage\getAuthForm(), and AuthManagerSpecialPage\handleReauthBeforeExecute().
|
protected |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented in ChangesListSpecialPage, LoginSignupSpecialPage, SpecialVersion, SpecialUndelete, SpecialBlock, UserrightsPage, MovePageForm, SpecialUpload, SpecialContributions, SpecialSearch, SpecialRevisionDelete, SpecialExport, SpecialWhatLinksHere, SpecialImport, SpecialNewpages, SpecialEmailUser, SpecialInterwiki, SpecialTags, SpecialEditTags, SpecialRenameuser, SpecialRedirect, SpecialNuke, SpecialMergeHistory, SpecialAllPages, MediaStatisticsPage, SpecialBotPasswords, SpecialPrefixindex, SpecialRandomInCategory, SpecialStatistics, SpecialPageLanguage, SpecialListGroupRights, SpecialChangeContentModel, SpecialExpandTemplates, SpecialLog, SpecialUnblock, SpecialProtectedpages, FileDuplicateSearchPage, LinkSearchPage, SpecialGadgetUsage, DeletedContributionsPage, SpecialPagesWithProp, MIMEsearchPage, DoubleRedirectsPage, SpecialGadgets, SpecialBlockList, SpecialBookSources, SpecialJavaScriptTest, SpecialNewFiles, SpecialProtectedtitles, SpecialChangeEmail, RandomPage, BrokenRedirectsPage, SpecialPasswordReset, ShortPagesPage, SpecialComparePages, SpecialActiveUsers, SpecialPreferences, SpecialAutoblockList, SpecialCreateAccount, SpecialUserLogin, WantedFilesPage, SpecialResetTokens, ListredirectsPage, UnwatchedpagesPage, MostlinkedPage, MostlinkedTemplatesPage, WantedCategoriesPage, SpecialTrackingCategories, SpecialDiff, SpecialLockdb, MostinterwikisPage, MostcategoriesPage, WithoutInterwikiPage, ListDuplicatedFilesPage, FewestrevisionsPage, LonelyPagesPage, MostlinkedCategoriesPage, WantedPagesPage, UnusedtemplatesPage, SpecialUnlockdb, DeadendPagesPage, AncientPagesPage, SpecialListGrants, UncategorizedPagesPage, UnusedimagesPage, SpecialUserLogout, SpecialCiteThisPage, SpecialListFiles, SpecialPermanentLink, SpecialGoToInterwiki, SpecialListUsers, UnusedCategoriesPage, SpecialAllMessages, MostimagesPage, SpecialCategories, UncategorizedImagesPage, WantedTemplatesPage, SpecialApiSandbox, SpecialFilepath, LongPagesPage, MostrevisionsPage, SpecialUnlinkAccounts, SpecialChangeCredentials, and SpecialLinkAccounts.
Definition at line 842 of file SpecialPage.php.
Referenced by getFinalGroupName().
SpecialPage::getLanguage | ( | ) |
Shortcut to get user's language.
Definition at line 705 of file SpecialPage.php.
References getContext().
Referenced by SpecialEditTags\buildCheckBoxes(), SpecialEditWatchlist\buildRemoveLine(), SpecialVersion\compare(), SpecialContributions\contributionsSub(), SpecialUndelete\diffHeader(), SpecialWatchlist\doHeader(), SpecialTags\doTagRow(), SpecialUserLogout\execute(), SpecialTrackingCategories\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), LinkSearchPage\execute(), SpecialAllPages\execute(), FileDuplicateSearchPage\execute(), LoginSignupSpecialPage\execute(), QueryPage\execute(), SpecialJavaScriptTest\exportQUnit(), SpecialNewpages\filterLinks(), SpecialMyLanguage\findTitle(), SpecialUndelete\formatFileRow(), SpecialListGroupRights\formatPermissions(), WantedQueryPage\formatResult(), FewestrevisionsPage\formatResult(), UnusedtemplatesPage\formatResult(), MostlinkedCategoriesPage\formatResult(), AncientPagesPage\formatResult(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), WantedCategoriesPage\formatResult(), MostlinkedTemplatesPage\formatResult(), BrokenRedirectsPage\formatResult(), MostlinkedPage\formatResult(), UnwatchedpagesPage\formatResult(), DoubleRedirectsPage\formatResult(), ListredirectsPage\formatResult(), ShortPagesPage\formatResult(), SpecialGadgetUsage\formatResult(), SpecialPagesWithProp\formatResult(), MIMEsearchPage\formatResult(), FileDuplicateSearchPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialNewpages\formatRow(), SpecialCachedPage\getCacheKey(), SpecialVersion\getCreditsForExtension(), SpecialStatistics\getEditStats(), SpecialVersion\getEntryPointInfo(), MediaStatisticsPage\getExtensionList(), SpecialUndelete\getFileLink(), SpecialWhatLinksHere\getFilterPanel(), SpecialPageLanguage\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialStatistics\getGroupStats(), SpecialEditWatchlist\getNormalForm(), SpecialStatistics\getOtherStats(), SpecialUndelete\getPageLink(), SpecialStatistics\getPageStats(), SpecialWhatLinksHere\getPrevNext(), DeletedContributionsPage\getSubTitle(), SpecialStatistics\getUserStats(), UserrightsPage\groupCheckboxes(), SpecialNuke\listForm(), SpecialWhatLinksHere\listItem(), SpecialVersion\listToText(), LoginSignupSpecialPage\makeLanguageSelector(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialRecentChanges\optionsPanel(), SpecialEditWatchlist\outputSubtitle(), SpecialNewpages\parseParams(), SpecialUpload\processVerificationError(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialRevisionDelete\showForm(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), EmailConfirmation\showRequestForm(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), MovePageForm\showSubpagesList(), SpecialRevisionDelete\tryShowFile(), and SpecialWhatLinksHere\wlhLink().
SpecialPage::getLinkRenderer | ( | ) |
Definition at line 860 of file SpecialPage.php.
References $linkRenderer.
Referenced by SpecialEditWatchlist\buildRemoveLine(), SpecialContributions\contributionsSub(), SpecialUndelete\diffHeader(), SpecialWatchlist\doHeader(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialCategories\execute(), SpecialProtectedpages\execute(), SpecialTrackingCategories\execute(), SpecialListGroupRights\execute(), SpecialNewpages\filterLinks(), PageQueryPage\formatResult(), WantedQueryPage\formatResult(), UnusedCategoriesPage\formatResult(), FewestrevisionsPage\formatResult(), UnusedtemplatesPage\formatResult(), MostlinkedCategoriesPage\formatResult(), AncientPagesPage\formatResult(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), UncategorizedCategoriesPage\formatResult(), WantedCategoriesPage\formatResult(), MostlinkedTemplatesPage\formatResult(), BrokenRedirectsPage\formatResult(), MostlinkedPage\formatResult(), UnwatchedpagesPage\formatResult(), DoubleRedirectsPage\formatResult(), ListredirectsPage\formatResult(), ShortPagesPage\formatResult(), SpecialPagesWithProp\formatResult(), MIMEsearchPage\formatResult(), FileDuplicateSearchPage\formatResult(), LinkSearchPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialNewpages\formatRow(), SpecialVersion\getCreditsForExtension(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUnblock\getFields(), SpecialUndelete\getFileLink(), SpecialEmailUser\getFormFields(), SpecialBotPasswords\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(), MostlinkedPage\makeWlhLink(), WantedQueryPage\makeWlhLink(), MostlinkedTemplatesPage\makeWlhLink(), SpecialMergeHistory\merge(), NukeHooks\nukeContributionsLinks(), SpecialListGroupRights\outputNamespaceProtectionInfo(), SpecialSpecialpages\outputPageList(), SpecialEditWatchlist\outputSubtitle(), MediaStatisticsPage\outputTableRow(), SpecialLog\show(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialRevisionDelete\showForm(), SpecialUndelete\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.
Definition at line 234 of file SpecialPage.php.
References $mLocalName, and SpecialPageFactory\getLocalNameFor().
|
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 SpecialCreateAccount, AuthManagerSpecialPage, SpecialUserLogin, and SpecialUnlinkAccounts.
Definition at line 351 of file SpecialPage.php.
Referenced by execute().
SpecialPage::getName | ( | ) |
Get the name of this Special Page.
Reimplemented in SpecialDiff.
Definition at line 150 of file SpecialPage.php.
References $mName.
Referenced by checkLoginSecurityLevel(), RandomPage\execute(), QueryPage\execute(), QueryPage\fetchFromCache(), QueryPage\getCachedTimestamp(), SpecialRecentChanges\getExtraOptions(), getFinalGroupName(), FormSpecialPage\getForm(), SpecialEmailUser\getFormFields(), AuthManagerSpecialPage\getLoginSecurityLevel(), FormSpecialPage\getMessagePrefix(), QueryPage\getRecacheDB(), SpecialMypage\getRedirect(), SpecialMytalk\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), SpecialAllMyUploads\getRedirect(), AuthManagerSpecialPage\getToken(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), LoginSignupSpecialPage\mainLoginForm(), SpecialLockdb\onSubmit(), SpecialChangeEmail\onSuccess(), outputHeader(), SpecialEditWatchlist\outputSubtitle(), QueryPage\recache(), ChangesListSpecialPage\runMainQueryHook(), LoginSignupSpecialPage\showSuccessPage(), and SpecialCreateAccount\successfulAction().
SpecialPage::getOutput | ( | ) |
Get the OutputPage being used for this instance.
Definition at line 675 of file SpecialPage.php.
References getContext().
Referenced by MediaWiki\Widget\Search\InterwikiSearchResultSetWidget\__construct(), SpecialCachedPage\addCachedHTML(), addFeedLinks(), SpecialLog\addHeader(), addHelpLink(), SpecialRecentChanges\addModules(), ChangesListSpecialPage\addModules(), SpecialRevisionDelete\addUsageText(), SpecialPageLanguage\alterForm(), EmailConfirmation\attemptConfirm(), EmailInvalidation\attemptInvalidate(), SpecialUserLogin\beforeExecute(), AuthManagerSpecialPage\beforeExecute(), checkLoginSecurityLevel(), SpecialContributions\contributionsSub(), SpecialRedirect\dispatch(), SpecialNuke\doDelete(), QueryPage\doFeed(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), SpecialInterwiki\doSubmit(), MovePageForm\doSubmit(), UserrightsPage\editUserGroupsForm(), SpecialInterwiki\error(), SpecialRenameuser\execute(), SpecialListFiles\execute(), SpecialApiSandbox\execute(), SpecialJavaScriptTest\execute(), SpecialLog\execute(), SpecialApiHelp\execute(), SpecialSpecialpages\execute(), SpecialBlankpage\execute(), SpecialNewFiles\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialCategories\execute(), SpecialContributions\execute(), SpecialPreferences\execute(), SpecialStatistics\execute(), SpecialLinkAccounts\execute(), SpecialUserLogout\execute(), SpecialInterwiki\execute(), SpecialTrackingCategories\execute(), SpecialListGrants\execute(), SpecialActiveUsers\execute(), SpecialRunJobs\execute(), SpecialExport\execute(), SpecialListGroupRights\execute(), RedirectSpecialPage\execute(), SpecialAutoblockList\execute(), SpecialGoToInterwiki\execute(), SpecialBookSources\execute(), DeletedContributionsPage\execute(), SpecialListUsers\execute(), SpecialUnblock\execute(), SpecialBlockList\execute(), SpecialAllMessages\execute(), SpecialWhatLinksHere\execute(), EmailConfirmation\execute(), SpecialVersion\execute(), SpecialComparePages\execute(), SpecialPrefixindex\execute(), LinkSearchPage\execute(), SpecialWatchlist\execute(), SpecialExpandTemplates\execute(), RandomPage\execute(), SpecialChangeEmail\execute(), SpecialAllPages\execute(), SpecialBotPasswords\execute(), SpecialPagesWithProp\execute(), SpecialPageData\execute(), SpecialImport\execute(), SpecialEditTags\execute(), SpecialResetTokens\execute(), SpecialChangeCredentials\execute(), UserrightsPage\execute(), SpecialEditWatchlist\execute(), FileDuplicateSearchPage\execute(), UnwatchedpagesPage\execute(), SpecialSearch\execute(), SpecialEmailUser\execute(), SpecialMergeHistory\execute(), SpecialRevisionDelete\execute(), SpecialNewpages\execute(), SpecialRecentChanges\execute(), SpecialUndelete\execute(), LoginSignupSpecialPage\execute(), ChangesListSpecialPage\execute(), QueryPage\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), SpecialJavaScriptTest\exportQUnit(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\feed(), SpecialNewpages\form(), SpecialLog\getActionButtons(), SpecialChangeCredentials\getAuthFormDescriptor(), SpecialVersion\getCreditsForExtension(), SpecialContributions\getForm(), SpecialPageExecutor\getHTMLFromSpecialPage(), DeletedContributionsPage\getSubTitle(), AuthManagerSpecialPage\handleReauthBeforeExecute(), AuthManagerSpecialPage\handleReturnBeforeExecute(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), LoginSignupSpecialPage\mainLoginForm(), SpecialInterwiki\makeTable(), SpecialMergeHistory\merge(), SpecialCachedPage\onCacheInitialized(), SpecialPermanentLink\onFormSubmit(), SpecialDiff\onFormSubmit(), SpecialRandomInCategory\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialResetTokens\onSuccess(), SpecialUnlockdb\onSuccess(), SpecialLockdb\onSuccess(), SpecialChangeEmail\onSuccess(), SpecialPasswordReset\onSuccess(), SpecialPageLanguage\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), outputHeader(), MediaStatisticsPage\outputMediaType(), SpecialListGroupRights\outputNamespaceProtectionInfo(), ChangesListSpecialPage\outputNoResults(), SpecialSpecialpages\outputPageList(), MediaStatisticsPage\outputResults(), SpecialEditWatchlist\outputSubtitle(), MediaStatisticsPage\outputTableEnd(), MediaStatisticsPage\outputTableRow(), SpecialGadgetUsage\outputTableStart(), MediaStatisticsPage\outputTableStart(), SpecialJavaScriptTest\plainQUnit(), SpecialPageLanguage\preText(), SpecialUpload\processUpload(), SpecialNuke\promptForm(), SpecialUndelete\redirectToRevDel(), SpecialUserLogin\setHeaders(), setHeaders(), SpecialNewFiles\setTopText(), SpecialRecentChangesLinked\setTopText(), SpecialRecentChanges\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(), SpecialPageData\showForm(), SpecialInterwiki\showForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialWhatLinksHere\showIndirectLinks(), FileDuplicateSearchPage\showList(), SpecialAutoblockList\showList(), SpecialBookSources\showList(), SpecialBlockList\showList(), SpecialInterwiki\showList(), SpecialUndelete\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(), SpecialEmailUser\userForm(), and ChangesListSpecialPage\validateOptions().
SpecialPage::getPageTitle | ( | $subpage = false | ) |
Get a self-referential title object.
string | bool | $subpage |
Definition at line 628 of file SpecialPage.php.
References getTitleFor().
Referenced by SpecialActiveUsers\buildForm(), SpecialBookSources\buildForm(), SpecialCiteThisPage\citationTag(), SpecialUndelete\diffHeader(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialInterwiki\doSubmit(), SpecialTags\doTagRow(), SpecialRenameuser\execute(), SpecialApiHelp\execute(), SpecialInterwiki\execute(), SpecialLinkAccounts\execute(), SpecialAutoblockList\execute(), SpecialBlockList\execute(), SpecialWhatLinksHere\execute(), SpecialWatchlist\execute(), LinkSearchPage\execute(), SpecialExpandTemplates\execute(), SpecialImport\execute(), SpecialChangeCredentials\execute(), FileDuplicateSearchPage\execute(), SpecialSearch\execute(), SpecialEmailUser\execute(), LoginSignupSpecialPage\execute(), QueryPage\execute(), SpecialPageExecutor\executeSpecialPage(), SpecialNewpages\feed(), QueryPage\feedUrl(), SpecialNewpages\filterLinks(), SpecialUndelete\formatFileRow(), SpecialUndelete\formatRevisionRow(), LoginSignupSpecialPage\getAuthForm(), SpecialEditWatchlist\getClearForm(), SpecialVersion\getCreditsForExtension(), LoginSignupSpecialPage\getFakeTemplate(), SpecialContributions\getForm(), SpecialBotPasswords\getFormFields(), SpecialEditWatchlist\getNormalForm(), MIMEsearchPage\getPageHeader(), SpecialEditWatchlist\getRawForm(), UserrightsPage\getSuccessURL(), getTitle(), SpecialUpload\getUploadForm(), AuthManagerSpecialPage\handleReturnBeforeExecute(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), LoginSignupSpecialPage\load(), LoginSignupSpecialPage\mainLoginForm(), LoginSignupSpecialPage\makeLanguageSelectorLink(), SpecialRecentChanges\makeOptionsLink(), SpecialInterwiki\makeTable(), SpecialPrefixindex\namespacePrefixForm(), SpecialPermanentLink\onFormSubmit(), SpecialDiff\onFormSubmit(), SpecialBotPasswords\onSubmit(), SpecialBotPasswords\onSuccess(), AuthManagerSpecialPage\performAuthenticationStep(), SpecialJavaScriptTest\plainQUnit(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialNuke\promptForm(), SpecialRecentChanges\setTopText(), SpecialWatchlist\setTopText(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), SpecialInterwiki\showForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialInterwiki\showList(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), SpecialMergeHistory\showMergeForm(), SpecialProtectedpages\showOptions(), SpecialProtectedtitles\showOptions(), SpecialPrefixindex\showPrefixChunk(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), SpecialSearch\showResults(), SpecialUndelete\showRevision(), SpecialUndelete\showSearchForm(), SpecialTags\showTagList(), SpecialUploadStash\showUploads(), SpecialPreferences\submitReset(), SpecialCreateAccount\successfulAction(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), SpecialEmailUser\userForm(), ChangesListSpecialPage\validateOptions(), SpecialWhatLinksHere\whatlinkshereForm(), and SpecialWhatLinksHere\wlhLink().
SpecialPage::getRequest | ( | ) |
Get the WebRequest being used for this instance.
Reimplemented in AuthManagerSpecialPage.
Definition at line 665 of file SpecialPage.php.
References getContext().
Referenced by SpecialBlock\alterForm(), SpecialChangeEmail\alterForm(), SpecialPasswordReset\alterForm(), SpecialRevisionDelete\buildCheckBoxes(), SpecialActiveUsers\buildForm(), checkLoginSecurityLevel(), SpecialRedirect\dispatchFile(), SpecialImport\doImport(), SpecialInterwiki\doSubmit(), SpecialNuke\execute(), SpecialCiteThisPage\execute(), SpecialRenameuser\execute(), SpecialListFiles\execute(), SpecialLog\execute(), SpecialApiHelp\execute(), SpecialNewFiles\execute(), WithoutInterwikiPage\execute(), SpecialCategories\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialContributions\execute(), SpecialInterwiki\execute(), SpecialUserLogout\execute(), SpecialPreferences\execute(), SpecialActiveUsers\execute(), SpecialRunJobs\execute(), SpecialExport\execute(), SpecialBookSources\execute(), DeletedContributionsPage\execute(), SpecialUnblock\execute(), SpecialBlockList\execute(), SpecialAllMessages\execute(), SpecialWhatLinksHere\execute(), SpecialTags\execute(), SpecialPrefixindex\execute(), SpecialWatchlist\execute(), LinkSearchPage\execute(), SpecialExpandTemplates\execute(), RandomPage\execute(), SpecialAllPages\execute(), SpecialPagesWithProp\execute(), SpecialImport\execute(), SpecialPageData\execute(), SpecialEditTags\execute(), MovePageForm\execute(), UserrightsPage\execute(), SpecialEditWatchlist\execute(), FileDuplicateSearchPage\execute(), SpecialSearch\execute(), SpecialEmailUser\execute(), SpecialRevisionDelete\execute(), SpecialRecentChanges\execute(), MIMEsearchPage\execute(), ChangesListSpecialPage\execute(), SpecialRevisionDelete\extractBitParams(), SpecialWatchlist\fetchOptionsFromRequest(), ChangesListSpecialPage\fetchOptionsFromRequest(), ChangesListSpecialPage\getDefaultOptions(), FormSpecialPage\getForm(), QueryPage\getLimitOffset(), SpecialNuke\getNewPages(), SpecialFilepath\getRedirect(), RedirectSpecialPage\getRedirectQuery(), SpecialEditWatchlist\getWatchlist(), SpecialVersion\IPInfo(), SpecialWatchlist\isStructuredFilterUiEnabled(), ChangesListSpecialPage\isStructuredFilterUiEnabled(), SpecialSearch\load(), SpecialUndelete\loadRequest(), SpecialUpload\loadRequest(), SpecialMergeHistory\loadRequestParams(), SpecialBlock\maybeAlterFormDefaults(), SpecialChangeContentModel\onSubmit(), SpecialBotPasswords\onSubmit(), SpecialChangeEmail\onSuccess(), SpecialUpload\processUpload(), SpecialUndelete\redirectToRevDel(), SpecialSearch\saveNamespaces(), UserrightsPage\saveUserGroups(), SpecialChangeContentModel\setParameter(), SpecialBlock\setParameter(), SpecialNewpages\setup(), UserrightsPage\showEditUserGroupsForm(), 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.
Definition at line 158 of file SpecialPage.php.
References $mRestriction.
|
protected |
Return the robot policy.
Derived classes that override this can change the robot policy set by setHeaders() from the default 'noindex,nofollow'.
Definition at line 735 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 110 of file SpecialPage.php.
References $name, SpecialPageFactory\getLocalNameFor(), Title\makeTitleSafe(), and NS_SPECIAL.
Referenced by EmailNotification\composeCommonMailtext(), SpecialFilepath\getRedirect(), Skin\makeSpecialUrl(), and Skin\makeSpecialUrlSubpage().
SpecialPage::getSkin | ( | ) |
Shortcut to get the skin being used for this instance.
Definition at line 695 of file SpecialPage.php.
References getContext().
Referenced by SpecialEditWatchlist\buildRemoveLine(), SpecialListFiles\execute(), SpecialContributions\execute(), DeletedContributionsPage\execute(), SpecialUnblock\execute(), SpecialWhatLinksHere\execute(), UserrightsPage\execute(), SpecialEmailUser\execute(), SpecialUndelete\execute(), QueryPage\execute(), SpecialJavaScriptTest\exportQUnit(), LoginSignupSpecialPage\getFakeTemplate(), 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 SpecialTags, SpecialRedirect, SpecialJavaScriptTest, SpecialEditWatchlist, SpecialLog, SpecialWatchlist, SpecialListUsers, and SpecialInterwiki.
Definition at line 437 of file SpecialPage.php.
Referenced by prefixSearchSubpages().
SpecialPage::getTitle | ( | $subpage = false | ) |
Get a self-referential title object.
string | bool | $subpage |
Definition at line 617 of file SpecialPage.php.
References getPageTitle().
Referenced by SpecialTags\doTagRow(), SpecialUpload\getExistsWarning(), 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.
References $name, and Title\newFromTitleValue().
Referenced by FancyCaptcha\addCaptchaAPI(), EmailConfirmation\attemptConfirm(), SpecialUserLogin\beforeExecute(), Linker\blockLink(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SpecialEditWatchlist\buildRemoveLine(), SpecialEditWatchlist\buildTools(), MediaWiki\Auth\AuthManager\checkAccountCreatePermissions(), checkLoginSecurityLevel(), Title\checkReadPermissions(), ApiFormatBase\closePrinter(), DifferenceEngine\deletedLink(), SpecialTags\doTagRow(), Linker\emailLink(), TidyUpBug37714\execute(), ApiHelp\execute(), SpecialUserLogout\execute(), SpecialListGroupRights\execute(), ApiFeedContributions\execute(), SpecialBlockList\execute(), ApiFeedWatchlist\execute(), SpecialWatchlist\execute(), SpecialResetTokens\execute(), SpecialEditWatchlist\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), OldChangesList\formatChangeLine(), UnusedtemplatesPage\formatResult(), ListDuplicatedFilesPage\formatResult(), DeletedContribsPager\formatRevisionRow(), BlockListPager\formatValue(), ContentModelLogFormatter\getActionLinks(), MergeLogFormatter\getActionLinks(), MoveLogFormatter\getActionLinks(), BlockLogFormatter\getActionLinks(), DeleteLogFormatter\getActionLinks(), RevDelArchivedFileItem\getApiData(), RevDelFileItem\getApiData(), FancyCaptcha\getCaptchaInfo(), InfoAction\getContributors(), HistoryAction\getDescription(), RevDelArchiveItem\getDiffLink(), ApiFeedRecentChanges\getFeedObject(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUnblock\getFields(), FancyCaptcha\getFormInformation(), Title\getFullUrlForRedirect(), MWGrants\getGrantsLink(), SpecialStatistics\getGroupStats(), OutputPage\getHeadLinksArray(), ApiHelp\getHelpInternal(), ChangeTagsLogItem\getHTML(), RevDelLogItem\getHTML(), RevDelArchivedFileItem\getLink(), RevDelFileItem\getLink(), RCCacheEntryFactory\getLogLink(), ApiParamInfo\getModuleInfo(), InputBox\getMoveForm(), SearchNearMatcher\getNearMatchInternal(), SpecialStatistics\getPageStats(), getPageTitle(), ManualLogEntry\getRecentChange(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), SpecialRedirectToSpecial\getRedirect(), SpecialAllMyUploads\getRedirect(), RevDelArchiveItem\getRevisionLink(), InputBox\getSearchForm(), InputBox\getSearchForm2(), Skin\getSearchLink(), LogEventsList\getShowHideLinks(), UploadStashFile\getSpecialUrl(), DeletedContributionsPage\getSubTitle(), MediaWiki\getTitle(), AllMessagesTablePager\getTitle(), ImageListPager\getTitle(), SpecialPageFactory\getTitleForAlias(), Skin\getUndeleteLink(), ImagePage\getUploadUrl(), Linker\getUploadUrl(), SpecialContributions\getUserLinks(), SpecialStatistics\getUserStats(), AuthManagerSpecialPage\handleReauthBeforeExecute(), ImageHistoryList\imageHistoryLine(), CreditsAction\link(), EnhancedChangesList\makeCacheGroupingKey(), GadgetHooks\makeLegacyWarning(), MostlinkedPage\makeWlhLink(), WantedQueryPage\makeWlhLink(), MostlinkedTemplatesPage\makeWlhLink(), RecentChangesUpdateJob\newCacheUpdateJob(), RecentChangesUpdateJob\newPurgeJob(), NukeHooks\nukeContributionsLinks(), RenameuserHooks\onContributionsToolLinks(), CiteThisPageHooks\onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink(), MarkpatrolledAction\onSubmit(), ConfirmEditHooks\onTitleReadWhitelist(), ImagePage\openShowImage(), SpecialListGroupRights\outputNamespaceProtectionInfo(), MediaStatisticsPage\outputTableRow(), InfoAction\pageInfo(), MediaWiki\parseTitle(), MediaWiki\performRequest(), SpecialBlock\postText(), SkinTemplate\prepareQuickTemplate(), Preferences\profilePreferences(), EnhancedChangesList\recentChangesBlockLine(), SpecialUndelete\redirectToRevDel(), UserNotLoggedIn\report(), Linker\revDeleteLink(), LogPage\saveContent(), UserMailer\sendInternal(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialGadgets\showExportForm(), EditPage\showHeader(), SpecialInterwiki\showList(), LogEventsList\showOptions(), OutputPage\showPermissionsErrorPage(), SpecialUpload\showUploadWarning(), SpecialUpload\showViewDeletedLinks(), CoreParserFunctions\special(), Linker\specialLink(), RevDelLogList\suggestTarget(), SpecialPageTest\testGetTitleFor(), SpecialPageTest\testGetTitleForWithWarning(), SpecialPageTest\testInvalidGetTitleFor(), RCFeedIntegrationTest\testNotify(), ExtraParserTest\testTrackingCategorySpecial(), MediaWiki\tryNormaliseRedirect(), ChangeTags\updateTagsWithChecks(), Linker\userLink(), Linker\userToolLinks(), and Preferences\watchlistPreferences().
|
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 $name, SpecialPageFactory\getLocalNameFor(), and NS_SPECIAL.
Referenced by Linker\normaliseSpecialPage(), and InfoAction\pageInfo().
SpecialPage::getUser | ( | ) |
Shortcut to get the User executing this instance.
Definition at line 685 of file SpecialPage.php.
References getContext().
Referenced by UserrightsPage\addLogEntry(), SpecialRevisionDelete\addUsageText(), EmailConfirmation\attemptConfirm(), EmailInvalidation\attemptInvalidate(), SpecialNewFiles\buildForm(), SpecialInterwiki\canModify(), UserrightsPage\changeableGroups(), SpecialChangeEmail\checkExecutePermissions(), SpecialBotPasswords\checkExecutePermissions(), SpecialCreateAccount\checkPermissions(), checkPermissions(), SpecialEditWatchlist\cleanupWatchlist(), SpecialEditWatchlist\clearWatchlist(), SpecialWatchlist\countItems(), SpecialWatchlist\cutoffselector(), SpecialUndelete\diffHeader(), SpecialNuke\doDelete(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), SpecialRecentChanges\doMainQuery(), SpecialWatchlist\doMainQuery(), UserrightsPage\doSaveUserGroups(), MovePageForm\doSubmit(), SpecialNuke\execute(), SpecialRenameuser\execute(), SpecialApiSandbox\execute(), SpecialLog\execute(), SpecialUnlinkAccounts\execute(), SpecialUserLogout\execute(), SpecialInterwiki\execute(), SpecialPreferences\execute(), SpecialContributions\execute(), DeletedContributionsPage\execute(), EmailConfirmation\execute(), SpecialWatchlist\execute(), SpecialImport\execute(), SpecialEditTags\execute(), SpecialUploadStash\execute(), MovePageForm\execute(), UserrightsPage\execute(), SpecialEmailUser\execute(), SpecialRevisionDelete\execute(), FormSpecialPage\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), LoginSignupSpecialPage\execute(), QueryPage\execute(), UserrightsPage\fetchUser(), SpecialNewpages\filterLinks(), SpecialUndelete\formatFileRow(), BrokenRedirectsPage\formatResult(), DoubleRedirectsPage\formatResult(), FileDuplicateSearchPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialLog\getActionButtons(), SpecialAutoblockList\getBlockListPager(), SpecialBlockList\getBlockListPager(), SpecialWatchlist\getDefaultDays(), SpecialRecentChanges\getDefaultDays(), SpecialWatchlist\getDefaultLimit(), SpecialRecentChanges\getDefaultLimit(), SpecialEmailUser\getDescription(), LoginSignupSpecialPage\getFakeTemplate(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileLink(), SpecialContributions\getForm(), SpecialEmailUser\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialPasswordReset\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialResetTokens\getFormFields(), SpecialBlock\getFormFields(), SpecialSpecialpages\getPageGroups(), SpecialUndelete\getPageLink(), SpecialCiteThisPage\getParserOptions(), SpecialMypage\getRedirect(), SpecialMytalk\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), SpecialAllMyUploads\getRedirect(), SpecialUpload\getWatchCheck(), SpecialEditWatchlist\getWatchlist(), SpecialEditWatchlist\getWatchlistInfo(), UserrightsPage\groupCheckboxes(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialUndelete\isAllowed(), SpecialPasswordReset\isListed(), SpecialWatchlist\isStructuredFilterUiEnabled(), ChangesListSpecialPage\isStructuredFilterUiEnabled(), SpecialWatchlist\isStructuredFilterUiEnabledByDefault(), ChangesListSpecialPage\isStructuredFilterUiEnabledByDefault(), SpecialNuke\listForm(), SpecialSearch\load(), AuthManagerSpecialPage\loadAuth(), SpecialUndelete\loadRequest(), SpecialUpload\loadRequest(), SpecialMergeHistory\loadRequestParams(), LoginSignupSpecialPage\mainLoginForm(), SpecialBlock\maybeAlterFormDefaults(), SpecialMergeHistory\merge(), NukeHooks\nukeContributionsLinks(), SpecialLockdb\onSubmit(), SpecialChangeEmail\onSubmit(), SpecialPageLanguage\onSubmit(), SpecialResetTokens\onSubmit(), SpecialPasswordReset\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialChangeEmail\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialRecentChanges\optionsPanel(), SpecialRecentChanges\outputChangesList(), SpecialWatchlist\outputChangesList(), SpecialWatchlist\outputFeedLinks(), SpecialEditWatchlist\outputSubtitle(), SpecialNewpages\patrollable(), AuthManagerSpecialPage\performAuthenticationStep(), LoginSignupSpecialPage\postProcessFormDescriptor(), SpecialUpload\processUpload(), SpecialNuke\promptForm(), SpecialWatchlist\registerFilters(), SpecialRecentChanges\registerFilters(), ChangesListSpecialPage\registerFilters(), requireLogin(), SpecialSearch\saveNamespaces(), SpecialUserLogin\setHeaders(), SpecialWatchlist\setTopText(), SpecialNewpages\setup(), SpecialTags\showActivateDeactivateForm(), SpecialRevisionDelete\showConvenienceLinks(), LoginSignupSpecialPage\showCreateAccountLink(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), SpecialInterwiki\showForm(), 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\submitClear(), 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 | $x |
Definition at line 226 of file SpecialPage.php.
References wfSetVar().
Referenced by addHelpLink(), SpecialContributions\contributionsSub(), SpecialListFiles\execute(), SpecialApiHelp\execute(), SpecialNewFiles\execute(), SpecialContributions\execute(), WantedPagesPage\execute(), SpecialListUsers\execute(), SpecialWhatLinksHere\execute(), SpecialPrefixindex\execute(), SpecialNewpages\execute(), SpecialRecentChanges\execute(), msg(), SpecialRecentChanges\outputChangesList(), outputHeader(), SpecialRecentChanges\registerFilters(), ChangesListSpecialPage\registerFilters(), SpecialAllPages\showChunk(), SpecialWhatLinksHere\showIndirectLinks(), SpecialPrefixindex\showPrefixChunk(), and ChangesListSpecialPage\webOutput().
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 263 of file SpecialPage.php.
SpecialPage::isExpensive | ( | ) |
Is this page expensive (for some definition of expensive)? Expensive pages are disabled or cached in miser mode.
Originally used (and still overridden) by QueryPage and subclasses, moved here so that Special:SpecialPages can safely call it for all special pages.
Reimplemented in QueryPage, WithoutInterwikiPage, MediaStatisticsPage, SpecialGadgetUsage, DeadendPagesPage, MostlinkedTemplatesPage, LonelyPagesPage, MostlinkedPage, UncategorizedPagesPage, UnwatchedpagesPage, ListDuplicatedFilesPage, MostcategoriesPage, UncategorizedImagesPage, ListredirectsPage, BrokenRedirectsPage, DoubleRedirectsPage, MIMEsearchPage, MostimagesPage, MostinterwikisPage, UnusedtemplatesPage, AncientPagesPage, FewestrevisionsPage, UnusedimagesPage, WantedQueryPage, and UnusedCategoriesPage.
Definition at line 250 of file SpecialPage.php.
SpecialPage::isIncludable | ( | ) |
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
Reimplemented in SpecialRecentChanges, SpecialApiHelp, IncludableSpecialPage, and WantedPagesPage.
Definition at line 196 of file SpecialPage.php.
References $mIncludable.
SpecialPage::isListed | ( | ) |
Whether this special page is listed in Special:SpecialPages.
Reimplemented in SpecialPasswordReset, SpecialResetTokens, SpecialDiff, SpecialPageData, SpecialPermanentLink, SpecialBotPasswords, SpecialChangeEmail, UnlistedSpecialPage, SpecialUnlinkAccounts, SpecialChangeCredentials, and SpecialLinkAccounts.
Definition at line 168 of file SpecialPage.php.
References $mListed.
SpecialPage::isRestricted | ( | ) |
Can be overridden by subclasses with more complicated permissions schemes.
Reimplemented in SpecialCreateAccount.
Definition at line 274 of file SpecialPage.php.
References User\groupHasPermission().
SpecialPage::listed | ( | $x = null | ) |
Get or set whether this special page is listed in Special:SpecialPages.
bool | $x |
Definition at line 188 of file SpecialPage.php.
References wfSetVar().
SpecialPage::maxIncludeCacheTime | ( | ) |
How long to cache page when it is being included.
Definition at line 210 of file SpecialPage.php.
References getCacheTTL(), and getConfig().
SpecialPage::msg | ( | $key | ) |
Wrapper around wfMessage that sets the current context.
Implements MessageLocalizer.
Definition at line 746 of file SpecialPage.php.
References getContext(), and including().
Referenced by addHelpLink(), SpecialUnlockdb\alterForm(), SpecialLockdb\alterForm(), SpecialPasswordReset\alterForm(), SpecialChangeEmail\alterForm(), SpecialBotPasswords\alterForm(), SpecialEditTags\buildCheckBoxes(), SpecialRevisionDelete\buildCheckBoxes(), SpecialNewFiles\buildForm(), SpecialEditWatchlist\buildRemoveLine(), SpecialRecentChanges\categoryFilterForm(), SpecialComparePages\checkExistingRevision(), SpecialComparePages\checkExistingTitle(), SpecialWatchlist\cutoffselector(), SpecialUndelete\diffHeader(), SpecialNuke\doDelete(), SpecialRecentChanges\doHeader(), SpecialWatchlist\doHeader(), SpecialImport\doImport(), SpecialRecentChangesLinked\doMainQuery(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialNuke\execute(), SpecialRenameuser\execute(), SpecialJavaScriptTest\execute(), SpecialApiHelp\execute(), SpecialCategories\execute(), SpecialPreferences\execute(), SpecialStatistics\execute(), SpecialUserLogout\execute(), SpecialContributions\execute(), SpecialTrackingCategories\execute(), SpecialListGrants\execute(), SpecialExport\execute(), SpecialListGroupRights\execute(), SpecialAutoblockList\execute(), DeletedContributionsPage\execute(), SpecialListUsers\execute(), SpecialBlockList\execute(), SpecialUnblock\execute(), SpecialWhatLinksHere\execute(), SpecialVersion\execute(), SpecialPrefixindex\execute(), SpecialAllPages\execute(), SpecialPagesWithProp\execute(), SpecialChangeCredentials\execute(), UserrightsPage\execute(), SpecialEditWatchlist\execute(), FileDuplicateSearchPage\execute(), SpecialSearch\execute(), SpecialEmailUser\execute(), SpecialMergeHistory\execute(), SpecialUndelete\execute(), QueryPage\execute(), SpecialEditWatchlist\executeViewEditWatchlist(), SpecialEditTags\failure(), SpecialRevisionDelete\failure(), SpecialNewpages\feed(), QueryPage\feedDesc(), SpecialNewpages\feedItemDesc(), SpecialNewpages\filterLinks(), SpecialNewpages\form(), SpecialUndelete\formatFileRow(), SpecialListGroupRights\formatPermissions(), WantedQueryPage\formatResult(), FewestrevisionsPage\formatResult(), MostlinkedCategoriesPage\formatResult(), UnusedtemplatesPage\formatResult(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), ListDuplicatedFilesPage\formatResult(), WantedCategoriesPage\formatResult(), BrokenRedirectsPage\formatResult(), MostlinkedPage\formatResult(), UnwatchedpagesPage\formatResult(), DoubleRedirectsPage\formatResult(), ShortPagesPage\formatResult(), SpecialPagesWithProp\formatResult(), MIMEsearchPage\formatResult(), LinkSearchPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialUndelete\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialStatistics\formatRow(), SpecialNewpages\formatRow(), SpecialStatistics\formatRowHeader(), SpecialLog\getActionButtons(), SpecialProtectedpages\getCascadeCheck(), MostimagesPage\getCellHtml(), SpecialEditWatchlist\getClearForm(), SpecialCiteThisPage\getContentText(), SpecialVersion\getCreditsForExtension(), SpecialInterwiki\getDescription(), SpecialEmailUser\getDescription(), SpecialUserLogin\getDescription(), SpecialCreateAccount\getDescription(), SpecialDiff\getDescription(), SpecialEditTags\getDescription(), getDescription(), SpecialUpload\getDupeWarning(), SpecialStatistics\getEditStats(), SpecialVersion\getEntryPointInfo(), UncategorizedCategoriesPage\getExceptionList(), SpecialProtectedpages\getExpiryCheck(), SpecialVersion\getExtensionCredits(), SpecialVersion\getExternalLibraries(), SpecialRecentChangesLinked\getExtraOptions(), LoginSignupSpecialPage\getFieldDefinitions(), SpecialUndelete\getFileComment(), SpecialUndelete\getFileUser(), SpecialWhatLinksHere\getFilterPanel(), getFinalGroupName(), FormSpecialPage\getForm(), SpecialContributions\getForm(), SpecialPageLanguage\getFormFields(), SpecialEmailUser\getFormFields(), SpecialChangeEmail\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialResetTokens\getFormFields(), SpecialChangeContentModel\getFormFields(), SpecialBlock\getFormFields(), SpecialRedirect\getFormFields(), SpecialStatistics\getGroupStats(), SpecialActiveUsers\getIntroText(), SpecialProtectedtitles\getLevelMenu(), SpecialProtectedpages\getLevelMenu(), SpecialImport\getMappingFormPart(), SpecialProtectedpages\getNamespaceMenu(), SpecialProtectedtitles\getNamespaceMenu(), SpecialEditWatchlist\getNormalForm(), RandomPage\getNsList(), SpecialStatistics\getOtherStats(), DeadendPagesPage\getPageHeader(), LonelyPagesPage\getPageHeader(), UnusedCategoriesPage\getPageHeader(), WantedFilesPage\getPageHeader(), DoubleRedirectsPage\getPageHeader(), BrokenRedirectsPage\getPageHeader(), UnusedimagesPage\getPageHeader(), UnusedtemplatesPage\getPageHeader(), LoginSignupSpecialPage\getPageHtml(), SpecialStatistics\getPageStats(), SpecialVersion\getParserFunctionHooks(), SpecialVersion\getParserTags(), SpecialWhatLinksHere\getPrevNext(), SpecialEditWatchlist\getRawForm(), SpecialProtectedpages\getRedirectCheck(), SpecialProtectedpages\getSizeLimit(), SpecialVersion\getSkinCredits(), DeletedContributionsPage\getSubTitle(), SpecialJavaScriptTest\getSummaryHtml(), MediaStatisticsPage\getTableHeaderRow(), SpecialProtectedpages\getTypeMenu(), SpecialUpload\getUploadForm(), SpecialStatistics\getUserStats(), SpecialVersion\getWgHooks(), UserrightsPage\groupCheckboxes(), ChangesListSpecialPage\includeRcFiltersApp(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), SpecialWhatLinksHere\listItem(), LoginSignupSpecialPage\load(), LoginSignupSpecialPage\mainLoginForm(), SpecialExpandTemplates\makeForm(), UserrightsPage\makeGroupNameList(), LoginSignupSpecialPage\makeLanguageSelector(), SpecialExpandTemplates\makeOutput(), SpecialInterwiki\makeTable(), WantedQueryPage\makeWlhLink(), MostlinkedTemplatesPage\makeWlhLink(), SpecialMergeHistory\merge(), SpecialRecentChanges\namespaceFilterForm(), SpecialPrefixindex\namespacePrefixForm(), NukeHooks\nukeContributionsLinks(), SpecialLockdb\onSubmit(), SpecialRandomInCategory\onSubmit(), SpecialChangeContentModel\onSubmit(), SpecialUnlockdb\onSuccess(), SpecialLockdb\onSuccess(), SpecialChangeContentModel\onSuccess(), SpecialBotPasswords\onSuccess(), SpecialVersion\openExtType(), SpecialRecentChanges\optionsPanel(), outputHeader(), MediaStatisticsPage\outputMediaType(), SpecialListGroupRights\outputNamespaceProtectionInfo(), ChangesListSpecialPage\outputNoResults(), SpecialSpecialpages\outputPageList(), MediaStatisticsPage\outputResults(), SpecialGadgetUsage\outputResults(), SpecialEditWatchlist\outputSubtitle(), MediaStatisticsPage\outputTableEnd(), MediaStatisticsPage\outputTableRow(), SpecialGadgetUsage\outputTableStart(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialUpload\processUpload(), SpecialUpload\processVerificationError(), SpecialNuke\promptForm(), SpecialUserLogin\setHeaders(), SpecialNewFiles\setTopText(), SpecialRecentChanges\setTopText(), SpecialWatchlist\setTopText(), SpecialSearch\setupPage(), SpecialTags\showActivateDeactivateForm(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialTags\showDeleteTagForm(), UserrightsPage\showEditUserGroupsForm(), SpecialGadgets\showExportForm(), SpecialUndelete\showFileConfirmationForm(), SpecialInterwiki\showForm(), MovePageForm\showForm(), SpecialEditTags\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialWatchlist\showHideCheck(), SpecialMergeHistory\showHistory(), SpecialUndelete\showHistory(), SpecialExpandTemplates\showHtmlPreview(), SpecialAutoblockList\showList(), SpecialBookSources\showList(), SpecialBlockList\showList(), SpecialInterwiki\showList(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), SpecialMergeHistory\showMergeForm(), SpecialProtectedpages\showOptions(), SpecialProtectedtitles\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\submitClear(), SpecialEditWatchlist\submitNormal(), SpecialEditWatchlist\submitRaw(), EmailConfirmation\submitSend(), SpecialLinkAccounts\success(), SpecialEditTags\success(), SpecialRevisionDelete\success(), SpecialCreateAccount\successfulAction(), SpecialUserLogin\successfulAction(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), SpecialUndelete\undelete(), SpecialEmailUser\userForm(), SpecialChangeContentModel\validateTitle(), and SpecialWhatLinksHere\whatlinkshereForm().
SpecialPage::outputHeader | ( | $summaryMessageKey = '' | ) |
Outputs a summary message on top of special pages Per default the message key is the canonical name of the special page May be overridden, i.e.
by extensions to stick with the naming conventions for message keys: 'extensionname-xxx'
string | $summaryMessageKey | Message key of the summary |
Definition at line 583 of file SpecialPage.php.
References $wgContLang, getName(), getOutput(), global, including(), and msg().
Referenced by SpecialRedirect\alterForm(), SpecialNuke\execute(), SpecialListFiles\execute(), SpecialLog\execute(), SpecialNewFiles\execute(), SpecialSpecialpages\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialCategories\execute(), SpecialInterwiki\execute(), SpecialPreferences\execute(), SpecialUnlinkAccounts\execute(), SpecialLinkAccounts\execute(), SpecialUserLogout\execute(), SpecialContributions\execute(), SpecialTrackingCategories\execute(), SpecialListGrants\execute(), SpecialExport\execute(), SpecialActiveUsers\execute(), SpecialListGroupRights\execute(), SpecialAutoblockList\execute(), SpecialBookSources\execute(), DeletedContributionsPage\execute(), SpecialListUsers\execute(), SpecialBlockList\execute(), SpecialUnblock\execute(), SpecialAllMessages\execute(), SpecialWhatLinksHere\execute(), SpecialComparePages\execute(), SpecialVersion\execute(), SpecialPrefixindex\execute(), SpecialTags\execute(), LinkSearchPage\execute(), SpecialAllPages\execute(), SpecialPagesWithProp\execute(), SpecialImport\execute(), SpecialEditTags\execute(), MovePageForm\execute(), SpecialChangeCredentials\execute(), UserrightsPage\execute(), SpecialEditWatchlist\execute(), FileDuplicateSearchPage\execute(), SpecialEmailUser\execute(), SpecialMergeHistory\execute(), SpecialRevisionDelete\execute(), SpecialNewpages\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), MIMEsearchPage\execute(), ChangesListSpecialPage\execute(), execute(), QueryPage\execute(), SpecialSearch\setupPage(), SpecialPermanentLink\showNoRedirectPage(), SpecialDiff\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 475 of file SpecialPage.php.
Referenced by SpecialPagesWithProp\prefixSearchSubpages(), and 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 448 of file SpecialPage.php.
References $t, $title, and Title\newFromText().
Referenced by SpecialChangeContentModel\prefixSearchSubpages(), SpecialRecentChangesLinked\prefixSearchSubpages(), SpecialPageLanguage\prefixSearchSubpages(), SpecialPrefixindex\prefixSearchSubpages(), SpecialAllPages\prefixSearchSubpages(), SpecialWhatLinksHere\prefixSearchSubpages(), MovePageForm\prefixSearchSubpages(), and SpecialUndelete\prefixSearchSubpages().
SpecialPage::prefixSearchSubpages | ( | $search, | |
$limit, | |||
$offset | |||
) |
Return an array of subpages beginning with $search that this special page will accept.
For example, if a page supports subpages "foo", "bar" and "baz" (as in Special:PageName/foo, etc.):
prefixSearchSubpages( "ba" )
should return array( "bar", "baz" )
prefixSearchSubpages( "f" )
should return array( "foo" )
prefixSearchSubpages( "z" )
should return array()
prefixSearchSubpages( "" )
should return array( foo", "bar", "baz" )
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 SpecialUndelete, SpecialBlock, UserrightsPage, MovePageForm, SpecialContributions, SpecialWhatLinksHere, SpecialEmailUser, SpecialRenameuser, SpecialAllPages, SpecialNuke, SpecialPrefixindex, SpecialPageLanguage, SpecialRecentChangesLinked, SpecialChangeContentModel, SpecialUnblock, FileDuplicateSearchPage, DeletedContributionsPage, SpecialPagesWithProp, SpecialListFiles, and SpecialCiteThisPage.
Definition at line 420 of file SpecialPage.php.
References getSubpagesForPrefixSearch(), and prefixSearchArray().
SpecialPage::requireLogin | ( | $reasonMsg = 'exception-nologin-text' , |
|
$titleMsg = 'exception-nologin' |
|||
) |
If the user is not logged in, throws UserNotLoggedIn error.
The user will be redirected to Special:Userlogin with the given message as an error on the form.
string | $reasonMsg | [optional] Message key to be displayed on login page |
string | $titleMsg | [optional] Passed on to UserNotLoggedIn constructor |
UserNotLoggedIn |
Definition at line 336 of file SpecialPage.php.
References getUser().
Referenced by SpecialChangeEmail\checkExecutePermissions(), SpecialPreferences\execute(), EmailConfirmation\execute(), SpecialWatchlist\execute(), SpecialBotPasswords\execute(), SpecialResetTokens\execute(), and SpecialEditWatchlist\execute().
|
final |
Entry point.
string | null | $subPage |
Definition at line 505 of file SpecialPage.php.
References afterExecute(), beforeExecute(), execute(), and Hooks\run().
SpecialPage::setContext | ( | $context | ) |
Sets the context this SpecialPage is executed in.
IContextSource | $context |
Definition at line 638 of file SpecialPage.php.
References $context.
Referenced by SkinTemplate\buildNavUrls(), ApiQueryUsers\execute(), SpecialPageExecutor\executeSpecialPage(), 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 484 of file SpecialPage.php.
References $out, getConfig(), getDescription(), getOutput(), and getRobotPolicy().
Referenced by CaptchaSpecialPage\execute(), SpecialNuke\execute(), SpecialCiteThisPage\execute(), SpecialRenameuser\execute(), SpecialListFiles\execute(), SpecialApiSandbox\execute(), SpecialJavaScriptTest\execute(), SpecialLog\execute(), SpecialBlankpage\execute(), SpecialNewFiles\execute(), SpecialSpecialpages\execute(), SpecialCategories\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialUnlinkAccounts\execute(), SpecialUserLogout\execute(), SpecialLinkAccounts\execute(), SpecialInterwiki\execute(), SpecialContributions\execute(), SpecialPreferences\execute(), SpecialStatistics\execute(), SpecialListGrants\execute(), EmailInvalidation\execute(), SpecialTrackingCategories\execute(), SpecialExport\execute(), SpecialListGroupRights\execute(), SpecialActiveUsers\execute(), SpecialAutoblockList\execute(), SpecialGoToInterwiki\execute(), SpecialBookSources\execute(), SpecialListUsers\execute(), DeletedContributionsPage\execute(), SpecialBlockList\execute(), SpecialUnblock\execute(), SpecialAllMessages\execute(), SpecialWhatLinksHere\execute(), SpecialComparePages\execute(), EmailConfirmation\execute(), SpecialVersion\execute(), SpecialTags\execute(), SpecialPrefixindex\execute(), LinkSearchPage\execute(), SpecialExpandTemplates\execute(), RandomPage\execute(), SpecialAllPages\execute(), SpecialPagesWithProp\execute(), SpecialImport\execute(), SpecialEditTags\execute(), MovePageForm\execute(), SpecialChangeCredentials\execute(), UserrightsPage\execute(), SpecialEditWatchlist\execute(), FileDuplicateSearchPage\execute(), SpecialMergeHistory\execute(), SpecialEmailUser\execute(), SpecialRevisionDelete\execute(), SpecialNewpages\execute(), FormSpecialPage\execute(), SpecialUndelete\execute(), SpecialUpload\execute(), MIMEsearchPage\execute(), LoginSignupSpecialPage\execute(), ChangesListSpecialPage\execute(), execute(), QueryPage\execute(), SpecialSearch\setupPage(), SpecialGadgets\showExportForm(), SpecialGadgets\showMainForm(), SpecialPermanentLink\showNoRedirectPage(), SpecialDiff\showNoRedirectPage(), and SpecialUploadStash\showUploads().
SpecialPage::setLinkRenderer | ( | LinkRenderer | $linkRenderer | ) |
\\MediaWiki\\Linker\\LinkRenderer | $linkRenderer |
Definition at line 872 of file SpecialPage.php.
References $linkRenderer.
SpecialPage::setListed | ( | $listed | ) |
Set whether this page is listed in Special:Specialpages, at run-time.
bool | $listed |
Definition at line 178 of file SpecialPage.php.
References wfSetVar().
SpecialPage::userCanExecute | ( | User | $user | ) |
Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction).
Can be overridden by sub- classes with more complicated permissions schemes.
User | $user | The user to check |
Reimplemented in SpecialUndelete, SpecialUpload, SpecialPasswordReset, and SpecialCreateAccount.
Definition at line 287 of file SpecialPage.php.
References $user.
Referenced by checkPermissions(), and QueryPage\execute().
|
protected |
Call wfTransactionalTimeLimit() if this request was POSTed.
Definition at line 850 of file SpecialPage.php.
References getRequest(), and wfTransactionalTimeLimit().
Referenced by SpecialRenameuser\execute(), SpecialImport\execute(), SpecialUploadStash\execute(), MovePageForm\execute(), SpecialMergeHistory\execute(), SpecialRevisionDelete\execute(), SpecialUndelete\execute(), and SpecialUpload\execute().
|
private |
Definition at line 66 of file SpecialPage.php.
Referenced by SpecialEditWatchlist\buildRemoveLine(), SpecialEditWatchlist\buildTools(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialTrackingCategories\execute(), SpecialListGroupRights\execute(), SpecialNewpages\filterLinks(), WantedQueryPage\formatResult(), FewestrevisionsPage\formatResult(), UnusedtemplatesPage\formatResult(), AncientPagesPage\formatResult(), MostcategoriesPage\formatResult(), MostinterwikisPage\formatResult(), BrokenRedirectsPage\formatResult(), MostlinkedPage\formatResult(), UnwatchedpagesPage\formatResult(), DoubleRedirectsPage\formatResult(), ListredirectsPage\formatResult(), ShortPagesPage\formatResult(), MIMEsearchPage\formatResult(), FileDuplicateSearchPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialNewpages\formatRow(), SpecialEmailUser\getFormFields(), SpecialBotPasswords\getFormFields(), SpecialStatistics\getGroupStats(), getLinkRenderer(), SpecialStatistics\getPageStats(), DeletedContributionsPage\getSubTitle(), SpecialContributions\getUserLinks(), SpecialVersion\listAuthors(), SpecialNuke\listForm(), MostlinkedPage\makeWlhLink(), SpecialMergeHistory\merge(), SpecialListGroupRights\outputNamespaceProtectionInfo(), MediaStatisticsPage\outputTableRow(), setLinkRenderer(), SpecialAllPages\showChunk(), SpecialEditTags\showConvenienceLinks(), SpecialRevisionDelete\showConvenienceLinks(), SpecialUndelete\showList(), SpecialGadgets\showMainForm(), SpecialSearch\showResults(), SpecialChangeCredentials\showSubpageList(), MovePageForm\showSubpagesList(), SpecialEditWatchlist\showTitles(), SpecialUploadStash\showUploads(), SpecialUpload\showUploadWarning(), and SpecialWhatLinksHere\wlhLink().
|
protected |
|
protected |
Definition at line 55 of file SpecialPage.php.
Referenced by isIncludable().
|
protected |
Definition at line 52 of file SpecialPage.php.
|
private |
Definition at line 49 of file SpecialPage.php.
Referenced by isListed().
|
private |
Definition at line 42 of file SpecialPage.php.
Referenced by getLocalName().
|
protected |
Definition at line 39 of file SpecialPage.php.
Referenced by SpecialCachedPage\getCacheKey(), and getName().
|
protected |
Definition at line 46 of file SpecialPage.php.
Referenced by getRestriction().