MediaWiki
master
|
Public Member Functions | |
getByteSize () | |
getCategorySnippet () | |
getFile () | |
Get the file for this page, if one exists. More... | |
getInterwikiNamespaceText () | |
getInterwikiPrefix () | |
getRedirectSnippet () | |
getRedirectTitle () | |
getSectionSnippet () | |
getSectionTitle () | |
getTextSnippet ($terms) | |
getTimestamp () | |
getTitle () | |
getTitleSnippet () | |
getWordCount () | |
isBrokenTitle () | |
Check if this is result points to an invalid title. More... | |
isFileMatch () | |
Did this match file contents (eg: PDF/DJVU)? More... | |
isMissingRevision () | |
Check if target page is missing, happens when index is out of date. More... | |
Static Public Member Functions | |
static | newFromTitle ($title) |
Return a new SearchResult and initializes it with a title. More... | |
Protected Member Functions | |
initFromTitle ($title) | |
Initialize from a Title and if possible initializes a corresponding Revision and File. More... | |
initText () | |
Lazy initialization of article text from DB. More... | |
Protected Attributes | |
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 200 of file SearchResult.php.
SearchResult::getFile | ( | ) |
Get the file for this page, if one exists.
Definition at line 120 of file SearchResult.php.
References $mImage.
SearchResult::getInterwikiNamespaceText | ( | ) |
Definition at line 242 of file SearchResult.php.
SearchResult::getInterwikiPrefix | ( | ) |
Definition at line 235 of file SearchResult.php.
SearchResult::getRedirectSnippet | ( | ) |
Definition at line 171 of file SearchResult.php.
SearchResult::getRedirectTitle | ( | ) |
Definition at line 178 of file SearchResult.php.
SearchResult::getSectionSnippet | ( | ) |
Definition at line 185 of file SearchResult.php.
SearchResult::getSectionTitle | ( | ) |
Definition at line 193 of file SearchResult.php.
SearchResult::getTextSnippet | ( | $terms | ) |
array | $terms | Terms to highlight |
Definition at line 142 of file SearchResult.php.
References $wgAdvancedSearchHighlighting, global, initText(), and list.
SearchResult::getTimestamp | ( | ) |
Definition at line 207 of file SearchResult.php.
SearchResult::getTitle | ( | ) |
SearchResult::getTitleSnippet | ( | ) |
Definition at line 164 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 77 of file SearchResult.php.
References $title, Revision\newFromTitle(), NS_FILE, IDBAccessObject\READ_NORMAL, Hooks\run(), and wfFindFile().
|
protected |
Lazy initialization of article text from DB.
Definition at line 127 of file SearchResult.php.
Referenced by getByteSize(), getTextSnippet(), and getWordCount().
SearchResult::isBrokenTitle | ( | ) |
Check if this is result points to an invalid title.
Definition at line 96 of file SearchResult.php.
SearchResult::isFileMatch | ( | ) |
Did this match file contents (eg: PDF/DJVU)?
Definition at line 250 of file SearchResult.php.
SearchResult::isMissingRevision | ( | ) |
Check if target page is missing, happens when index is out of date.
Definition at line 105 of file SearchResult.php.
References $mImage.
|
static |
Return a new SearchResult and initializes it with a title.
Title | $title |
Definition at line 65 of file SearchResult.php.
References $title.
Referenced by SearchNearMatchResultSet\next(), SqlSearchResultSet\next(), and SpecialSearchTest\provideRewriteQueryWithSuggestion().
|
protected |
Definition at line 42 of file SearchResult.php.
Referenced by getFile(), and isMissingRevision().
|
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.
Referenced by getTitle().
|
protected |
Definition at line 57 of file SearchResult.php.