MediaWiki
REL1_24
|
Public Member Functions | |
getByteSize () | |
getFile () | |
Get the file for this page, if one exists. | |
getInterwikiNamespaceText () | |
getInterwikiPrefix () | |
getRedirectSnippet () | |
getRedirectTitle () | |
getSectionSnippet () | |
getSectionTitle () | |
getTextSnippet ($terms) | |
getTimestamp () | |
getTitle () | |
getTitleSnippet () | |
getWordCount () | |
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 | newFromTitle ($title) |
Return a new SearchResult and initializes it with a title. | |
Protected Member Functions | |
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.
Get the file for this page, if one exists.
Definition at line 108 of file SearchResult.php.
Definition at line 222 of file SearchResult.php.
Definition at line 215 of file SearchResult.php.
Definition at line 159 of file SearchResult.php.
Definition at line 166 of file SearchResult.php.
Definition at line 173 of file SearchResult.php.
Definition at line 180 of file SearchResult.php.
SearchResult::getTextSnippet | ( | $ | terms | ) |
array | $terms | Terms to highlight |
Definition at line 130 of file SearchResult.php.
Definition at line 187 of file SearchResult.php.
Definition at line 100 of file SearchResult.php.
Definition at line 152 of file SearchResult.php.
SearchResult::initFromTitle | ( | $ | title | ) | [protected] |
SearchResult::initText | ( | ) | [protected] |
Lazy initialization of article text from DB.
Definition at line 115 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 84 of file SearchResult.php.
Did this match file contents (eg: PDF/DJVU)?
Definition at line 230 of file SearchResult.php.
Check if target page is missing, happens when index is out of date.
Definition at line 93 of file SearchResult.php.
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 SqlSearchResultSet\next(), and 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.