MediaWiki
REL1_20
|
The simplest way of implementing IContextSource is to hold a RequestContext as a member variable and provide accessors to it. More...
Public Member Functions | |
canUseWikiPage () | |
Check whether a WikiPage object can be get with getWikiPage(). | |
getContext () | |
Get the RequestContext object. | |
getLang () | |
Get the Language object. | |
getLanguage () | |
Get the Language object. | |
getOutput () | |
Get the OutputPage object. | |
getRequest () | |
Get the WebRequest object. | |
getSkin () | |
Get the Skin object. | |
getTitle () | |
Get the Title object. | |
getUser () | |
Get the User object. | |
getWikiPage () | |
Get the WikiPage object. | |
msg () | |
Get a Message object with context set Parameters are the same as wfMessage() | |
setContext (IContextSource $context) | |
Set the IContextSource object. | |
Private Attributes | |
IContextSource | $context |
The simplest way of implementing IContextSource is to hold a RequestContext as a member variable and provide accessors to it.
Definition at line 30 of file ContextSource.php.
Check whether a WikiPage object can be get with getWikiPage().
Callers should expect that an exception is thrown from getWikiPage() if this method returns false.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 88 of file ContextSource.php.
Get the RequestContext object.
Definition at line 41 of file ContextSource.php.
Referenced by SkinTemplate\buildContentNavigationUrls(), ApiParse\categoriesHtml(), ApiBase\createContext(), ApiComparePages\execute(), ApiParse\execute(), ApiEmailUser\execute(), ApiEditPage\execute(), ApiExpandTemplates\execute(), ApiOptions\execute(), ApiUnblock\execute(), ApiBlock\execute(), ApiFeedContributions\execute(), ApiLogin\execute(), ApiQueryRevisions\extractRowInfo(), NewFilesPager\getForm(), DerivativeContext\getLanguage(), EditWatchlistNormalHTMLForm\getLegend(), SkinTemplate\outputPage(), SpecialBlock\processUIForm(), SpecialUnblock\processUIUnblock(), SpecialComparePages\showDiff(), SkinTemplate\tabAction(), and SpecialEmailUser\uiSubmit().
Get the Language object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 131 of file ContextSource.php.
Get the Language object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 142 of file ContextSource.php.
Referenced by Skin\buildSidebar(), ApiParse\execute(), CategoryPager\formatRow(), NewFilesPager\formatRow(), DeletedContribsPager\formatRow(), UsersPager\formatRow(), ImageListPager\formatValue(), BlockListPager\formatValue(), Skin\getCopyright(), EditWatchlistNormalHTMLForm\getLegend(), IndexPager\getLimitLinks(), DeletedContribsPager\getNavigationBar(), ReverseChronologicalPager\getNavigationBar(), ImageHistoryList\imageHistoryLine(), ChangesList\insertDateHeader(), Skin\lastModified(), and SkinTemplate\outputPage().
Get the OutputPage object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 111 of file ContextSource.php.
Referenced by Skin\bottomScripts(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), ImportReporter\close(), Skin\getCachedNotice(), Skin\getCategories(), Skin\getCategoryLinks(), Skin\getNewtalks(), Skin\getRevisionId(), Skin\lastModified(), ImportReporter\open(), SkinTemplate\outputPage(), ImportReporter\reportNotice(), ImportReporter\reportPage(), ApiMain\sendCacheHeaders(), and Skin\subPageSubtitle().
Get the WebRequest object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 66 of file ContextSource.php.
Referenced by UsersPager\__construct(), IndexPager\__construct(), TablePager\__construct(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), ApiQueryDeletedrevs\execute(), ApiEditPage\execute(), ApiPurge\execute(), ApiUnblock\execute(), ApiBlock\execute(), ApiLogin\execute(), ApiQueryUserInfo\getCurrentUserInfo(), LogEventsList\getDefaultQuery(), LogPager\getFilterParams(), NewFilesPager\getForm(), ApiBase\getParameterFromSettings(), ApiQueryUsers\getTokenFunctions(), ApiQueryRevisions\getTokenFunctions(), ApiQueryRecentChanges\getTokenFunctions(), ApiQueryInfo\getTokenFunctions(), ApiTokens\getTokenTypes(), Skin\getUndeleteLink(), SkinVector\initPage(), HTMLForm\loadData(), SkinTemplate\outputPage(), and ApiMain\sendCacheHeaders().
Get the Skin object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 152 of file ContextSource.php.
Get the Title object.
Implements IContextSource.
Reimplemented in ImageHistoryPseudoPager, HTMLForm, AllmessagesTablePager, ImageListPager, ProtectedTitlesPager, and DerivativeContext.
Definition at line 76 of file ContextSource.php.
Referenced by Skin\addToSidebarPlain(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), HistoryPager\formatRow(), Skin\getCategories(), Skin\getCategoryLinks(), Skin\getCopyright(), HistoryPager\getEndBody(), NewFilesPager\getForm(), SkinTemplate\getNameSpaceKey(), Skin\getNamespaceNotice(), UsersPager\getPageHeader(), Skin\getRelevantTitle(), CategoryPager\getStartForm(), Skin\getUndeleteLink(), Skin\isRevisionCurrent(), Skin\lastModified(), SkinTemplate\outputPage(), Skin\preloadExistence(), Skin\printSource(), and Skin\subPageSubtitle().
Get the User object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 121 of file ContextSource.php.
Referenced by IndexPager\__construct(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), ApiParse\execute(), ApiUndelete\execute(), ApiProtect\execute(), ApiEmailUser\execute(), ApiMove\execute(), ApiImport\execute(), ApiWatch\execute(), ApiQueryDeletedrevs\execute(), ApiSetNotificationTimestamp\execute(), ApiLogout\execute(), ApiPatrol\execute(), ApiEditPage\execute(), ApiQueryFilearchive\execute(), ApiPurge\execute(), ApiUpload\execute(), ApiQueryBlocks\execute(), ApiOptions\execute(), ApiUnblock\execute(), ApiFileRevert\execute(), ApiRollback\execute(), ApiBlock\execute(), ApiDelete\execute(), DeletedContribsPager\formatRow(), UsersPager\formatRow(), HistoryPager\formatRow(), ImageListPager\formatValue(), BlockListPager\formatValue(), Skin\getCategories(), Skin\getCategoryLinks(), ApiQueryUserInfo\getCurrentUserInfo(), HistoryPager\getEndBody(), LogPager\getFilterParams(), PreferencesForm\getModifiedUser(), Skin\getNewtalks(), DeletedContribsPager\getQueryInfo(), UsersPager\getQueryInfo(), BlockListPager\getQueryInfo(), ApiQueryUserInfo\getRateLimits(), Skin\getSiteNotice(), Skin\getUndeleteLink(), ApiQueryInfo\getWatchedInfo(), ApiBase\getWatchlistUser(), ApiBase\getWatchlistValue(), ImageHistoryList\imageHistoryLine(), ChangesList\insertDateHeader(), Skin\lastModified(), LogPager\limitPerformer(), LogPager\limitTitle(), LogPager\limitType(), SkinTemplate\outputPage(), Skin\preloadExistence(), ApiQueryContributions\prepareQuery(), ImportReporter\reportPage(), ApiQueryWatchlist\run(), ApiQueryRecentChanges\run(), SkinSimple\setupSkinUserCss(), ApiBase\setWatch(), ChangesList\showAsUnpatrolled(), Skin\showEmailUser(), and ApiQueryBase\showHiddenUsersAddBlockInfo().
Get the WikiPage object.
May throw an exception if there's no Title object set or the Title object belongs to a special namespace that doesn't have WikiPage, so use first canUseWikiPage() to check whether this method can be called safely.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 101 of file ContextSource.php.
Referenced by HistoryPager\getQueryInfo(), and SkinTemplate\outputPage().
Get a Message object with context set Parameters are the same as wfMessage()
Implements IContextSource.
Definition at line 163 of file ContextSource.php.
Referenced by DeletedContribsPager\__construct(), Skin\addToSidebarPlain(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), ImportReporter\close(), ApiWatch\execute(), Skin\footerLink(), CategoryPager\formatRow(), DeletedContribsPager\formatRow(), UsersPager\formatRow(), ImageListPager\formatValue(), BlockListPager\formatValue(), PreferencesForm\getButtons(), Skin\getCachedNotice(), Skin\getCategoryLinks(), Skin\getCopyright(), ImageListPager\getFieldNames(), BlockListPager\getFieldNames(), NewFilesPager\getForm(), ImageListPager\getForm(), EditWatchlistNormalHTMLForm\getLegend(), DeletedContribsPager\getNavigationBar(), ReverseChronologicalPager\getNavigationBar(), Skin\getNewtalks(), UsersPager\getPageHeader(), HistoryPager\getRevisionButton(), CategoryPager\getStartForm(), Skin\getUndeleteLink(), ImageHistoryList\imageHistoryLine(), ChangesList\insertLog(), Skin\lastModified(), Skin\logoText(), Skin\mainPageLink(), SkinTemplate\outputPage(), Skin\printSource(), ImportReporter\reportNotice(), ImportReporter\reportPage(), and Skin\subPageSubtitle().
ContextSource::setContext | ( | IContextSource $ | context | ) |
Set the IContextSource object.
$context | IContextSource |
Definition at line 56 of file ContextSource.php.
Referenced by UsersPager\__construct(), ApiBase\__construct(), IndexPager\__construct(), TablePager\__construct(), SkinTemplate\buildContentNavigationUrls(), and SkinTemplate\outputPage().
IContextSource ContextSource::$context [private] |
Definition at line 34 of file ContextSource.php.
Referenced by UsersPager\__construct(), IndexPager\__construct(), TablePager\__construct(), ApiParse\categoriesHtml(), ApiParse\execute(), ApiLogin\execute(), and ApiQueryRevisions\extractRowInfo().