MediaWiki
REL1_19
|
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 | |
$mRevision = null | |
$mText | |
$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 673 of file SearchEngine.php.
SearchResult::__construct | ( | $ | row = null | ) |
Reimplemented in PostgresSearchResult.
Definition at line 714 of file SearchEngine.php.
References initFromRow().
Definition at line 867 of file SearchEngine.php.
References initText().
Definition at line 882 of file SearchEngine.php.
SearchResult::getRedirectSnippet | ( | $ | terms | ) |
$terms | Array: terms to highlight |
Definition at line 820 of file SearchEngine.php.
Definition at line 827 of file SearchEngine.php.
Reimplemented in PostgresSearchResult.
Definition at line 776 of file SearchEngine.php.
Definition at line 834 of file SearchEngine.php.
Definition at line 841 of file SearchEngine.php.
SearchResult::getTextSnippet | ( | $ | terms | ) |
$terms | Array: terms to highlight |
Definition at line 797 of file SearchEngine.php.
References $wgAdvancedSearchHighlighting, $wgUser, initText(), and SearchEngine\userHighlightPrefs().
Definition at line 848 of file SearchEngine.php.
Definition at line 769 of file SearchEngine.php.
SearchResult::getTitleSnippet | ( | $ | terms | ) |
$terms | Array: terms to highlight |
Definition at line 812 of file SearchEngine.php.
Definition at line 859 of file SearchEngine.php.
References initText().
Definition at line 875 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 727 of file SearchEngine.php.
References initFromTitle(), and Title\makeTitle().
Referenced by __construct().
SearchResult::initFromTitle | ( | $ | title | ) | [protected] |
Initialize from a Title and if possible initializes a corresponding Revision and File.
$title | Title |
Definition at line 737 of file SearchEngine.php.
References $title, newFromTitle(), and wfFindFile().
Referenced by initFromRow().
SearchResult::initText | ( | ) | [protected] |
Lazy initialization of article text from DB.
Definition at line 783 of file SearchEngine.php.
Referenced by getByteSize(), getTextSnippet(), and getWordCount().
Check if this is result points to an invalid title.
Definition at line 751 of file SearchEngine.php.
Check if target page is missing, happens when index is out of date.
Definition at line 762 of file SearchEngine.php.
static SearchResult::newFromRow | ( | $ | row | ) | [static] |
Return a new SearchResult and initializes it with a row.
$row | object |
Definition at line 708 of file SearchEngine.php.
References $result.
Referenced by SqlSearchResultSet\next().
static SearchResult::newFromTitle | ( | $ | title | ) | [static] |
Return a new SearchResult and initializes it with a title.
$title | Title |
Definition at line 697 of file SearchEngine.php.
References $result, and $title.
Referenced by initFromTitle(), and SearchNearMatchResultSet\next().
SearchResult::$mImage = null |
Definition at line 679 of file SearchEngine.php.
SearchResult::$mRevision = null |
Definition at line 678 of file SearchEngine.php.
SearchResult::$mText |
Definition at line 689 of file SearchEngine.php.
SearchResult::$mTitle |
Definition at line 684 of file SearchEngine.php.