MediaWiki
1.30.2
|
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(). More... | |
exportSession () | |
Export the resolved user IP, HTTP headers, user ID, and session ID. More... | |
getConfig () | |
Get the Config object. More... | |
getContext () | |
Get the base IContextSource object. More... | |
getLanguage () | |
Get the Language object. More... | |
getOutput () | |
Get the OutputPage object. More... | |
getRequest () | |
Get the WebRequest object. More... | |
getSkin () | |
Get the Skin object. More... | |
getStats () | |
Get the Stats object. More... | |
getTiming () | |
Get the Timing object. More... | |
getTitle () | |
Get the Title object. More... | |
getUser () | |
Get the User object. More... | |
getWikiPage () | |
Get the WikiPage object. More... | |
msg ( $key) | |
Get a Message object with context set Parameters are the same as wfMessage() More... | |
setContext (IContextSource $context) | |
Set the IContextSource object. More... | |
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.
ContextSource::canUseWikiPage | ( | ) |
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 100 of file ContextSource.php.
References getContext().
Referenced by SkinTemplate\buildContentNavigationUrls(), and OutputPage\getJSVars().
ContextSource::exportSession | ( | ) |
Export the resolved user IP, HTTP headers, user ID, and session ID.
The result will be reasonably sized to allow for serialization.
Implements IContextSource.
Definition at line 202 of file ContextSource.php.
References getContext().
Referenced by ApiUpload\getChunkResult(), and ApiUpload\performUpload().
ContextSource::getConfig | ( | ) |
Get the Config object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 68 of file ContextSource.php.
References getContext().
Referenced by ApiQueryQueryPage\__construct(), ActiveUsersPager\__construct(), ImageListPager\__construct(), ImageGalleryBase\__construct(), ApiQuery\__construct(), ApiMain\__construct(), HTMLForm\__construct(), OutputPage\adaptCdnTTL(), OutputPage\addFeedLink(), OutputPage\addLogoPreloadLinkHeaders(), OutputPage\addParserOutputMetadata(), ApiMain\addRequestedFields(), OutputPage\addScriptFile(), Skin\addToSidebarPlain(), UploadForm\addUploadJS(), AllMessagesTablePager\buildForm(), ApiMain\checkBotReadOnly(), ApiMain\checkConditionalRequestHeaders(), OutputPage\checkLastModified(), ApiMain\checkMaxLag(), ApiUpload\checkVerification(), ApiFormatBase\closePrinter(), ApiBase\dieWithErrorOrDebug(), OutputPage\disallowUserJs(), ApiMain\errorMessagesFromException(), ApiProtect\execute(), ApiUndelete\execute(), ApiEmailUser\execute(), ApiUpload\execute(), ApiChangeAuthenticationData\execute(), ApiEditPage\execute(), ApiFormatPhp\execute(), ApiQueryAuthManagerInfo\execute(), ApiQueryAllMessages\execute(), ApiQueryBlocks\execute(), ApiPurge\execute(), ApiFeedContributions\execute(), ApiQueryFileRepoInfo\execute(), ApiFeedRecentChanges\execute(), ApiQueryLogEvents\execute(), ApiRemoveAuthenticationData\execute(), ApiQueryAllUsers\execute(), ApiSetPageLanguage\execute(), ApiFeedWatchlist\execute(), ApiResetPassword\execute(), ApiLogin\execute(), ApiOpenSearch\execute(), ApiQueryUsers\execute(), ApiQueryRevisionsBase\extractRevisionInfo(), OldChangesList\formatChangeLine(), UsersPager\formatRow(), HistoryPager\formatRow(), HTMLForm\getAction(), ApiImport\getAllowedImportSources(), ApiQueryLogEvents\getAllowedLogActions(), ApiResetPassword\getAllowedParams(), ApiFeedRecentChanges\getAllowedParams(), ApiQueryExtLinksUsage\getAllowedParams(), ApiQueryProtectedTitles\getAllowedParams(), ApiFeedContributions\getAllowedParams(), ApiQueryAllRevisions\getAllowedParams(), ApiFeedWatchlist\getAllowedParams(), ApiQueryBlocks\getAllowedParams(), ApiQueryAllPages\getAllowedParams(), ApiOpenSearch\getAllowedParams(), ApiQueryCategoryMembers\getAllowedParams(), ApiQueryAllUsers\getAllowedParams(), ApiQueryAllImages\getAllowedParams(), ApiQueryBacklinksprop\getAllowedParams(), ApiQueryAllDeletedRevisions\getAllowedParams(), ApiQueryLogEvents\getAllowedParams(), ApiQueryContributions\getAllowedParams(), HTMLForm\getButtons(), OutputPage\getCacheVaryCookies(), ApiUpload\getChunkResult(), ApiQueryUserInfo\getCurrentUserInfo(), ReverseChronologicalPager\getDateCond(), RangeChronologicalPager\getDateRangeCond(), Skin\getDefaultModules(), UploadForm\getDescriptionSection(), HistoryPager\getEndBody(), ApiResetPassword\getExamplesMessages(), ApiSetPageLanguage\getExtendedDescription(), ApiLogin\getExtendedDescription(), UploadForm\getExtensionsMessage(), ImageListPager\getFieldNames(), ApiCSPReport\getFlags(), OutputPage\getFrameOptions(), OutputPage\getHeadLinksArray(), HTMLForm\getHiddenFields(), CategoryViewer\getHTML(), HTMLButtonField\getInputHTML(), EnhancedChangesList\getLineData(), ApiMain\getMaxLag(), ApiBase\getModuleSourceInfo(), ApiPageSet\getPageTableFields(), NewFilesPager\getQueryInfo(), ActiveUsersPager\getQueryInfo(), ApiQueryUserInfo\getRateLimits(), OutputPage\getResourceLoader(), UploadForm\getSourceSection(), ApiQueryInfo\getVisitingWatcherInfo(), ApiQueryInfo\getWatcherInfo(), ApiMain\handleCORS(), ApiResetPassword\hasAnyRoutes(), OutputPage\headElement(), ApiFormatBase\initPrinter(), ApiLogin\isDeprecated(), ImageListPager\isFieldSortable(), OutputPage\isUserCssPreview(), OutputPage\isUserJsPreview(), ApiQueryImageInfo\mergeThumbParams(), OutputPage\output(), ApiMain\printResult(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), ChangesList\recentChangesFlags(), ApiQueryInfo\requestExtraData(), ApiBase\requirePostedParameters(), ApiQueryAllRevisions\run(), ApiQueryAllDeletedRevisions\run(), ApiQueryExtLinksUsage\run(), ApiQuerySearch\run(), ApiQueryQueryPage\run(), ApiQueryAllPages\run(), ApiQueryCategoryMembers\run(), ApiQueryAllImages\run(), ApiQueryBacklinksprop\run(), OutputPage\sendCacheControl(), ApiMain\sendCacheHeaders(), HTMLForm\setDisplayFormat(), OutputPage\setFeedAppendQuery(), ApiMain\setRequestExpectations(), SkinTemplate\setupTemplate(), OutputPage\showLagWarning(), OutputPage\styleLink(), ApiMain\substituteResultWithError(), and DifferenceEngine\textDiff().
ContextSource::getContext | ( | ) |
Get the base IContextSource object.
Definition at line 41 of file ContextSource.php.
References $context, class, RequestContext\getMain(), and wfDebug().
Referenced by ApiMain\__construct(), ApiBase\__construct(), RevisionItem\__construct(), OutputPage\addSubtitle(), SkinTemplate\buildContentNavigationUrls(), UsersPager\buildGroupLink(), SkinTemplate\buildNavUrls(), canUseWikiPage(), DerivativeContext\canUseWikiPage(), CategoryViewer\clearCategoryState(), ApiComparePages\execute(), ApiEmailUser\execute(), ApiRevisionDelete\execute(), ApiExpandTemplates\execute(), ApiOptions\execute(), ApiHelp\execute(), ApiUnblock\execute(), ApiFeedContributions\execute(), ApiBlock\execute(), ApiParse\execute(), ApiUserrights\execute(), ApiLogin\execute(), ApiQueryUsers\execute(), ApiMain\executeAction(), ApiMain\executeActionWithErrorHandling(), exportSession(), ApiQueryRevisionsBase\extractRevisionInfo(), ApiFeedContributions\feedItem(), ChangesList\formatCharacterDifference(), ProtectedPagesPager\formatValue(), ApiUpload\getChunkResult(), getConfig(), DerivativeContext\getConfig(), ApiComparePages\getDiffContent(), FormatMetadata\getExtendedMetadataFromHook(), ApiLinkAccount\getFinalDescription(), ApiAMCreateAccount\getFinalDescription(), ApiClientLogin\getFinalDescription(), ApiBase\getFinalDescription(), ApiBase\getFinalParamDescription(), ApiBase\getFinalSummary(), OutputPage\getHeadLinksArray(), OutputPage\getJSVars(), getLanguage(), DerivativeContext\getLanguage(), EditWatchlistNormalHTMLForm\getLegend(), getOutput(), DerivativeContext\getOutput(), UsersPager\getPageHeader(), DifferenceEngine\getParserOutput(), getRequest(), DerivativeContext\getRequest(), getSkin(), DerivativeContext\getSkin(), UploadForm\getSourceSection(), NewFilesPager\getStartBody(), CategoryPager\getStartForm(), DerivativeContext\getTiming(), getTiming(), getTitle(), DerivativeContext\getTitle(), HTMLForm\getTitle(), ApiUserrights\getUrUser(), getUser(), DerivativeContext\getUser(), getWikiPage(), DerivativeContext\getWikiPage(), OutputPage\headElement(), HistoryPager\historyLine(), ChangesList\insertLog(), ChangesList\insertLogEntry(), ChangesList\insertRollback(), LogEventsList\logLine(), ApiParse\makeParserOptions(), msg(), SkinTemplate\outputPage(), OutputPage\parserOptions(), ApiUpload\performUpload(), SkinTemplate\prepareQuickTemplate(), SpecialTags\processCreateTagForm(), SpecialTags\processTagForm(), SpecialUnblock\processUIUnblock(), ChangesList\recentChangesFlags(), OutputPage\setHTMLTitle(), OutputPage\setPageTitle(), OutputPage\setTitle(), SideBarTest\setUp(), SpecialComparePages\showDiff(), DifferenceEngine\showDiffPage(), LogEventsList\showOptions(), SkinTemplate\tabAction(), ApiStructureTest\testDocumentationExists(), OldChangesListTest\testRecentChangesLine_prefix(), EnhancedChangesListTest\testRecentChangesPrefix(), and SpecialEmailUser\uiSubmit().
ContextSource::getLanguage | ( | ) |
Get the Language object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 143 of file ContextSource.php.
References getContext().
Referenced by AllMessagesTablePager\__construct(), ApiMain\__construct(), DifferenceEngine\addHeader(), OutputPage\addInlineStyle(), ApiMain\addRequestedFields(), OutputPage\buildExemptModules(), OutputPage\enableOOUI(), ApiHelp\execute(), ApiLogout\execute(), ApiQueryAllMessages\execute(), ApiParamInfo\execute(), ApiFeedWatchlist\execute(), ApiLogin\execute(), FormatMetadata\fetchExtendedMetadata(), OldChangesList\formatChangeLine(), ApiParse\formatLangLinks(), SkinTemplate\formatLanguageName(), FormatMetadata\formatNum(), CategoryPager\formatRow(), ActiveUsersPager\formatRow(), UsersPager\formatRow(), NewFilesPager\formatRow(), BlockListPager\formatValue(), ProtectedPagesPager\formatValue(), AllMessagesTablePager\formatValue(), ChangesList\getArticleLink(), UploadForm\getExtensionsMessage(), LogEventsList\getFilterLinks(), ListToggle\getHTML(), CategoryViewer\getHTML(), Skin\getHtmlElementAttributes(), SkinTemplate\getLanguages(), EditWatchlistNormalHTMLForm\getLegend(), IndexPager\getLimitLinks(), TablePager\getLimitSelectList(), ReverseChronologicalPager\getNavigationBar(), AlphabeticPager\getNavigationBar(), FormatMetadata\getPriorityLanguages(), ImageGalleryBase\getRenderLang(), DifferenceEngine\getRevisionHeader(), OutputPage\getRlClientContext(), AllMessagesTablePager\getRowAttrs(), UploadForm\getSourceSection(), ImageHistoryList\getThumbForLine(), ChangesList\getTimestamp(), OutputPage\headElement(), HistoryPager\historyLine(), ImageHistoryList\imageHistoryLine(), ChangesList\insertDateHeader(), ChangesList\insertLogEntry(), ChangesList\insertUserRelatedLinks(), Skin\lastModified(), LogEventsList\logLine(), FormatMetadata\makeFormattedData(), SkinTemplate\prepareQuickTemplate(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesLine(), HistoryPager\revLink(), OutputPage\showLagWarning(), DifferenceEngine\showMissingRevision(), OutputPage\styleLink(), and Skin\subPageSubtitle().
ContextSource::getOutput | ( | ) |
Get the OutputPage object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 123 of file ContextSource.php.
References getContext().
Referenced by OOUIHTMLForm\__construct(), UploadForm\__construct(), CategoryViewer\__construct(), UploadForm\addUploadJS(), EnhancedChangesList\beginRecentChangesList(), ChangesList\beginRecentChangesList(), Skin\bottomScripts(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), ApiMain\checkConditionalRequestHeaders(), ImportReporter\close(), HTMLForm\displayForm(), SkinVector\enableResponsiveMode(), TablePager\getBody(), Skin\getCachedNotice(), Skin\getCategories(), Skin\getCategoryLinks(), Skin\getDefaultModules(), HTMLForm\getErrorsOrWarnings(), VFormHTMLForm\getHTML(), CategoryViewer\getHTML(), HTMLForm\getHTML(), SkinTemplate\getLanguages(), DifferenceEngine\getMarkPatrolledLinkInfo(), TablePager\getNavigationBar(), Skin\getNewtalks(), Skin\getRevisionId(), HistoryPager\getStartBody(), ApiMain\handleCORS(), Skin\lastModified(), ImportReporter\open(), SkinTemplate\outputPage(), ImageListPager\outputUserDoesNotExist(), SkinTemplate\prepareQuickTemplate(), DifferenceEngine\renderNewRevision(), ImportReporter\reportNotice(), ImportReporter\reportPage(), ApiMain\sendCacheHeaders(), DifferenceEngine\showDiff(), DifferenceEngine\showDiffPage(), DifferenceEngine\showDiffStyle(), DifferenceEngine\showMissingRevision(), LogEventsList\showOptions(), LoginHelper\showReturnToPage(), Skin\subPageSubtitle(), and TraditionalImageGallery\toHTML().
ContextSource::getRequest | ( | ) |
Get the WebRequest object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 78 of file ContextSource.php.
References getContext().
Referenced by TablePager\__construct(), ApiContinuationManager\__construct(), UsersPager\__construct(), AllMessagesTablePager\__construct(), ImageListPager\__construct(), IndexPager\__construct(), ApiMain\__construct(), OutputPage\addAcceptLanguage(), SkinTemplate\buildContentNavigationUrls(), OutputPage\buildExemptModules(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), ApiMain\checkConditionalRequestHeaders(), ApiMain\checkExecutePermissions(), OutputPage\checkLastModified(), ApiMain\checkMaxLag(), CategoryViewer\clearCategoryState(), ApiFormatBase\closePrinter(), ApiMain\createErrorPrinter(), WikiEditorHooks\editPageShowEditFormFields(), ApiCSPReport\error(), ApiCheckToken\execute(), ApiQueryTokens\execute(), ApiEditPage\execute(), ApiQueryDeletedrevs\execute(), ApiCSPReport\execute(), ApiFeedRecentChanges\execute(), ApiLogin\execute(), ApiMain\executeActionWithErrorHandling(), OutputPage\getBottomScripts(), OOUIHTMLForm\getButtons(), HTMLForm\getButtons(), ApiQueryUserInfo\getCurrentUserInfo(), LogEventsList\getDefaultQuery(), IndexPager\getDefaultQuery(), LogEventsList\getExtraInputs(), LogPager\getFilterParams(), OutputPage\getHeadLinksArray(), TablePager\getHiddenFields(), ApiCSPReport\getReport(), OutputPage\getRlClientContext(), UploadForm\getSourceSection(), NewFilesPager\getStartBody(), ApiTokens\getTokenTypes(), Skin\getUndeleteLink(), ApiMain\getUpload(), ApiMain\getUserAgent(), ApiMain\getVal(), ApiMain\handleCORS(), ApiMain\handleException(), OutputPage\haveCacheVaryCookies(), ApiQuery\instantiateModules(), ApiMain\lacksSameOriginSecurity(), HTMLForm\loadData(), ApiBase\logFeatureUsage(), ApiMain\logRequest(), OutputPage\output(), HTMLForm\prepareForm(), SkinTemplate\prepareQuickTemplate(), ApiMain\reportUnusedParams(), ApiBase\requirePostedParameters(), OutputPage\returnToMain(), ApiQueryRecentChanges\run(), OutputPage\sendCacheControl(), ApiMain\sendCacheHeaders(), ApiMain\setRequestExpectations(), ApiMain\setupExternalResponse(), SkinTemplate\setupTemplateForOutput(), DifferenceEngine\showDiffPage(), OutputPage\showPermissionsErrorPage(), HTMLForm\tryAuthorizedSubmit(), OutputPage\userCanPreview(), ApiBase\useTransactionalTimeLimit(), ApiBase\validateToken(), and ApiCSPReport\verifyPostBodyOk().
ContextSource::getSkin | ( | ) |
Get the Skin object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 153 of file ContextSource.php.
References getContext().
Referenced by ChangesList\__construct(), OutputPage\enableOOUI(), OutputPage\getJSVars(), OutputPage\getRlClient(), OutputPage\getRlClientContext(), and OutputPage\output().
ContextSource::getStats | ( | ) |
Get the Stats object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 175 of file ContextSource.php.
ContextSource::getTiming | ( | ) |
Get the Timing object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 163 of file ContextSource.php.
References getContext().
ContextSource::getTitle | ( | ) |
Get the Title object.
Implements IContextSource.
Reimplemented in HTMLForm, ImageListPager, AllMessagesTablePager, DerivativeContext, ImageHistoryPseudoPager, and ProtectedTitlesPager.
Definition at line 88 of file ContextSource.php.
References getContext().
Referenced by OutputPage\addAcceptLanguage(), OutputPage\addParserOutputMetadata(), Skin\addToSidebarPlain(), OutputPage\addWikiText(), OutputPage\addWikiTextTidy(), SkinTemplate\buildContentNavigationUrls(), OutputPage\buildExemptModules(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), HistoryPager\curLink(), ApiEditPage\execute(), HistoryPager\formatRow(), OutputPage\getBottomScripts(), Skin\getCategories(), Skin\getCategoryLinks(), Skin\getCopyright(), DifferenceEngine\getDiffLang(), HistoryPager\getEndBody(), LogEventsList\getFilterLinks(), OutputPage\getHeadLinksArray(), OutputPage\getJSVars(), SkinTemplate\getLanguages(), SkinTemplate\getNameSpaceKey(), TablePager\getNavigationBar(), UsersPager\getPageHeader(), Skin\getRelevantTitle(), HistoryPager\getStartBody(), Skin\getUndeleteLink(), OutputPage\headElement(), HistoryPager\historyLine(), Skin\isRevisionCurrent(), OutputPage\isUserCssPreview(), OutputPage\isUserJsPreview(), HistoryPager\lastLink(), Skin\lastModified(), DifferenceEngine\loadRevisionData(), DifferenceEngine\loadRevisionIds(), IndexPager\makeLink(), DifferenceEngine\mapDiffPrevNext(), OutputPage\parse(), SkinTemplate\prepareQuickTemplate(), Skin\printSource(), DifferenceEngine\renderNewRevision(), HistoryPager\revLink(), OutputPage\setFeedAppendQuery(), SkinTemplate\setupTemplateForOutput(), DifferenceEngine\showDiffPage(), and OutputPage\userCanPreview().
ContextSource::getUser | ( | ) |
Get the User object.
Implements IContextSource.
Reimplemented in DerivativeContext.
Definition at line 133 of file ContextSource.php.
References getContext().
Referenced by UploadForm\__construct(), LogEventsList\__construct(), IndexPager\__construct(), HistoryPager\__construct(), ImageHistoryList\beginImageHistoryList(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), ApiMain\canApiHighLimits(), ApiMain\checkAsserts(), ApiMain\checkConditionalRequestHeaders(), ApiMain\checkExecutePermissions(), OutputPage\checkLastModified(), ApiMain\checkReadOnly(), ApiBase\checkTitleUserPermissions(), ApiBase\checkUserRightsAny(), DifferenceEngine\deletedLink(), ApiQuery\doExport(), ApiBase\errorArrayToStatus(), ApiValidatePassword\execute(), ApiComparePages\execute(), ApiImageRotate\execute(), ApiManageTags\execute(), ApiTag\execute(), ApiClearHasMsg\execute(), ApiProtect\execute(), ApiUndelete\execute(), ApiCheckToken\execute(), ApiMove\execute(), ApiEmailUser\execute(), ApiQueryStashImageInfo\execute(), ApiRevisionDelete\execute(), ApiImport\execute(), ApiQueryMyStashedFiles\execute(), ApiWatch\execute(), ApiChangeAuthenticationData\execute(), ApiQueryTokens\execute(), ApiUpload\execute(), ApiPatrol\execute(), ApiQueryTitleBlacklist\execute(), ApiLogout\execute(), ApiSetNotificationTimestamp\execute(), ApiOptions\execute(), ApiEditPage\execute(), ApiQueryAuthManagerInfo\execute(), ApiUnblock\execute(), ApiQueryBlocks\execute(), ApiQueryDeletedrevs\execute(), ApiPurge\execute(), ApiFileRevert\execute(), ApiQueryFilearchive\execute(), ApiBlock\execute(), ApiDelete\execute(), ApiRollback\execute(), ApiCSPReport\execute(), ApiParse\execute(), ApiQueryLogEvents\execute(), ApiRemoveAuthenticationData\execute(), ApiQueryImageInfo\execute(), ApiStashEdit\execute(), ApiUserrights\execute(), ApiLinkAccount\execute(), ApiAMCreateAccount\execute(), ApiSetPageLanguage\execute(), ApiResetPassword\execute(), ApiQueryWatchlist\extractOutputData(), ApiQueryInfo\extractPageInfo(), ApiQueryRevisionsBase\extractRevisionInfo(), ApiQueryLogEvents\extractRowInfo(), ApiQueryRecentChanges\extractRowInfo(), UsersPager\formatRow(), HistoryPager\formatRow(), BlockListPager\formatValue(), ProtectedPagesPager\formatValue(), ApiQueryLogEvents\getCacheMode(), Skin\getCategories(), Skin\getCategoryLinks(), ApiUpload\getChunkResult(), ApiUpload\getContextResult(), ApiQueryUserInfo\getCurrentUserInfo(), UploadForm\getDescriptionSection(), ApiComparePages\getDiffContent(), HistoryPager\getEndBody(), LogPager\getFilterParams(), OutputPage\getHeadLinksArray(), HTMLForm\getHiddenFields(), OutputPage\getJSVars(), EnhancedChangesList\getLineData(), EnhancedChangesList\getLogText(), DifferenceEngine\getMarkPatrolledLinkInfo(), PreferencesForm\getModifiedUser(), Skin\getNewtalks(), UploadForm\getOptionsSection(), ApiParse\getParsedContent(), DifferenceEngine\getParserOutput(), NewPagesPager\getQueryInfo(), DeletedContribsPager\getQueryInfo(), ActiveUsersPager\getQueryInfo(), UsersPager\getQueryInfo(), BlockListPager\getQueryInfo(), ApiQueryUserInfo\getRateLimits(), DifferenceEngine\getRevisionHeader(), OutputPage\getRlClientContext(), LogEventsList\getShowHideLinks(), Skin\getSiteNotice(), UploadForm\getSourceSection(), HistoryPager\getStartBody(), ImageHistoryList\getThumbForLine(), ApiTokens\getTokenTypes(), LogEventsList\getTypeSelector(), Skin\getUndeleteLink(), ApiQueryInfo\getVisitingWatcherInfo(), ApiQueryInfo\getWatchedInfo(), ApiQueryInfo\getWatcherInfo(), ApiBase\getWatchlistUser(), ApiBase\getWatchlistValue(), OutputPage\headElement(), HistoryPager\historyLine(), ImageHistoryList\imageHistoryLine(), ApiPageSet\initFromRevIDs(), ChangesList\insertDateHeader(), ChangesList\insertDiffHist(), ChangesList\insertRollback(), ApiQueryGadgets\isNeeded(), Skin\lastModified(), LogPager\limitPerformer(), LogPager\limitTitle(), LogPager\limitType(), DifferenceEngine\loadNewText(), DifferenceEngine\loadText(), ApiBase\logFeatureUsage(), LogEventsList\logLine(), ApiMain\logRequest(), ApiMergeHistory\merge(), ApiMove\movePage(), OutputPage\parserOptions(), ApiUpload\performStash(), ApiUpload\performUpload(), Skin\preloadExistence(), ApiQueryContributions\prepareQuery(), ApiTag\processIndividual(), ImportReporter\reportPage(), DifferenceEngine\revisionDeleteLink(), HistoryPager\revLink(), ApiQueryDeletedRevisions\run(), ApiQueryAllRevisions\run(), ApiQueryAllDeletedRevisions\run(), ApiQueryWatchlist\run(), ApiQueryRevisions\run(), ApiQueryRecentChanges\run(), ApiUpload\selectUploadModule(), ApiMain\setupExternalResponse(), SkinTemplate\setupTemplateForOutput(), ApiComparePages\setVals(), ApiBase\setWatch(), ChangesList\showAsUnpatrolled(), DifferenceEngine\showDiffPage(), Skin\showEmailUser(), ApiQueryBase\showHiddenUsersAddBlockInfo(), OutputPage\showPermissionsErrorPage(), HTMLForm\tryAuthorizedSubmit(), RevDelList\updateLog(), OutputPage\userCanPreview(), ApiQueryBase\userCanSeeRevDel(), and ApiBase\validateToken().
ContextSource::getWikiPage | ( | ) |
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 113 of file ContextSource.php.
References getContext().
Referenced by SkinTemplate\buildContentNavigationUrls(), HistoryPager\curLink(), OutputPage\getJSVars(), HistoryPager\getQueryInfo(), SkinTemplate\prepareQuickTemplate(), and DifferenceEngine\renderNewRevision().
ContextSource::msg | ( | $key | ) |
Get a Message object with context set Parameters are the same as wfMessage()
string | string[] | MessageSpecifier | $key | Message key, or array of keys, or a MessageSpecifier. |
mixed | $args,... |
Implements MessageLocalizer.
Reimplemented in DerivativeContext.
Definition at line 189 of file ContextSource.php.
References $args, and getContext().
Referenced by DeletedContribsPager\__construct(), UploadForm\__construct(), AllMessagesTablePager\__construct(), ContribsPager\__construct(), ApiBase\addDeprecation(), OutputPage\addHelpLink(), OutputPage\addReturnTo(), Skin\addToSidebarPlain(), OutputPage\addWikiMsgArray(), ImageHistoryList\beginImageHistoryList(), SkinTemplate\buildContentNavigationUrls(), AllMessagesTablePager\buildForm(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), ListToggle\checkboxLink(), ApiUpload\checkPermissions(), ApiBase\checkUserRightsAny(), ImportReporter\close(), ApiFormatBase\closePrinter(), FormatMetadata\collapseContactInfo(), ApiOptions\execute(), ApiQueryTags\execute(), ApiParse\execute(), ApiFeedWatchlist\execute(), FormatMetadata\exifMsg(), ApiQueryRevisionsBase\extractRevisionInfo(), Skin\footerLink(), Skin\footerLinkTitle(), FormatMetadata\formatCoords(), OutputPage\formatPermissionsErrorMessage(), CategoryPager\formatRow(), ActiveUsersPager\formatRow(), UsersPager\formatRow(), BlockListPager\formatValue(), ProtectedPagesPager\formatValue(), AllMessagesTablePager\formatValue(), OOUIHTMLForm\getButtons(), PreferencesForm\getButtons(), VFormHTMLForm\getButtons(), HTMLForm\getButtons(), Skin\getCachedNotice(), Skin\getCategoryLinks(), Skin\getCopyright(), CategoryViewer\getCountMessage(), DifferenceEngine\getDiff(), EnhancedChangesList\getDiffHistLinks(), TablePager\getEmptyBody(), ApiBase\getExamplesMessages(), UploadForm\getExtensionsMessage(), LogEventsList\getExtraInputs(), ApiFeedRecentChanges\getFeedObject(), BlockListPager\getFieldNames(), ProtectedPagesPager\getFieldNames(), ImageListPager\getFieldNames(), AllMessagesTablePager\getFieldNames(), LogEventsList\getFilterLinks(), ApiBase\getFinalDescription(), ApiBase\getFinalParamDescription(), OutputPage\getHeadLinksArray(), ListToggle\getHTML(), CategoryViewer\getHTML(), CategoryViewer\getImageSection(), EditWatchlistNormalHTMLForm\getLegend(), HTMLForm\getLegend(), TablePager\getLimitDropdown(), EnhancedChangesList\getLineData(), ApiQueryGadgetCategories\getList(), EnhancedChangesList\getLogText(), ReverseChronologicalPager\getNavigationBar(), AlphabeticPager\getNavigationBar(), TablePager\getNavigationBar(), Skin\getNewtalks(), UsersPager\getPageHeader(), CategoryViewer\getPagesSection(), ApiParse\getParsedContent(), HistoryPager\getRevisionButton(), DifferenceEngine\getRevisionHeader(), UploadForm\getSourceSection(), AllMessagesTablePager\getStartBody(), HistoryPager\getStartBody(), CategoryViewer\getSubcategorySection(), HTMLForm\getSubmitText(), ImageHistoryList\getThumbForLine(), LogEventsList\getTitleInput(), LogEventsList\getTitlePattern(), Skin\getUndeleteLink(), LogEventsList\getUserInput(), ApiUpload\handleStashException(), OutputPage\headElement(), HistoryPager\historyLine(), ImageHistoryList\imageHistoryLine(), ChangesList\insertComment(), ChangesList\insertDiffHist(), ChangesList\insertLog(), ChangesList\insertUserRelatedLinks(), FormatMetadata\langItem(), Skin\lastModified(), DifferenceEngine\localiseLineNumbersCb(), Skin\logoText(), Skin\mainPageLink(), FormatMetadata\makeFormattedData(), DifferenceEngine\markPatrolledLink(), ApiMain\modifyHelp(), ChangesList\numberofWatchingusers(), CategoryViewer\pagingLinks(), ChangesList\preCacheMessages(), SkinTemplate\prepareQuickTemplate(), Skin\printSource(), EnhancedChangesList\recentChangesBlockGroup(), EnhancedChangesList\recentChangesBlockLine(), ImportReporter\reportNotice(), ImportReporter\reportPage(), OutputPage\setPageTitle(), HTMLForm\setSubmitTextMsg(), HTMLForm\setWrapperLegendMsg(), DifferenceEngine\showDiffPage(), OutputPage\showErrorPage(), OutputPage\showFatalError(), OutputPage\showFileCopyError(), OutputPage\showFileDeleteError(), OutputPage\showFileNotFoundError(), OutputPage\showFileRenameError(), DifferenceEngine\showMissingRevision(), LogEventsList\showOptions(), OutputPage\showPermissionsErrorPage(), OutputPage\showUnexpectedValueError(), Skin\subPageSubtitle(), ApiMain\substituteResultWithError(), TraditionalImageGallery\toHTML(), OutputPage\versionRequired(), and OutputPage\wrapWikiMsg().
ContextSource::setContext | ( | IContextSource | $context | ) |
Set the IContextSource object.
IContextSource | $context |
Definition at line 58 of file ContextSource.php.
References $context.
Referenced by TablePager\__construct(), UploadForm\__construct(), LoginHelper\__construct(), UsersPager\__construct(), RevisionListBase\__construct(), ImageListPager\__construct(), ImageHistoryList\__construct(), ChangesList\__construct(), LogEventsList\__construct(), DerivativeContext\__construct(), CategoryViewer\__construct(), DifferenceEngine\__construct(), IndexPager\__construct(), ImageGalleryBase\__construct(), ApiMain\__construct(), ApiBase\__construct(), HTMLForm\__construct(), OutputPage\__construct(), SkinTemplate\buildContentNavigationUrls(), ChangesList\flag(), FormatMetadata\flattenArrayContentLang(), FormatMetadata\getFormattedData(), RequestContext\getSkin(), SkinTemplate\outputPage(), DerivativeContext\setSkin(), and RequestContext\setSkin().
|
private |
Definition at line 34 of file ContextSource.php.
Referenced by PackedImageGallery\__construct(), SlideshowImageGallery\__construct(), ChangeTagsList\__construct(), RevDelList\__construct(), OOUIHTMLForm\__construct(), TablePager\__construct(), CategoryPager\__construct(), DeletedContribsPager\__construct(), NewFilesPager\__construct(), EnhancedChangesList\__construct(), UploadForm\__construct(), UsersPager\__construct(), ActiveUsersPager\__construct(), ImageListPager\__construct(), ContribsPager\__construct(), LogEventsList\__construct(), CategoryViewer\__construct(), DifferenceEngine\__construct(), IndexPager\__construct(), ImageGalleryBase\__construct(), ApiMain\__construct(), HTMLForm\__construct(), OutputPage\__construct(), ApiFormatBase\closePrinter(), ApiComparePages\execute(), ApiHelp\execute(), ApiFeedRecentChanges\execute(), ApiParse\execute(), ApiLogin\execute(), ApiQueryUsers\execute(), ApiQueryRevisionsBase\extractRevisionInfo(), ChangeTagsList\factory(), ImageGalleryBase\factory(), ChangesList\flag(), FormatMetadata\flattenArrayContentLang(), getContext(), FormatMetadata\getFormattedData(), ApiHelp\getHelp(), ApiHelp\getHelpInternal(), OutputPage\getRlClient(), ApiCSPReport\logReport(), ApiBase\makeMessage(), ChangesList\newFromContext(), ApiPageSet\processTitlesArray(), setContext(), ChangesList\showCharacterDifference(), and LogEventsList\showLogExtract().