MediaWiki REL1_34
|
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 Revision 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 | $mTitle |
trait | RevisionSearchResultTrait |
Transitional trait used to share the methods between SearchResult and RevisionSearchResult. | |
getByteSize | ( | ) |
Definition at line 174 of file RevisionSearchResultTrait.php.
References initText().
getCategorySnippet | ( | ) |
Definition at line 147 of file RevisionSearchResultTrait.php.
getFile | ( | ) |
Get the file for this page, if one exists.
Definition at line 82 of file RevisionSearchResultTrait.php.
References $mImage.
Referenced by HttpError\doLog(), UploadStash\getFileProps(), UploadStash\getMetadata(), UploadStash\removeFileNoAuth(), and UploadStash\stashFile().
getInterwikiNamespaceText | ( | ) |
Definition at line 189 of file RevisionSearchResultTrait.php.
getInterwikiPrefix | ( | ) |
Definition at line 182 of file RevisionSearchResultTrait.php.
getRedirectSnippet | ( | ) |
Definition at line 118 of file RevisionSearchResultTrait.php.
getRedirectTitle | ( | ) |
Definition at line 125 of file RevisionSearchResultTrait.php.
getSectionSnippet | ( | ) |
Definition at line 132 of file RevisionSearchResultTrait.php.
getSectionTitle | ( | ) |
Definition at line 140 of file RevisionSearchResultTrait.php.
getTextSnippet | ( | $terms = [] | ) |
string[] | $terms | Terms to highlight (this parameter is deprecated and ignored) |
Definition at line 104 of file RevisionSearchResultTrait.php.
getTimestamp | ( | ) |
Definition at line 154 of file RevisionSearchResultTrait.php.
References File\getTimestamp().
Referenced by ManualLogEntry\getRecentChange(), ManualLogEntry\insert(), ChangesList\insertTimestamp(), and MediaWiki\Session\Token\match().
getTitle | ( | ) |
Definition at line 74 of file RevisionSearchResultTrait.php.
References $mTitle.
Referenced by OutputPage\addAcceptLanguage(), MediaWiki\Extension\OATHAuth\Special\OATHManage\addCustomContent(), OutputPage\addParserOutputMetadata(), Skin\addToSidebarPlain(), OutputPage\addWikiTextAsContent(), OutputPage\addWikiTextAsInterface(), WikiPage\archiveRevisions(), SkinTemplate\buildContentNavigationUrls(), SkinTemplate\buildNavUrls(), SkinTemplate\buildPersonalUrls(), RequestContext\canUseWikiPage(), Action\checkCanExecute(), MediaWiki\Extension\OATHAuth\Special\OATHManage\clearPage(), WikiPage\doDeleteArticleBatched(), RecentChange\doMarkPatrolled(), WikiPage\doPurge(), SpecialTags\doTagRow(), MonoBookTemplate\execute(), Parser\fetchTemplateAndTitle(), HTMLForm\getAction(), WikiPage\getAutoDeleteReason(), PreferencesFormOOUI\getButtons(), Skin\getCategories(), Skin\getCategoryLinks(), Skin\getCopyright(), WikiPage\getDeletionUpdates(), OutputPage\getDisplayTitle(), SpecialUpload\getExistsWarning(), ImageListPager\getForm(), OutputPage\getHeadLinksArray(), HTMLForm\getHiddenFields(), OutputPage\getJSVars(), SkinTemplate\getLanguages(), WikiPage\getMutableCacheKeys(), SkinTemplate\getNameSpaceKey(), Revision\getNext(), Action\getPageTitle(), Revision\getPrevious(), Skin\getRelevantTitle(), WikiPage\getSourceURL(), MediaWiki\Revision\RevisionStore\getTitle(), Skin\getUndeleteLink(), OutputPage\getUnprefixedDisplayTitle(), Parser\getUserSig(), RequestContext\getWikiPage(), OutputPage\headElement(), OutputPage\isRevisionCurrent(), Skin\lastModified(), WikiPage\loadLastEdit(), WikiPage\lockAndGetLatest(), MediaWiki\main(), WikiPage\makeParserOptions(), MediaWiki\Revision\RevisionStore\newMutableRevisionFromArray(), MediaWiki\Revision\RevisionStore\newRevisionFromRowAndSlots(), OutputPage\parse(), OutputPage\parseAsContent(), OutputPage\parseAsInterface(), OutputPage\parseInline(), SpecialBlock\postText(), SkinTemplate\prepareQuickTemplate(), Skin\printSource(), File\purgeDescription(), File\purgeEverything(), RecentChange\reallyMarkPatrolled(), Category\refreshCounts(), RecentChange\save(), OutputPage\setFeedAppendQuery(), SkinTemplate\setupTemplateForOutput(), MediaWiki\Extension\OATHAuth\Special\OATHManage\showDisableWarning(), SpecialRevisionDelete\showForm(), MediaWiki\triggerJobs(), WikiPage\updateCategoryCounts(), WikiPage\updateRedirectOn(), MWExceptionRenderer\useOutputPage(), OutputPage\userCanEditOrCreate(), OutputPage\userCanPreview(), File\wasDeleted(), and OutputPage\wrapWikiTextAsInterface().
getTitleSnippet | ( | ) |
Definition at line 111 of file RevisionSearchResultTrait.php.
getWordCount | ( | ) |
Definition at line 166 of file RevisionSearchResultTrait.php.
References initText().
|
protected |
Initialize from a Title and if possible initializes a corresponding Revision and File.
Title | $title |
Definition at line 39 of file RevisionSearchResultTrait.php.
References $title, and NS_FILE.
Referenced by RevisionSearchResult\__construct().
|
protected |
Lazy initialization of article text from DB.
Definition at line 89 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 58 of file RevisionSearchResultTrait.php.
isFileMatch | ( | ) |
Did this match file contents (eg: PDF/DJVU)?
Definition at line 197 of file RevisionSearchResultTrait.php.
isMissingRevision | ( | ) |
Check if target page is missing, happens when index is out of date.
Definition at line 67 of file RevisionSearchResultTrait.php.
References $mImage.
|
protected |
Definition at line 21 of file RevisionSearchResultTrait.php.
Referenced by getFile(), and isMissingRevision().
|
protected |
Definition at line 31 of file RevisionSearchResultTrait.php.
Referenced by ParserOutput\getRawText().
|
protected |
Definition at line 26 of file RevisionSearchResultTrait.php.
Referenced by WikiPage\__clone(), WikiPage\doDeleteArticleBatched(), LinksDeletionUpdate\doIncrementalUpdate(), Category\getTitle(), RecentChange\getTitle(), LinksUpdate\getTitle(), HTMLForm\getTitle(), WikiPage\getTitle(), and getTitle().
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 12 of file RevisionSearchResultTrait.php.