MediaWiki REL1_32
|
Public Member Functions | |
getByteSize () | |
getCategorySnippet () | |
getExtensionData () | |
Get the extension data as: augmentor name => data. | |
getFile () | |
Get the file for this page, if one exists. | |
getInterwikiNamespaceText () | |
getInterwikiPrefix () | |
getRedirectSnippet () | |
getRedirectTitle () | |
getSectionSnippet () | |
getSectionTitle () | |
getTextSnippet ( $terms) | |
getTimestamp () | |
getTitle () | |
getTitleSnippet () | |
getWordCount () | |
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. | |
setExtensionData ( $extensionData) | |
Set extension data for this result. | |
Static Public Member Functions | |
static | newFromTitle ( $title, SearchResultSet $parentSet=null) |
Return a new SearchResult and initializes it with a title. | |
Protected Member Functions | |
initFromTitle ( $title) | |
Initialize from a Title and if possible initializes a corresponding Revision and File. | |
initText () | |
Lazy initialization of article text from DB. | |
Protected Attributes | |
Closure null | $extensionData |
A function returning a set of extension data. | |
File | $mImage = null |
Revision | $mRevision = null |
string | $mText |
Title | $mTitle |
SearchEngine | $searchEngine |
Definition at line 32 of file SearchResult.php.
SearchResult::getByteSize | ( | ) |
SearchResult::getCategorySnippet | ( | ) |
Definition at line 210 of file SearchResult.php.
SearchResult::getExtensionData | ( | ) |
Get the extension data as: augmentor name => data.
Definition at line 269 of file SearchResult.php.
SearchResult::getFile | ( | ) |
Get the file for this page, if one exists.
Definition at line 130 of file SearchResult.php.
SearchResult::getInterwikiNamespaceText | ( | ) |
Definition at line 252 of file SearchResult.php.
SearchResult::getInterwikiPrefix | ( | ) |
Reimplemented in MockSearchResult.
Definition at line 245 of file SearchResult.php.
SearchResult::getRedirectSnippet | ( | ) |
Definition at line 181 of file SearchResult.php.
SearchResult::getRedirectTitle | ( | ) |
Definition at line 188 of file SearchResult.php.
SearchResult::getSectionSnippet | ( | ) |
Definition at line 195 of file SearchResult.php.
SearchResult::getSectionTitle | ( | ) |
Definition at line 203 of file SearchResult.php.
SearchResult::getTextSnippet | ( | $terms | ) |
array | $terms | Terms to highlight |
Definition at line 152 of file SearchResult.php.
References $wgAdvancedSearchHighlighting, initText(), and list.
SearchResult::getTimestamp | ( | ) |
Definition at line 217 of file SearchResult.php.
SearchResult::getTitle | ( | ) |
Definition at line 122 of file SearchResult.php.
SearchResult::getTitleSnippet | ( | ) |
Definition at line 174 of file SearchResult.php.
SearchResult::getWordCount | ( | ) |
|
protected |
Initialize from a Title and if possible initializes a corresponding Revision and File.
Title | $title |
Definition at line 87 of file SearchResult.php.
References $title, Revision\newFromTitle(), NS_FILE, and wfFindFile().
|
protected |
Lazy initialization of article text from DB.
Definition at line 137 of file SearchResult.php.
Referenced by getByteSize(), getTextSnippet(), and getWordCount().
SearchResult::isBrokenTitle | ( | ) |
Check if this is result points to an invalid title.
Reimplemented in MockSearchResult.
Definition at line 106 of file SearchResult.php.
SearchResult::isFileMatch | ( | ) |
Did this match file contents (eg: PDF/DJVU)?
Definition at line 260 of file SearchResult.php.
SearchResult::isMissingRevision | ( | ) |
Check if target page is missing, happens when index is out of date.
Reimplemented in MockSearchResult.
Definition at line 115 of file SearchResult.php.
|
static |
Return a new SearchResult and initializes it with a title.
Title | $title | |
SearchResultSet | null | $parentSet |
Definition at line 72 of file SearchResult.php.
References $title.
Referenced by ApiQuerySearchTest\mockResultClosure().
SearchResult::setExtensionData | ( | $extensionData | ) |
Set extension data for this result.
The data is: augmentor name => data
Closure | array | $extensionData | Takes no arguments, returns either array of extension data or null. |
Definition at line 284 of file SearchResult.php.
References $extensionData, $type, use, and wfDeprecated().
|
protected |
A function returning a set of extension data.
Definition at line 63 of file SearchResult.php.
Referenced by setExtensionData().
|
protected |
Definition at line 42 of file SearchResult.php.
|
protected |
Definition at line 37 of file SearchResult.php.
|
protected |
Definition at line 52 of file SearchResult.php.
|
protected |
Definition at line 47 of file SearchResult.php.
|
protected |
Definition at line 57 of file SearchResult.php.