MediaWiki
REL1_23
|
Public Member Functions | |
__construct ($row=null) | |
getByteSize () | |
getFile () | |
Get the file for this page, if one exists. | |
getInterwikiNamespaceText () | |
getInterwikiPrefix () | |
getRedirectSnippet () | |
getRedirectTitle () | |
getScore () | |
getSectionSnippet () | |
getSectionTitle () | |
getTextSnippet ($terms) | |
getTimestamp () | |
getTitle () | |
getTitleSnippet () | |
getWordCount () | |
hasRelated () | |
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. | |
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. | |
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. | |
Protected Attributes | |
File | $mImage = null |
Revision | $mRevision = null |
String | $mText |
Title | $mTitle |
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 30 of file SearchResult.php.
SearchResult::__construct | ( | $ | row = null | ) |
Reimplemented in PostgresSearchResult.
Definition at line 72 of file SearchResult.php.
Definition at line 238 of file SearchResult.php.
References initText().
Get the file for this page, if one exists.
Definition at line 137 of file SearchResult.php.
Definition at line 260 of file SearchResult.php.
Definition at line 253 of file SearchResult.php.
Definition at line 190 of file SearchResult.php.
Definition at line 197 of file SearchResult.php.
Reimplemented in PostgresSearchResult.
Definition at line 144 of file SearchResult.php.
Definition at line 204 of file SearchResult.php.
Definition at line 211 of file SearchResult.php.
SearchResult::getTextSnippet | ( | $ | terms | ) |
array | $terms | terms to highlight |
Definition at line 166 of file SearchResult.php.
Definition at line 218 of file SearchResult.php.
Definition at line 129 of file SearchResult.php.
Definition at line 183 of file SearchResult.php.
Definition at line 230 of file SearchResult.php.
References initText().
Definition at line 246 of file SearchResult.php.
SearchResult::initFromRow | ( | $ | row | ) | [protected] |
Initialize from a database row.
Makes a Title and passes that to initFromTitle.
$row | object |
Definition at line 85 of file SearchResult.php.
SearchResult::initFromTitle | ( | $ | title | ) | [protected] |
SearchResult::initText | ( | ) | [protected] |
Lazy initialization of article text from DB.
Definition at line 151 of file SearchResult.php.
References SearchEngine\create().
Referenced by getByteSize(), and getWordCount().
Check if this is result points to an invalid title.
Definition at line 113 of file SearchResult.php.
Did this match file contents (eg: PDF/DJVU)?
Definition at line 267 of file SearchResult.php.
Check if target page is missing, happens when index is out of date.
Definition at line 122 of file SearchResult.php.
static SearchResult::newFromRow | ( | $ | row | ) | [static] |
Return a new SearchResult and initializes it with a row.
$row | object |
Definition at line 66 of file SearchResult.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 54 of file SearchResult.php.
Referenced by SearchNearMatchResultSet\next().
File SearchResult::$mImage = null [protected] |
Definition at line 38 of file SearchResult.php.
Revision SearchResult::$mRevision = null [protected] |
Definition at line 34 of file SearchResult.php.
String SearchResult::$mText [protected] |
Definition at line 46 of file SearchResult.php.
Title SearchResult::$mTitle [protected] |
Definition at line 42 of file SearchResult.php.