MediaWiki REL1_37
|
Go to the source code of this file.
Functions | |
getByteSize () | |
getCategorySnippet () | |
getFile () | |
Get the file for this page, if one exists. | |
getInterwikiNamespaceText () | |
getInterwikiPrefix () | |
getRedirectSnippet () | |
getRedirectTitle () | |
getSectionSnippet () | |
getSectionTitle () | |
getTextSnippet ( $terms=[]) | |
getTimestamp () | |
getTitle () | |
getTitleSnippet () | |
getWordCount () | |
initFromTitle ( $title) | |
Initialize from a Title and if possible initializes a corresponding RevisionRecord and File. | |
initText () | |
Lazy initialization of article text from DB. | |
isBrokenTitle () | |
Check if this is result points to an invalid title. | |
isFileMatch () | |
Did this match file contents (eg: PDF/DJVU)? | |
isMissingRevision () | |
Check if target page is missing, happens when index is out of date. | |
Variables | |
File | $mImage = null |
string | $mText |
Title null | $mTitle |
trait | RevisionSearchResultTrait |
Transitional trait used to share the methods between SearchResult and RevisionSearchResult. | |
getByteSize | ( | ) |
Definition at line 181 of file RevisionSearchResultTrait.php.
References initText().
getCategorySnippet | ( | ) |
Definition at line 154 of file RevisionSearchResultTrait.php.
getFile | ( | ) |
Get the file for this page, if one exists.
Definition at line 89 of file RevisionSearchResultTrait.php.
References $mImage.
Referenced by HttpError\doLog(), UploadStash\getFileProps(), RevertAction\getFormFields(), UploadStash\getMetadata(), WikiFilePage\getSourceURL(), ImagePage\getUploadUrl(), WikiFilePage\getWikiDisplayName(), MediaWiki\Rest\Handler\MediaFileHandler\hasRepresentation(), ImagePage\imageHistory(), RevertAction\onSubmit(), RevertAction\onSuccess(), ImagePage\openShowImage(), ImagePage\printSharedImageText(), UploadStash\removeFileNoAuth(), MediaWiki\Rest\Handler\MediaFileHandler\run(), UploadStash\stashFile(), ImagePage\uploadLinksBox(), and ImagePage\view().
getInterwikiNamespaceText | ( | ) |
Definition at line 196 of file RevisionSearchResultTrait.php.
getInterwikiPrefix | ( | ) |
Definition at line 189 of file RevisionSearchResultTrait.php.
getRedirectSnippet | ( | ) |
Definition at line 125 of file RevisionSearchResultTrait.php.
getRedirectTitle | ( | ) |
Definition at line 132 of file RevisionSearchResultTrait.php.
getSectionSnippet | ( | ) |
Definition at line 139 of file RevisionSearchResultTrait.php.
getSectionTitle | ( | ) |
Definition at line 147 of file RevisionSearchResultTrait.php.
getTextSnippet | ( | $terms = [] | ) |
string[] | $terms | Terms to highlight (this parameter is deprecated and ignored) |
Definition at line 111 of file RevisionSearchResultTrait.php.
getTimestamp | ( | ) |
Definition at line 161 of file RevisionSearchResultTrait.php.
References File\getTimestamp().
Referenced by ManualLogEntry\getRecentChange(), RevDelRevisionItem\getRevisionLink(), ManualLogEntry\insert(), ChangesList\insertTimestamp(), MediaWiki\Revision\RevisionRecord\isReadyForInsertion(), and MediaWiki\Session\Token\match().
getTitle | ( | ) |
Definition at line 81 of file RevisionSearchResultTrait.php.
References $mTitle.
Referenced by WatchAction\__construct(), OutputPage\addAcceptLanguage(), Article\addHelpLink(), OutputPage\addParserOutputMetadata(), Skin\addToSidebarPlain(), Parser\addTrackingCategory(), OutputPage\addWikiTextAsContent(), OutputPage\addWikiTextAsInterface(), McrUndoAction\alterForm(), RevertAction\alterForm(), Parser\braceSubstitution(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildCreateAccountData(), SkinTemplate\buildLoginData(), SkinTemplate\buildLogoutLinkData(), Skin\buildNavUrls(), SkinTemplate\buildPersonalUrls(), RequestContext\canUseWikiPage(), UploadBase\checkAgainstExistingDupes(), Action\checkCanExecute(), McrUndoAction\checkCanExecute(), RevertAction\checkCanExecute(), HistoryPager\curLink(), Article\doDelete(), WikiPage\doDeleteArticleBatched(), WikiPage\doDeleteArticleReal(), RecentChange\doMarkPatrolled(), MediaWiki\Storage\PageUpdater\doModify(), ImagePage\doRenderLangOpt(), SpecialTags\doTagRow(), MediaWiki\Storage\DerivedPageDataUpdater\doUpdates(), Article\fetchRevisionRecord(), Parser\fetchTemplateAndTitle(), Parser\finalizeHeadings(), HistoryPager\formatRow(), HTMLForm\getAction(), WikiPage\getAutoDeleteReason(), PreferencesFormOOUI\getButtons(), Skin\getCategories(), Skin\getCategoryLinks(), EditPage\getCheckboxesDefinitionForWatchlist(), Skin\getCopyright(), WikiPage\getCreator(), RevertAction\getDescription(), DifferenceEngine\getDiffLang(), OutputPage\getDisplayTitle(), HistoryPager\getEndBody(), SpecialUpload\getExistsWarning(), EditPage\getExpectedParentRevision(), Parser\getExternalLinkAttribs(), ImageListPager\getForm(), RevertAction\getFormFields(), OutputPage\getHeadLinksArray(), HTMLForm\getHiddenFields(), OutputPage\getJSVars(), Skin\getLanguages(), UploadBase\getLocalFile(), WikiPage\getMutableCacheKeys(), SkinTemplate\getNameSpaceKey(), Article\getOldIDFromRequest(), UsersPager\getPageHeader(), Action\getPageTitle(), InfoAction\getPageTitle(), RevertAction\getPageTitle(), WikiPage\getParserOutput(), EditPage\getPreviewText(), RawAction\getRawText(), Skin\getRelevantTitle(), SkinTemplate\getReturnToParam(), Article\getRobotPolicy(), WikiPage\getSourceURL(), HistoryPager\getStartBody(), Parser\getTargetLanguage(), Skin\getUndeleteLink(), OutputPage\getUnprefixedDisplayTitle(), WikiPage\getWikiId(), RequestContext\getWikiPage(), Parser\handleDoubleUnderscore(), Parser\handleExternalLinks(), Parser\handleInternalLinks2(), RollbackAction\handleRollbackRequest(), OutputPage\headElement(), HistoryPager\historyLine(), ImagePage\imageDupes(), ImagePage\imageLinks(), WikiRevision\importLogItem(), EditPage\internalAttemptSave(), MediaWiki\Storage\DerivedPageDataUpdater\isCountable(), WikiCategoryPage\isExpectedUnusedCategory(), Article\isFileCacheable(), WikiCategoryPage\isHidden(), OutputPage\isRevisionCurrent(), HistoryPager\lastLink(), ImagePage\loadFile(), WikiPage\loadLastEdit(), DifferenceEngine\loadRevisionData(), DifferenceEngine\loadRevisionIds(), WikiPage\lockAndGetLatest(), Parser\magicLinkCallback(), MediaWiki\main(), Parser\makeFreeExternalLink(), MediaWiki\Storage\PageUpdater\makeNewRevision(), WikiPage\makeParserOptions(), EditPage\newTextConflictHelper(), McrUndoAction\onSubmit(), RevertAction\onSubmit(), UnwatchAction\onSubmit(), WatchAction\onSubmit(), McrUndoAction\onSuccess(), RevertAction\onSuccess(), UnwatchAction\onSuccess(), WatchAction\onSuccess(), RawAction\onView(), ImagePage\openShowImage(), CreditsAction\othersLink(), InfoAction\pageInfo(), OutputPage\parseAsContent(), OutputPage\parseAsInterface(), UploadBase\performUpload(), SpecialBlock\postText(), MediaWiki\Storage\DerivedPageDataUpdater\prepareContent(), SkinTemplate\prepareQuickTemplate(), LocalFile\prerenderThumbnails(), Skin\printSource(), Parser\pstPass2(), File\purgeDescription(), File\purgeEverything(), RecentChange\reallyMarkPatrolled(), Parser\renderImageGallery(), DifferenceEngine\renderNewRevision(), HistoryPager\revLink(), MediaWiki\schedulePostSendJobs(), OutputPage\setFeedAppendQuery(), Article\setOldSubtitle(), SkinTemplate\setupTemplateContext(), McrUndoAction\show(), Article\showDeletedRevisionHeader(), DifferenceEngine\showDiffPage(), SpecialRevisionDelete\showForm(), EditPage\showHeader(), Article\showMissingArticle(), Article\showNamespaceHeader(), Article\showPatrolFooter(), McrUndoAction\showPreview(), Article\showRedirectedFromHeader(), EditPage\showTextbox1(), Article\showViewFooter(), EditPage\toEditContent(), Article\tryFileCache(), WikiPage\updateCategoryCounts(), WikiPage\updateRedirectOn(), ImagePage\uploadLinksBox(), MWExceptionRenderer\useOutputPage(), ArchivedFile\userCan(), OutputPage\userCanPreview(), UploadBase\validateName(), UploadBase\verifyPartialFile(), UploadBase\verifyTitlePermissions(), Article\view(), CategoryPage\view(), ImagePage\view(), Article\viewRedirect(), File\wasDeleted(), and OutputPage\wrapWikiTextAsInterface().
getTitleSnippet | ( | ) |
Definition at line 118 of file RevisionSearchResultTrait.php.
getWordCount | ( | ) |
Definition at line 173 of file RevisionSearchResultTrait.php.
References initText().
|
protected |
Initialize from a Title and if possible initializes a corresponding RevisionRecord and File.
Title | null | $title |
Definition at line 42 of file RevisionSearchResultTrait.php.
References $title, and NS_FILE.
Referenced by RevisionSearchResult\__construct().
|
protected |
Lazy initialization of article text from DB.
Definition at line 96 of file RevisionSearchResultTrait.php.
References $content.
Referenced by getByteSize(), SqlSearchResult\getTextSnippet(), and getWordCount().
isBrokenTitle | ( | ) |
Check if this is result points to an invalid title.
Definition at line 65 of file RevisionSearchResultTrait.php.
isFileMatch | ( | ) |
Did this match file contents (eg: PDF/DJVU)?
Definition at line 204 of file RevisionSearchResultTrait.php.
isMissingRevision | ( | ) |
Check if target page is missing, happens when index is out of date.
Definition at line 74 of file RevisionSearchResultTrait.php.
References $mImage.
|
protected |
Definition at line 24 of file RevisionSearchResultTrait.php.
Referenced by getFile(), and isMissingRevision().
|
protected |
Definition at line 34 of file RevisionSearchResultTrait.php.
Referenced by ParserOutput\getRawText(), and TextContent\getText().
|
protected |
Definition at line 29 of file RevisionSearchResultTrait.php.
Referenced by WikiPage\__clone(), LinksDeletionUpdate\doIncrementalUpdate(), WikiFilePage\getForeignCategories(), LinksUpdate\getTitle(), getTitle(), UploadBase\getTitle(), and EditPage\updateWatchlist().
trait RevisionSearchResultTrait |
Transitional trait used to share the methods between SearchResult and RevisionSearchResult.
All the content of this trait can be moved to RevisionSearchResult once SearchResult is finally refactored into an abstract class. NOTE: This trait MUST NOT be used by something else than SearchResult and RevisionSearchResult. It will be removed without deprecation period once SearchResult
Definition at line 15 of file RevisionSearchResultTrait.php.