MediaWiki
REL1_21
|
Parent special page class, also static functions for handling the special page list. More...
Public Member Functions | |
__call ($fName, $a) | |
Use PHP's magic __call handler to get calls to the old PHP4 constructor because PHP E_STRICT yells at you for having __construct() and SpecialPage() | |
__construct ($name= '', $restriction= '', $listed=true, $function=false, $file= 'default', $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. | |
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. | |
execute ($subPage) | |
Default execute method Checks user permissions, calls the function given in mFunction. | |
file ($x=null) | |
These mutators are very evil, as the relevant variables should not mutate. | |
func ($x=null) | |
These mutators are very evil, as the relevant variables should not mutate. | |
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. | |
getFile () | |
Get the file which will be included by SpecialPage::execute() if your extension is still stuck in the past and hasn't overridden the execute() method. | |
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. | |
getLang () | |
Shortcut to get user's language. | |
getLanguage () | |
Shortcut to get user's language. | |
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. | |
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. | |
includable ($x=null) | |
These mutators are very evil, as the relevant variables should not mutate. | |
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. | |
msg () | |
Wrapper around wfMessage that sets the current context. | |
name ($x=null) | |
These mutators are very evil, as the relevant variables should not mutate. | |
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. | |
restriction ($x=null) | |
These mutators are very evil, as the relevant variables should not mutate. | |
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! | |
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 | executePath (&$title, IContextSource &$context, $including=false) |
Execute a special page path. | |
static | exists ($name) |
Check if a given name exist as a special page or as a special page alias. | |
static | getGroup (&$page) |
Get the group that the special page belongs in on Special:SpecialPage. | |
static | getLocalNameFor ($name, $subpage=false) |
Get the local name for a specified canonical name. | |
static | getPage ($name) |
Find the object with a given name and return it (or NULL) | |
static | getPageByAlias ($alias) |
Get a special page with a given localised name, or NULL if there is no such special page. | |
static | getRegularPages () |
Return categorised listable special pages for all users. | |
static | getRestrictedPages () |
Return categorised listable special pages which are available for the current user, but not for everyone. | |
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. | |
static | getTitleForAlias ($alias) |
Get a title for a given alias. | |
static | getUsablePages (User $user=null) |
Return categorised listable special pages which are available for the current user, and everyone. | |
static | initAliasList () |
static | initList () |
Initialise the special page list This must be called before accessing SpecialPage::$mList. | |
static | removePage ($name) |
Remove a special page from the list Formerly used to disable expensive or dangerous special pages. | |
static | resolveAlias ($alias) |
Given a special page alias, return the special page name. | |
static | resolveAliasWithSubpage ($alias) |
Given a special page name with a possible subpage, return an array where the first element is the special page name and the second is the subpage. | |
static | setGroup ($page, $group) |
Add a page to a certain display group for Special:SpecialPages. | |
Protected Member Functions | |
addFeedLinks ($params) | |
Adds RSS/atom links. | |
afterExecute ($subPage) | |
Gets called after. | |
beforeExecute ($subPage) | |
Gets called before. | |
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'. | |
Protected Attributes | |
IContextSource | $mContext |
Current request context. | |
$mIncludable | |
$mIncluding | |
$mName | |
Private Member Functions | |
init ($name, $restriction, $listed, $function, $file, $includable) | |
Do the real work for the constructor, mainly so __call() can intercept calls to SpecialPage() | |
Private Attributes | |
$mFile | |
$mFunction | |
$mListed | |
$mLocalName | |
$mRestriction |
Parent special page class, also static functions for handling the special page list.
Definition at line 29 of file SpecialPage.php.
SpecialPage::__construct | ( | $ | name = '' , |
$ | restriction = '' , |
||
$ | listed = true , |
||
$ | function = false , |
||
$ | file = 'default' , |
||
$ | 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 |
$function | Callback|Bool: function called by execute(). By default it is constructed from $name | |
string | $file | file which is included by execute(). It is also constructed from $name by default |
bool | $includable | whether the page can be included in normal pages |
Definition at line 314 of file SpecialPage.php.
SpecialPage::__call | ( | $ | fName, |
$ | a | ||
) |
Use PHP's magic __call handler to get calls to the old PHP4 constructor because PHP E_STRICT yells at you for having __construct() and SpecialPage()
string | $fName | Name of called method |
array | $a | Arguments to the method |
MWException |
Definition at line 357 of file SpecialPage.php.
SpecialPage::addFeedLinks | ( | $ | params | ) | [protected] |
Adds RSS/atom links.
$params | array |
Definition at line 841 of file SpecialPage.php.
Referenced by SpecialWatchlist\execute(), and SpecialContributions\execute().
SpecialPage::afterExecute | ( | $ | subPage | ) | [protected] |
Gets called after.
$subPage | string|null |
Reimplemented in SpecialCachedPage.
Definition at line 644 of file SpecialPage.php.
SpecialPage::beforeExecute | ( | $ | subPage | ) | [protected] |
Gets called before.
$subPage | string|null |
Definition at line 633 of file SpecialPage.php.
Checks if userCanExecute, and if not throws a PermissionsError.
Definition at line 565 of file SpecialPage.php.
Referenced by SpecialUnblock\execute(), SpecialEditWatchlist\execute(), SpecialUploadStash\execute(), SpecialMergeHistory\execute(), and SpecialRevisionDelete\execute().
If the wiki is currently in readonly mode, throws a ReadOnlyError.
ReadOnlyError |
Definition at line 577 of file SpecialPage.php.
Referenced by SpecialPreferences\execute(), SpecialUnblock\execute(), SpecialChangePassword\execute(), MovePageForm\execute(), EmailConfirmation\execute(), SpecialImport\execute(), SpecialEditWatchlist\execute(), UserrightsPage\execute(), SpecialMergeHistory\execute(), SpecialRevisionDelete\execute(), and EmailInvalidation\execute().
Output an error message telling the user what access level they have to have.
Definition at line 556 of file SpecialPage.php.
Referenced by DeletedContributionsPage\execute().
SpecialPage::execute | ( | $ | subPage | ) |
Default execute method Checks user permissions, calls the function given in mFunction.
This must be overridden by subclasses; it will be made abstract in a future version
$subPage | string|null |
Reimplemented in RedirectSpecialPage, FormSpecialPage, SpecialUndelete, QueryPage, SpecialListUsers, DeletedContributionsPage, SpecialActiveUsers, EmailInvalidation, LoginForm, SpecialRecentChanges, SpecialUpload, SpecialNewpages, SpecialRevisionDelete, FileDuplicateSearchPage, SpecialEmailUser, SpecialMergeHistory, SpecialSearch, SpecialAllpages, MIMEsearchPage, UserrightsPage, SpecialUploadStash, SpecialEditWatchlist, SpecialChangeEmail, RandomPage, SpecialImport, SpecialBookSources, SpecialVersion, SpecialComparePages, SpecialAllmessages, SpecialLog, SpecialWhatLinksHere, EmailConfirmation, LinkSearchPage, SpecialListGroupRights, MovePageForm, SpecialPagesWithProp, SpecialBlockList, SpecialJavaScriptTest, SpecialChangePassword, SpecialExport, SpecialPrefixindex, SpecialStatistics, SpecialUnblock, WantedPagesPage, SpecialContributions, SpecialProtectedpages, SpecialProtectedtitles, SpecialWatchlist, WithoutInterwikiPage, SpecialBlockme, SpecialFilepath, SpecialSpecialpages, SpecialTags, SpecialUserlogout, SpecialBlankpage, SpecialPreferences, SpecialCategories, SpecialListFiles, and SpecialNewFiles.
Definition at line 656 of file SpecialPage.php.
static SpecialPage::executePath | ( | &$ | title, |
IContextSource &$ | context, | ||
$ | including = false |
||
) | [static] |
Execute a special page path.
The path may contain parameters, e.g. Special:Name/Params Extracts the special page name and call the execute method, passing the parameters
Returns a title object if the page is redirected, false if there was no such special page, and true if it was successful.
$title | Title object |
$context | IContextSource |
$including | Bool output is being captured for use in {{special:whatever}} |
Definition at line 232 of file SpecialPage.php.
static SpecialPage::exists | ( | $ | name | ) | [static] |
Check if a given name exist as a special page or as a special page alias.
string | $name | name of a special page |
Definition at line 151 of file SpecialPage.php.
Referenced by SpecialBlock\maybeAlterFormDefaults().
SpecialPage::file | ( | $ | x = null | ) |
These mutators are very evil, as the relevant variables should not mutate.
So don't use them.
$x | Mixed |
Definition at line 474 of file SpecialPage.php.
Referenced by FileDuplicateSearchPage\execute(), and SpecialVersion\getSvnInfo().
SpecialPage::func | ( | $ | x = null | ) |
These mutators are very evil, as the relevant variables should not mutate.
So don't use them.
$x | Mixed |
Definition at line 465 of file SpecialPage.php.
Gets the context this SpecialPage is executed in.
Definition at line 732 of file SpecialPage.php.
Referenced by SpecialImport\doImport(), SpecialNewFiles\execute(), SpecialListFiles\execute(), SpecialCategories\execute(), SpecialPreferences\execute(), SpecialWatchlist\execute(), SpecialContributions\execute(), SpecialUnblock\execute(), SpecialChangePassword\execute(), SpecialBlockList\execute(), SpecialPagesWithProp\execute(), SpecialComparePages\execute(), SpecialEmailUser\execute(), DeletedContributionsPage\execute(), SpecialListUsers\execute(), PageQueryPage\formatResult(), PopularPagesPage\formatResult(), FewestrevisionsPage\formatResult(), UnwatchedpagesPage\formatResult(), MostlinkedCategoriesPage\formatResult(), ShortPagesPage\formatResult(), MostcategoriesPage\formatResult(), MostlinkedPage\formatResult(), MostinterwikisPage\formatResult(), MostlinkedTemplatesPage\formatResult(), SpecialProtectedtitles\formatRow(), SpecialProtectedpages\formatRow(), SpecialRevisionDelete\getList(), SpecialEditWatchlist\getNormalForm(), SpecialEditWatchlist\getRawForm(), DeletedContributionsPage\getSubTitle(), SpecialContributions\getUserLinks(), LoginForm\processLogin(), SpecialLog\show(), SpecialPreferences\showResetForm(), SpecialUploadStash\showUploads(), and SpecialRecentChanges\webOutput().
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. Messages can be added at run-time, see MessageCache.php.
Reimplemented in LoginForm, and SpecialEmailUser.
Definition at line 702 of file SpecialPage.php.
Referenced by SpecialNewpages\feedTitle().
Get the file which will be included by SpecialPage::execute() if your extension is still stuck in the past and hasn't overridden the execute() method.
No modern code should want or need to know this.
Definition at line 399 of file SpecialPage.php.
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 861 of file SpecialPage.php.
Return the full title, including $par.
Definition at line 809 of file SpecialPage.php.
Referenced by SpecialRevisionDelete\execute(), and LoginForm\execute().
static SpecialPage::getGroup | ( | &$ | page | ) | [static] |
Get the group that the special page belongs in on Special:SpecialPage.
$page | SpecialPage |
Definition at line 126 of file SpecialPage.php.
SpecialPage::getGroupName | ( | ) | [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 SpecialUndelete, LoginForm, SpecialSearch, SpecialBlock, SpecialRecentChanges, SpecialVersion, SpecialUpload, MovePageForm, UserrightsPage, SpecialRevisionDelete, SpecialExport, SpecialContributions, SpecialAllpages, DeletedContributionsPage, SpecialWatchlist, SpecialNewpages, SpecialWhatLinksHere, SpecialMergeHistory, SpecialListUsers, SpecialImport, SpecialEmailUser, SpecialStatistics, SpecialPasswordReset, SpecialProtectedpages, SpecialChangePassword, SpecialPrefixindex, SpecialChangeEmail, SpecialActiveUsers, LinkSearchPage, FileDuplicateSearchPage, SpecialUnblock, SpecialListGroupRights, SpecialBlockList, SpecialLog, SpecialProtectedtitles, SpecialBookSources, SpecialComparePages, DoubleRedirectsPage, RandomPage, DisambiguationsPage, SpecialJavaScriptTest, BrokenRedirectsPage, MIMEsearchPage, SpecialPagesWithProp, ListredirectsPage, MostlinkedTemplatesPage, MostinterwikisPage, ShortPagesPage, MostlinkedPage, SpecialLockdb, MostcategoriesPage, WithoutInterwikiPage, MostlinkedCategoriesPage, UnwatchedpagesPage, FewestrevisionsPage, SpecialTags, WantedPagesPage, SpecialPreferences, WantedFilesPage, SpecialFilepath, UnusedtemplatesPage, SpecialUnlockdb, DeadendPagesPage, LonelyPagesPage, UnusedimagesPage, SpecialAllmessages, PopularPagesPage, WantedCategoriesPage, AncientPagesPage, UncategorizedPagesPage, UnusedCategoriesPage, SpecialUserlogout, SpecialBlockme, UncategorizedImagesPage, MostimagesPage, WantedTemplatesPage, SpecialListFiles, SpecialCategories, SpecialNewFiles, LongPagesPage, and MostrevisionsPage.
Definition at line 898 of file SpecialPage.php.
Shortcut to get user's language.
Definition at line 788 of file SpecialPage.php.
Shortcut to get user's language.
Definition at line 799 of file SpecialPage.php.
Referenced by SpecialEditWatchlist\buildRemoveLine(), SpecialVersion\compare(), SpecialContributions\contributionsSub(), SpecialWatchlist\cutoffLinks(), SpecialWatchlist\daysLink(), SpecialWatchlist\execute(), SpecialBlockList\execute(), LinkSearchPage\execute(), FileDuplicateSearchPage\execute(), SpecialNewpages\filterLinks(), SpecialListGroupRights\formatPermissions(), WantedCategoriesPage\formatResult(), PopularPagesPage\formatResult(), AncientPagesPage\formatResult(), UnusedtemplatesPage\formatResult(), FewestrevisionsPage\formatResult(), UnwatchedpagesPage\formatResult(), MostlinkedCategoriesPage\formatResult(), ShortPagesPage\formatResult(), MostcategoriesPage\formatResult(), MIMEsearchPage\formatResult(), MostlinkedPage\formatResult(), BrokenRedirectsPage\formatResult(), MostinterwikisPage\formatResult(), MostlinkedTemplatesPage\formatResult(), ListredirectsPage\formatResult(), DoubleRedirectsPage\formatResult(), DisambiguationsPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialProtectedpages\formatRow(), SpecialStatistics\getEditStats(), SpecialVersion\getEntryPointInfo(), SpecialStatistics\getGroupStats(), SpecialStatistics\getMostViewedPages(), SpecialEditWatchlist\getNormalForm(), SpecialStatistics\getOtherStats(), SpecialStatistics\getPageStats(), DeletedContributionsPage\getSubTitle(), SpecialStatistics\getUserStats(), SpecialStatistics\getViewsStats(), SpecialWatchlist\hoursLink(), SpecialJavaScriptTest\initQUnitTesting(), SpecialVersion\listToText(), SpecialRecentChanges\optionsPanel(), SpecialNewpages\parseParams(), SpecialRevisionDelete\showConvenienceLinks(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), SpecialRevisionDelete\showForm(), EmailConfirmation\showRequestForm(), SpecialSearch\showResults(), MovePageForm\showSubpages(), and SpecialRevisionDelete\tryShowFile().
Get the localised name of the special page.
Definition at line 497 of file SpecialPage.php.
static SpecialPage::getLocalNameFor | ( | $ | name, |
$ | subpage = false |
||
) | [static] |
Get the local name for a specified canonical name.
$name | String |
$subpage | Mixed: boolean false, or string |
Definition at line 246 of file SpecialPage.php.
Get the name of this Special Page.
Definition at line 380 of file SpecialPage.php.
Referenced by SpecialRecentChanges\buildMainQueryConds(), RandomPage\execute(), SpecialEditWatchlist\execute(), SpecialEmailUser\getFormFields(), SpecialMypage\getRedirect(), SpecialMytalk\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), and SpecialLockdb\onSubmit().
Get the OutputPage being used for this instance.
Definition at line 757 of file SpecialPage.php.
Referenced by SpecialLog\addHeader(), SpecialRecentChanges\addRecentChangesJS(), SpecialRevisionDelete\addUsageText(), EmailConfirmation\attemptConfirm(), EmailInvalidation\attemptInvalidate(), SpecialRecentChanges\checkLastModified(), SpecialContributions\contributionsSub(), SpecialRecentChanges\doHeader(), SpecialImport\doImport(), SpecialRecentchangeslinked\doMainQuery(), LinkSearchPage\doQuery(), SpecialChangePassword\doReturnTo(), MovePageForm\doSubmit(), UserrightsPage\editUserGroupsForm(), SpecialChangePassword\error(), SpecialNewFiles\execute(), SpecialListFiles\execute(), SpecialCategories\execute(), SpecialBlankpage\execute(), SpecialPreferences\execute(), SpecialBlockme\execute(), SpecialSpecialpages\execute(), SpecialTags\execute(), SpecialUserlogout\execute(), SpecialFilepath\execute(), SpecialWatchlist\execute(), SpecialContributions\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialStatistics\execute(), SpecialUnblock\execute(), SpecialChangePassword\execute(), SpecialPrefixindex\execute(), SpecialExport\execute(), SpecialBlockList\execute(), SpecialJavaScriptTest\execute(), SpecialListGroupRights\execute(), LinkSearchPage\execute(), EmailConfirmation\execute(), SpecialVersion\execute(), SpecialBookSources\execute(), RandomPage\execute(), SpecialEditWatchlist\execute(), UserrightsPage\execute(), MIMEsearchPage\execute(), SpecialMergeHistory\execute(), SpecialEmailUser\execute(), FileDuplicateSearchPage\execute(), SpecialRevisionDelete\execute(), SpecialRecentChanges\execute(), LoginForm\execute(), DeletedContributionsPage\execute(), SpecialListUsers\execute(), RedirectSpecialPage\execute(), SpecialRevisionDelete\failure(), SpecialNewpages\form(), DeletedContributionsPage\getSubTitle(), SpecialJavaScriptTest\initQUnitTesting(), SpecialMergeHistory\merge(), SpecialUnlockdb\onSuccess(), SpecialLockdb\onSuccess(), SpecialSpecialpages\outputPageList(), UserrightsPage\saveUserGroups(), SpecialRecentchangeslinked\setBottomText(), SpecialRecentchangeslinked\setTopText(), SpecialRecentChanges\setTopText(), SpecialSearch\setupPage(), SpecialLog\show(), SpecialRevisionDelete\showConvenienceLinks(), SpecialSearch\showCreateLink(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFile(), SpecialUndelete\showFileConfirmationForm(), SpecialFilepath\showForm(), SpecialChangePassword\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showHistory(), SpecialBlockList\showList(), SpecialBookSources\showList(), MovePageForm\showLogFragment(), SpecialMergeHistory\showMergeForm(), SpecialPrefixindex\showPrefixChunk(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), SpecialSearch\showResults(), MovePageForm\showSubpages(), SpecialUploadStash\showUpload(), SpecialUploadStash\showUploads(), SpecialRevisionDelete\submit(), SpecialPreferences\submitReset(), SpecialRevisionDelete\success(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), and SpecialRecentChanges\webOutput().
static SpecialPage::getPage | ( | $ | name | ) | [static] |
Find the object with a given name and return it (or NULL)
$name | String |
Definition at line 163 of file SpecialPage.php.
static SpecialPage::getPageByAlias | ( | $ | alias | ) | [static] |
Get a special page with a given localised name, or NULL if there is no such special page.
$alias | String |
Definition at line 176 of file SpecialPage.php.
static SpecialPage::getRegularPages | ( | ) | [static] |
Return categorised listable special pages for all users.
Definition at line 201 of file SpecialPage.php.
Get the WebRequest being used for this instance.
Definition at line 747 of file SpecialPage.php.
Referenced by SpecialBlock\alterForm(), SpecialRevisionDelete\buildCheckBoxes(), SpecialImport\doImport(), SpecialChangePassword\doReturnTo(), SpecialListFiles\execute(), SpecialCategories\execute(), SpecialPreferences\execute(), SpecialBlockme\execute(), SpecialFilepath\execute(), SpecialUserlogout\execute(), SpecialWatchlist\execute(), WithoutInterwikiPage\execute(), SpecialContributions\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialUnblock\execute(), SpecialExport\execute(), SpecialChangePassword\execute(), SpecialPrefixindex\execute(), SpecialBlockList\execute(), SpecialPagesWithProp\execute(), MovePageForm\execute(), LinkSearchPage\execute(), SpecialLog\execute(), SpecialVersion\execute(), SpecialBookSources\execute(), SpecialImport\execute(), RandomPage\execute(), SpecialEditWatchlist\execute(), UserrightsPage\execute(), MIMEsearchPage\execute(), SpecialEmailUser\execute(), FileDuplicateSearchPage\execute(), SpecialRevisionDelete\execute(), SpecialRecentChanges\execute(), DeletedContributionsPage\execute(), SpecialRevisionDelete\extractBitParams(), SpecialRecentchangeslinked\feedSetup(), SpecialRecentChanges\feedSetup(), SpecialRecentChanges\getOptions(), SpecialVersion\IPInfo(), SpecialBlock\maybeAlterFormDefaults(), LoginForm\processLogin(), UserrightsPage\saveUserGroups(), SpecialBlock\setParameter(), SpecialNewpages\setup(), SpecialRecentChanges\setup(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFile(), SpecialChangePassword\showForm(), EmailConfirmation\showRequestForm(), SpecialRevisionDelete\submit(), and SpecialRevisionDelete\tryShowFile().
static SpecialPage::getRestrictedPages | ( | ) | [static] |
Return categorised listable special pages which are available for the current user, but not for everyone.
Definition at line 213 of file SpecialPage.php.
Get the permission that a user must have to execute this page.
Definition at line 388 of file SpecialPage.php.
static SpecialPage::getSafeTitleFor | ( | $ | name, |
$ | subpage = false |
||
) | [static] |
Get a localised Title object for a page name with a possibly unvalidated subpage.
$name | String | |
string | Bool | $subpage | subpage string, or false to not use a subpage |
Definition at line 276 of file SpecialPage.php.
Referenced by Skin\makeSpecialUrl(), Skin\makeSpecialUrlSubpage(), and NostalgiaTemplate\topLinks().
Shortcut to get the skin being used for this instance.
Definition at line 777 of file SpecialPage.php.
Referenced by SpecialEditWatchlist\buildRemoveLine(), SpecialContributions\execute(), DeletedContributionsPage\execute(), SpecialBlock\setParameter(), and SpecialLog\show().
SpecialPage::getTitle | ( | $ | subpage = false | ) |
Get a self-referential title object.
$subpage | String|Bool |
Definition at line 712 of file SpecialPage.php.
Referenced by SpecialWatchlist\daysLink(), SpecialRecentChanges\doHeader(), SpecialPreferences\execute(), SpecialWatchlist\execute(), SpecialExport\execute(), SpecialJavaScriptTest\execute(), SpecialPagesWithProp\execute(), LinkSearchPage\execute(), EmailConfirmation\execute(), SpecialImport\execute(), SpecialEditWatchlist\execute(), MIMEsearchPage\execute(), SpecialEmailUser\execute(), FileDuplicateSearchPage\execute(), SpecialNewpages\filterLinks(), SpecialNewpages\form(), SpecialRecentchangeslinked\getFeedObject(), SpecialRecentChanges\getFeedObject(), SpecialContributions\getForm(), DeletedContributionsPage\getForm(), SpecialJavaScriptTest\getFrameworkListHtml(), SpecialEditWatchlist\getNormalForm(), WithoutInterwikiPage\getPageHeader(), SpecialEditWatchlist\getRawForm(), UserrightsPage\getSuccessURL(), SpecialWatchlist\hoursLink(), SpecialBookSources\makeForm(), SpecialRecentChanges\makeOptionsLink(), SpecialPrefixindex\namespacePrefixForm(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), SpecialFilepath\showForm(), SpecialChangePassword\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialWatchlist\showHideLink(), SpecialMergeHistory\showHistory(), SpecialMergeHistory\showMergeForm(), SpecialProtectedtitles\showOptions(), SpecialProtectedpages\showOptions(), SpecialPrefixindex\showPrefixChunk(), EmailConfirmation\showRequestForm(), SpecialPreferences\showResetForm(), SpecialSearch\showResults(), SpecialUploadStash\showUploads(), SpecialPreferences\submitReset(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), and SpecialEmailUser\userForm().
static SpecialPage::getTitleFor | ( | $ | name, |
$ | subpage = false , |
||
$ | fragment = '' |
||
) | [static] |
Get a localised Title object for a specified special page name.
$name | String | |
string | Bool | $subpage | subpage string, or false to not use a subpage |
string | $fragment | the link fragment (after the "#") |
MWException |
Definition at line 260 of file SpecialPage.php.
Referenced by EmailConfirmation\attemptConfirm(), Linker\blockLink(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SpecialEditWatchlist\buildRemoveLine(), SpecialEditWatchlist\buildTools(), Title\checkReadPermissions(), SpecialTags\doTagRow(), Linker\emailLink(), LegacyTemplate\emailUserLink(), ApiCreateAccount\execute(), SpecialUserlogout\execute(), SpecialWatchlist\execute(), ApiFeedContributions\execute(), SpecialBlockList\execute(), SpecialListGroupRights\execute(), EmailConfirmation\execute(), ApiFeedWatchlist\execute(), SpecialEditWatchlist\execute(), SpecialRevisionDelete\execute(), UnusedtemplatesPage\formatResult(), SpecialProtectedpages\formatRow(), DeletedContribsPager\formatRow(), BlockListPager\formatValue(), PreferencesForm\getButtons(), InfoAction\getContributors(), HistoryAction\getDescription(), RevDel_ArchiveItem\getDiffLink(), SpecialStatistics\getGroupStats(), RevDel_LogItem\getHTML(), RevDel_ArchivedFileItem\getLink(), SpecialStatistics\getPageStats(), SpecialRedirectToSpecial\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), SpecialLog\getRevisionButton(), RevDel_ArchiveItem\getRevisionLink(), Skin\getSearchLink(), DeletedContributionsPage\getSubTitle(), ImageListPager\getTitle(), SpecialPageFactory\getTitleForAlias(), Skin\getUndeleteLink(), LegacyTemplate\getUploadLink(), Linker\getUploadUrl(), SpecialContributions\getUserLinks(), SpecialStatistics\getUserStats(), ImageHistoryList\imageHistoryLine(), CreditsAction\link(), MostlinkedPage\makeWlhLink(), MostlinkedTemplatesPage\makeWlhLink(), LegacyTemplate\moveThisPage(), LegacyTemplate\nameAndLogin(), Linker\normaliseSpecialPage(), MarkpatrolledAction\onView(), SkinTemplate\outputPage(), InfoAction\pageInfo(), SpecialBlock\postText(), Preferences\profilePreferences(), ManualLogEntry\publish(), StandardTemplate\quickBar(), Linker\revDeleteLink(), SpecialRevisionDelete\showConvenienceLinks(), SpecialSearch\showResults(), CoreParserFunctions\special(), Linker\specialLink(), ExtraParserTest\testTrackingCategorySpecial(), LegacyTemplate\userContribsLink(), Linker\userLink(), Linker\userToolLinks(), LegacyTemplate\watchPageLinksLink(), wfProxyCheck(), and LegacyTemplate\whatLinksHere().
static SpecialPage::getTitleForAlias | ( | $ | alias | ) | [static] |
Get a title for a given alias.
$alias | String |
Definition at line 292 of file SpecialPage.php.
static SpecialPage::getUsablePages | ( | User $ | user = null | ) | [static] |
Return categorised listable special pages which are available for the current user, and everyone.
$user | User object to check permissions, $wgUser will be used if not provided |
Definition at line 190 of file SpecialPage.php.
Referenced by SpecialSpecialpages\getPageGroups().
Shortcut to get the User executing this instance.
Definition at line 767 of file SpecialPage.php.
Referenced by UserrightsPage\addLogEntry(), SpecialRevisionDelete\addUsageText(), EmailConfirmation\attemptConfirm(), EmailInvalidation\attemptInvalidate(), SpecialChangePassword\attemptReset(), SpecialRecentChanges\buildMainQueryConds(), UserrightsPage\changeableGroups(), SpecialRecentChanges\checkLastModified(), SpecialEditWatchlist\cleanupWatchlist(), SpecialEditWatchlist\clearWatchlist(), SpecialWatchlist\countItems(), SpecialImport\doImport(), SpecialRecentchangeslinked\doMainQuery(), SpecialRecentChanges\doMainQuery(), UserrightsPage\doSaveUserGroups(), MovePageForm\doSubmit(), SpecialPreferences\execute(), SpecialUserlogout\execute(), SpecialWatchlist\execute(), SpecialContributions\execute(), SpecialChangePassword\execute(), MovePageForm\execute(), EmailConfirmation\execute(), SpecialLog\execute(), SpecialImport\execute(), SpecialEditWatchlist\execute(), UserrightsPage\execute(), SpecialEmailUser\execute(), SpecialRevisionDelete\execute(), DeletedContributionsPage\execute(), UserrightsPage\fetchUser(), SpecialNewpages\filterLinks(), UnwatchedpagesPage\formatResult(), BrokenRedirectsPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialProtectedpages\formatRow(), SpecialRecentChanges\getDefaultOptions(), LoginForm\getDescription(), SpecialContributions\getForm(), SpecialEmailUser\getFormFields(), SpecialBlock\getFormFields(), SpecialSpecialpages\getPageGroups(), ContribsPager\getQueryInfo(), SpecialMypage\getRedirect(), SpecialMytalk\getRedirect(), SpecialMycontributions\getRedirect(), SpecialMyuploads\getRedirect(), SpecialLog\getRevisionButton(), DeletedContributionsPage\getSubTitle(), SpecialContributions\getUserLinks(), SpecialEditWatchlist\getWatchlist(), SpecialEditWatchlist\getWatchlistInfo(), SpecialLockdb\onSubmit(), SpecialRecentChanges\optionsPanel(), LoginForm\processLogin(), SpecialNewpages\setup(), SpecialRevisionDelete\showConvenienceLinks(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), SpecialChangePassword\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialMergeHistory\showHistory(), SpecialBlockList\showList(), EmailConfirmation\showRequestForm(), SpecialRevisionDelete\submit(), SpecialEditWatchlist\submitRaw(), SpecialPreferences\submitReset(), SpecialRevisionDelete\tryShowFile(), SpecialEditWatchlist\unwatchTitles(), SpecialExport\userCanOverrideExportDepth(), SpecialEditWatchlist\watchTitles(), and SpecialRecentChanges\webOutput().
SpecialPage::includable | ( | $ | x = null | ) |
These mutators are very evil, as the relevant variables should not mutate.
So don't use them.
$x | Mixed |
Definition at line 483 of file SpecialPage.php.
SpecialPage::including | ( | $ | x = null | ) |
Whether the special page is being evaluated via transclusion.
$x | Bool |
Definition at line 490 of file SpecialPage.php.
Referenced by SpecialNewFiles\execute(), SpecialListFiles\execute(), WantedPagesPage\execute(), SpecialPrefixindex\execute(), SpecialRecentChanges\execute(), SpecialListUsers\execute(), SpecialRecentChanges\getOptions(), SpecialPrefixindex\showPrefixChunk(), and SpecialRecentChanges\webOutput().
SpecialPage::init | ( | $ | name, |
$ | restriction, | ||
$ | listed, | ||
$ | function, | ||
$ | file, | ||
$ | includable | ||
) | [private] |
Do the real work for the constructor, mainly so __call() can intercept calls to SpecialPage()
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 |
$function | Callback|Bool: function called by execute(). By default it is constructed from $name | |
string | $file | file which is included by execute(). It is also constructed from $name by default |
bool | $includable | whether the page can be included in normal pages |
Definition at line 331 of file SpecialPage.php.
static SpecialPage::initAliasList | ( | ) | [static] |
Definition at line 75 of file SpecialPage.php.
static SpecialPage::initList | ( | ) | [static] |
Initialise the special page list This must be called before accessing SpecialPage::$mList.
Definition at line 67 of file SpecialPage.php.
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 525 of file SpecialPage.php.
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 WantedQueryPage, QueryPage, WithoutInterwikiPage, DeadendPagesPage, LonelyPagesPage, MostlinkedTemplatesPage, UncategorizedImagesPage, UncategorizedPagesPage, MostlinkedPage, MostcategoriesPage, MostimagesPage, MostinterwikisPage, UnusedtemplatesPage, UnwatchedpagesPage, ListredirectsPage, MIMEsearchPage, BrokenRedirectsPage, DoubleRedirectsPage, FewestrevisionsPage, AncientPagesPage, DisambiguationsPage, PopularPagesPage, UnusedimagesPage, and UnusedCategoriesPage.
Definition at line 512 of file SpecialPage.php.
Whether it's allowed to transclude the special page via {{Special:Foo/params}}.
Reimplemented in IncludableSpecialPage, and WantedPagesPage.
Definition at line 436 of file SpecialPage.php.
Whether this special page is listed in Special:SpecialPages.
Reimplemented in UnlistedSpecialPage, SpecialPasswordReset, and SpecialChangeEmail.
Definition at line 410 of file SpecialPage.php.
Can be overridden by subclasses with more complicated permissions schemes.
Reimplemented in UserrightsPage.
Definition at line 536 of file SpecialPage.php.
SpecialPage::listed | ( | $ | x = null | ) |
Get or set whether this special page is listed in Special:SpecialPages.
$x | Bool |
Definition at line 428 of file SpecialPage.php.
SpecialPage::msg | ( | ) |
Wrapper around wfMessage that sets the current context.
Definition at line 819 of file SpecialPage.php.
Referenced by ContribsPager\__construct(), SpecialUnlockdb\alterForm(), SpecialLockdb\alterForm(), SpecialChangePassword\attemptReset(), SpecialRevisionDelete\buildCheckBoxes(), SpecialEditWatchlist\buildRemoveLine(), SpecialRecentChanges\categoryFilterForm(), SpecialComparePages\checkExistingRevision(), SpecialComparePages\checkExistingTitle(), SpecialContributions\contributionsSub(), SpecialWatchlist\cutoffLinks(), SpecialWatchlist\daysLink(), SpecialRecentChanges\doHeader(), SpecialRecentchangeslinked\doMainQuery(), MovePageForm\doSubmit(), SpecialTags\doTagRow(), SpecialCategories\execute(), SpecialUserlogout\execute(), SpecialBlockme\execute(), SpecialTags\execute(), SpecialWatchlist\execute(), SpecialContributions\execute(), SpecialUnblock\execute(), SpecialStatistics\execute(), SpecialExport\execute(), SpecialPrefixindex\execute(), SpecialChangePassword\execute(), SpecialJavaScriptTest\execute(), SpecialBlockList\execute(), SpecialPagesWithProp\execute(), SpecialListGroupRights\execute(), LinkSearchPage\execute(), EmailConfirmation\execute(), SpecialEditWatchlist\execute(), MIMEsearchPage\execute(), SpecialMergeHistory\execute(), SpecialEmailUser\execute(), FileDuplicateSearchPage\execute(), DeletedContributionsPage\execute(), SpecialListUsers\execute(), SpecialRevisionDelete\failure(), SpecialNewpages\feedItemDesc(), SpecialNewpages\filterLinks(), SpecialNewpages\form(), SpecialListGroupRights\formatPermissions(), WantedCategoriesPage\formatResult(), PopularPagesPage\formatResult(), UnusedtemplatesPage\formatResult(), FewestrevisionsPage\formatResult(), UnwatchedpagesPage\formatResult(), MostlinkedCategoriesPage\formatResult(), ShortPagesPage\formatResult(), MostcategoriesPage\formatResult(), MIMEsearchPage\formatResult(), MostlinkedPage\formatResult(), BrokenRedirectsPage\formatResult(), MostinterwikisPage\formatResult(), DoubleRedirectsPage\formatResult(), SpecialPagesWithProp\formatResult(), DisambiguationsPage\formatResult(), LinkSearchPage\formatResult(), SpecialMergeHistory\formatRevisionRow(), SpecialProtectedtitles\formatRow(), SpecialProtectedpages\formatRow(), SpecialStatistics\formatRow(), SpecialStatistics\formatRowHeader(), SpecialProtectedpages\getCascadeCheck(), MostimagesPage\getCellHtml(), SpecialVersion\getCreditsForExtension(), SpecialEmailUser\getDescription(), LoginForm\getDescription(), SpecialStatistics\getEditStats(), SpecialVersion\getEntryPointInfo(), SpecialProtectedpages\getExpiryCheck(), SpecialVersion\getExtensionCredits(), SpecialRecentchangeslinked\getExtraOptions(), SpecialRecentchangeslinked\getFeedObject(), SpecialRecentChanges\getFeedObject(), SpecialContributions\getForm(), DeletedContributionsPage\getForm(), SpecialEmailUser\getFormFields(), SpecialBlock\getFormFields(), SpecialJavaScriptTest\getFrameworkListHtml(), SpecialStatistics\getGroupStats(), SpecialProtectedtitles\getLevelMenu(), SpecialProtectedpages\getLevelMenu(), SpecialStatistics\getMostViewedPages(), SpecialProtectedtitles\getNamespaceMenu(), SpecialProtectedpages\getNamespaceMenu(), SpecialEditWatchlist\getNormalForm(), RandomPage\getNsList(), SpecialStatistics\getOtherStats(), DeadendPagesPage\getPageHeader(), LonelyPagesPage\getPageHeader(), UnusedCategoriesPage\getPageHeader(), WantedFilesPage\getPageHeader(), WithoutInterwikiPage\getPageHeader(), DisambiguationsPage\getPageHeader(), BrokenRedirectsPage\getPageHeader(), DoubleRedirectsPage\getPageHeader(), UnusedimagesPage\getPageHeader(), UnusedtemplatesPage\getPageHeader(), SpecialStatistics\getPageStats(), DisambiguationsPage\getQueryFromLinkBatch(), SpecialEditWatchlist\getRawForm(), SpecialLog\getRevisionButton(), SpecialProtectedpages\getSizeLimit(), DeletedContributionsPage\getSubTitle(), SpecialProtectedpages\getTypeMenu(), SpecialContributions\getUserLinks(), SpecialStatistics\getUserStats(), SpecialStatistics\getViewsStats(), SpecialVersion\getWgHooks(), UserrightsPage\groupCheckboxes(), SpecialJavaScriptTest\initQUnitTesting(), SpecialVersion\listAuthors(), SpecialBookSources\makeForm(), UserrightsPage\makeGroupNameList(), MostlinkedTemplatesPage\makeWlhLink(), SpecialMergeHistory\merge(), SpecialRecentChanges\namespaceFilterForm(), SpecialPrefixindex\namespacePrefixForm(), SpecialLockdb\onSubmit(), SpecialUnlockdb\onSuccess(), SpecialLockdb\onSuccess(), SpecialRecentChanges\optionsPanel(), SpecialChangePassword\pretty(), LoginForm\processLogin(), SpecialRecentChanges\setTopText(), SpecialSearch\setupPage(), SpecialRevisionDelete\showConvenienceLinks(), UserrightsPage\showEditUserGroupsForm(), SpecialUndelete\showFileConfirmationForm(), SpecialFilepath\showForm(), SpecialChangePassword\showForm(), SpecialImport\showForm(), SpecialRevisionDelete\showForm(), SpecialWatchlist\showHideLink(), SpecialMergeHistory\showHistory(), SpecialBlockList\showList(), SpecialBookSources\showList(), SpecialMergeHistory\showMergeForm(), SpecialProtectedtitles\showOptions(), SpecialProtectedpages\showOptions(), SpecialPrefixindex\showPrefixChunk(), EmailConfirmation\showRequestForm(), SpecialSearch\showResults(), SpecialEditWatchlist\showTitles(), SpecialUploadStash\showUploads(), SpecialRevisionDelete\submit(), SpecialEditWatchlist\submitNormal(), SpecialEditWatchlist\submitRaw(), SpecialRevisionDelete\success(), UserrightsPage\switchForm(), SpecialRevisionDelete\tryShowFile(), and SpecialEmailUser\userForm().
SpecialPage::name | ( | $ | x = null | ) |
These mutators are very evil, as the relevant variables should not mutate.
So don't use them.
$x | Mixed |
Definition at line 447 of file SpecialPage.php.
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 677 of file SpecialPage.php.
Referenced by SpecialNewFiles\execute(), SpecialListFiles\execute(), SpecialCategories\execute(), SpecialPreferences\execute(), SpecialBlockme\execute(), SpecialTags\execute(), SpecialUserlogout\execute(), SpecialFilepath\execute(), SpecialSpecialpages\execute(), SpecialWatchlist\execute(), SpecialContributions\execute(), SpecialProtectedpages\execute(), SpecialProtectedtitles\execute(), SpecialUnblock\execute(), SpecialChangePassword\execute(), SpecialExport\execute(), SpecialPrefixindex\execute(), SpecialBlockList\execute(), SpecialListGroupRights\execute(), MovePageForm\execute(), SpecialPagesWithProp\execute(), LinkSearchPage\execute(), SpecialLog\execute(), SpecialComparePages\execute(), SpecialVersion\execute(), SpecialBookSources\execute(), SpecialImport\execute(), SpecialEditWatchlist\execute(), UserrightsPage\execute(), MIMEsearchPage\execute(), SpecialMergeHistory\execute(), SpecialEmailUser\execute(), FileDuplicateSearchPage\execute(), SpecialRevisionDelete\execute(), SpecialRecentChanges\execute(), DeletedContributionsPage\execute(), SpecialListUsers\execute(), and SpecialUploadStash\showUploads().
static SpecialPage::removePage | ( | $ | name | ) | [static] |
Remove a special page from the list Formerly used to disable expensive or dangerous special pages.
The preferred method is now to add a SpecialPage_initList hook.
string | $name | the page to remove |
Definition at line 139 of file SpecialPage.php.
static SpecialPage::resolveAlias | ( | $ | alias | ) | [static] |
Given a special page alias, return the special page name.
Returns false if there is no such alias.
$alias | String |
Definition at line 88 of file SpecialPage.php.
static SpecialPage::resolveAliasWithSubpage | ( | $ | alias | ) | [static] |
Given a special page name with a possible subpage, return an array where the first element is the special page name and the second is the subpage.
$alias | String |
Definition at line 103 of file SpecialPage.php.
SpecialPage::restriction | ( | $ | x = null | ) |
These mutators are very evil, as the relevant variables should not mutate.
So don't use them.
$x | Mixed |
Definition at line 456 of file SpecialPage.php.
SpecialPage::run | ( | $ | subPage | ) | [final] |
Entry point.
$subPage | string|null |
Definition at line 600 of file SpecialPage.php.
SpecialPage::setContext | ( | $ | context | ) |
Sets the context this SpecialPage is executed in.
$context | IContextSource |
Definition at line 722 of file SpecialPage.php.
static SpecialPage::setGroup | ( | $ | page, |
$ | group | ||
) | [static] |
Add a page to a certain display group for Special:SpecialPages.
$page | Mixed: SpecialPage or string |
$group | String |
Definition at line 114 of file SpecialPage.php.
Sets headers - this should be called from the execute() method of all derived classes!
Definition at line 586 of file SpecialPage.php.
Referenced by SpecialNewFiles\execute(), SpecialListFiles\execute(), SpecialCategories\execute(), SpecialBlankpage\execute(), SpecialPreferences\execute(), SpecialFilepath\execute(), SpecialSpecialpages\execute(), SpecialTags\execute(), SpecialUserlogout\execute(), SpecialBlockme\execute(), SpecialWatchlist\execute(), SpecialProtectedtitles\execute(), SpecialContributions\execute(), SpecialProtectedpages\execute(), SpecialStatistics\execute(), SpecialUnblock\execute(), SpecialChangePassword\execute(), SpecialExport\execute(), SpecialPrefixindex\execute(), SpecialJavaScriptTest\execute(), SpecialBlockList\execute(), SpecialListGroupRights\execute(), MovePageForm\execute(), SpecialPagesWithProp\execute(), LinkSearchPage\execute(), EmailConfirmation\execute(), SpecialLog\execute(), SpecialComparePages\execute(), SpecialVersion\execute(), SpecialBookSources\execute(), SpecialImport\execute(), RandomPage\execute(), SpecialEditWatchlist\execute(), UserrightsPage\execute(), MIMEsearchPage\execute(), SpecialMergeHistory\execute(), SpecialEmailUser\execute(), FileDuplicateSearchPage\execute(), SpecialRevisionDelete\execute(), SpecialRecentChanges\execute(), LoginForm\execute(), EmailInvalidation\execute(), DeletedContributionsPage\execute(), SpecialListUsers\execute(), and SpecialUploadStash\showUploads().
SpecialPage::setListed | ( | $ | listed | ) |
Set whether this page is listed in Special:Specialpages, at run-time.
$listed | Bool |
Definition at line 419 of file SpecialPage.php.
SpecialPage::userCanExecute | ( | User $ | user | ) |
Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction).
Can be overridden by sub- classes with more complicated permissions schemes.
$user | User: the user to check |
Reimplemented in SpecialUpload, UserrightsPage, and SpecialPasswordReset.
Definition at line 549 of file SpecialPage.php.
Referenced by DeletedContributionsPage\execute().
IContextSource SpecialPage::$mContext [protected] |
Current request context.
Definition at line 60 of file SpecialPage.php.
SpecialPage::$mFile [private] |
Definition at line 49 of file SpecialPage.php.
SpecialPage::$mFunction [private] |
Definition at line 46 of file SpecialPage.php.
SpecialPage::$mIncludable [protected] |
Definition at line 55 of file SpecialPage.php.
SpecialPage::$mIncluding [protected] |
Definition at line 52 of file SpecialPage.php.
SpecialPage::$mListed [private] |
Definition at line 43 of file SpecialPage.php.
SpecialPage::$mLocalName [private] |
Definition at line 36 of file SpecialPage.php.
SpecialPage::$mName [protected] |
Definition at line 33 of file SpecialPage.php.
SpecialPage::$mRestriction [private] |
Definition at line 40 of file SpecialPage.php.