Inherited by PostgresSearchResult.
Public Member Functions | |
__construct ($row) | |
isBrokenTitle () | |
Check if this is result points to an invalid title. | |
isMissingRevision () | |
Check if target page is missing, happens when index is out of date. | |
getTitle () | |
getScore () | |
getTextSnippet ($terms) | |
getTitleSnippet ($terms) | |
getRedirectSnippet ($terms) | |
getRedirectTitle () | |
getSectionSnippet () | |
getSectionTitle () | |
getTimestamp () | |
getWordCount () | |
getByteSize () | |
hasRelated () | |
getInterwikiPrefix () | |
Public Attributes | |
$mRevision = null | |
$mImage = null | |
Protected Member Functions | |
initText () | |
Lazy initialization of article text from DB. |
It would probably be better to have a useful base class to which you pass some standard information, then let the fancy self-highlighters extend that.
Definition at line 547 of file SearchEngine.php.
SearchResult::__construct | ( | $ | row | ) |
Reimplemented in PostgresSearchResult.
Definition at line 551 of file SearchEngine.php.
References $row, Title::makeTitle(), Revision::newFromTitle(), and wfFindFile().
SearchResult::getByteSize | ( | ) |
SearchResult::getInterwikiPrefix | ( | ) |
Definition at line 699 of file SearchEngine.php.
SearchResult::getRedirectSnippet | ( | $ | terms | ) |
array | $terms terms to highlight |
Definition at line 637 of file SearchEngine.php.
SearchResult::getRedirectTitle | ( | ) |
Definition at line 644 of file SearchEngine.php.
SearchResult::getScore | ( | ) |
Reimplemented in PostgresSearchResult.
Definition at line 593 of file SearchEngine.php.
SearchResult::getSectionSnippet | ( | ) |
Definition at line 651 of file SearchEngine.php.
SearchResult::getSectionTitle | ( | ) |
Definition at line 658 of file SearchEngine.php.
SearchResult::getTextSnippet | ( | $ | terms | ) |
array | $terms terms to highlight |
Definition at line 614 of file SearchEngine.php.
References $wgAdvancedSearchHighlighting, $wgUser, initText(), and SearchEngine::userHighlightPrefs().
SearchResult::getTimestamp | ( | ) |
SearchResult::getTitle | ( | ) |
SearchResult::getTitleSnippet | ( | $ | terms | ) |
array | $terms terms to highlight |
Definition at line 629 of file SearchEngine.php.
SearchResult::getWordCount | ( | ) |
SearchResult::hasRelated | ( | ) |
SearchResult::initText | ( | ) | [protected] |
Lazy initialization of article text from DB.
Definition at line 600 of file SearchEngine.php.
Referenced by getByteSize(), getTextSnippet(), and getWordCount().
SearchResult::isBrokenTitle | ( | ) |
Check if this is result points to an invalid title.
Definition at line 566 of file SearchEngine.php.
SearchResult::isMissingRevision | ( | ) |
Check if target page is missing, happens when index is out of date.
Definition at line 578 of file SearchEngine.php.
SearchResult::$mImage = null |
Definition at line 549 of file SearchEngine.php.
SearchResult::$mRevision = null |
Definition at line 548 of file SearchEngine.php.