MediaWiki
master
|
Public Member Functions | |
__construct ($row=null) | |
getByteSize () | |
getInterwikiPrefix () | |
getRedirectSnippet ($terms) | |
getRedirectTitle () | |
getScore () | |
getSectionSnippet () | |
getSectionTitle () | |
getTextSnippet ($terms) | |
getTimestamp () | |
getTitle () | |
getTitleSnippet ($terms) | |
getWordCount () | |
hasRelated () | |
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. | |
Static Public Member Functions | |
static | newFromRow ($row) |
Return a new SearchResult and initializes it with a row. | |
static | newFromTitle ($title) |
Return a new SearchResult and initializes it with a title. | |
Public Attributes | |
$mImage = null | |
Revision | $mRevision = null |
String | $mText |
Title | $mTitle |
Protected Member Functions | |
initFromRow ($row) | |
Initialize from a database row. | |
initFromTitle ($title) | |
Initialize from a Title and if possible initializes a corresponding Revision and File. | |
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 678 of file SearchEngine.php.
SearchResult::__construct | ( | $ | row = null | ) |
Reimplemented in PostgresSearchResult.
Definition at line 716 of file SearchEngine.php.
Definition at line 877 of file SearchEngine.php.
References initText().
Definition at line 892 of file SearchEngine.php.
SearchResult::getRedirectSnippet | ( | $ | terms | ) |
$terms | Array: terms to highlight |
Definition at line 830 of file SearchEngine.php.
Definition at line 837 of file SearchEngine.php.
Reimplemented in PostgresSearchResult.
Definition at line 781 of file SearchEngine.php.
Definition at line 844 of file SearchEngine.php.
Definition at line 851 of file SearchEngine.php.
SearchResult::getTextSnippet | ( | $ | terms | ) |
$terms | Array: terms to highlight |
Definition at line 805 of file SearchEngine.php.
Definition at line 858 of file SearchEngine.php.
Definition at line 774 of file SearchEngine.php.
SearchResult::getTitleSnippet | ( | $ | terms | ) |
$terms | Array: terms to highlight |
Definition at line 822 of file SearchEngine.php.
Definition at line 869 of file SearchEngine.php.
References initText().
Definition at line 885 of file SearchEngine.php.
SearchResult::initFromRow | ( | $ | row | ) | [protected] |
Initialize from a database row.
Makes a Title and passes that to initFromTitle.
$row | object |
Definition at line 729 of file SearchEngine.php.
SearchResult::initFromTitle | ( | $ | title | ) | [protected] |
SearchResult::initText | ( | ) | [protected] |
Lazy initialization of article text from DB.
Definition at line 788 of file SearchEngine.php.
Referenced by getByteSize(), and getWordCount().
Check if this is result points to an invalid title.
Definition at line 756 of file SearchEngine.php.
Check if target page is missing, happens when index is out of date.
Definition at line 767 of file SearchEngine.php.
static SearchResult::newFromRow | ( | $ | row | ) | [static] |
Return a new SearchResult and initializes it with a row.
$row | object |
Definition at line 710 of file SearchEngine.php.
Referenced by SqlSearchResultSet\next().
static SearchResult::newFromTitle | ( | $ | title | ) | [static] |
Return a new SearchResult and initializes it with a title.
$title | Title |
Definition at line 699 of file SearchEngine.php.
SearchResult::$mImage = null |
Definition at line 683 of file SearchEngine.php.
Revision SearchResult::$mRevision = null |
Definition at line 682 of file SearchEngine.php.
String SearchResult::$mText |
Definition at line 691 of file SearchEngine.php.
Title SearchResult::$mTitle |
Definition at line 687 of file SearchEngine.php.