MediaWiki REL1_33
MockSearchResult Class Reference
Inheritance diagram for MockSearchResult:
Collaboration diagram for MockSearchResult:

Public Member Functions

 getInterwikiPrefix ()
 
 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.
 
 setBrokenTitle ( $isBrokenTitle)
 
 setInterwikiPrefix ( $interwikiPrefix)
 
 setMissingRevision ( $isMissingRevision)
 
- Public Member Functions inherited from SearchResult
 getByteSize ()
 
 getCategorySnippet ()
 
 getExtensionData ()
 Get the extension data as: augmentor name => data.
 
 getFile ()
 Get the file for this page, if one exists.
 
 getInterwikiNamespaceText ()
 
 getRedirectSnippet ()
 
 getRedirectTitle ()
 
 getSectionSnippet ()
 
 getSectionTitle ()
 
 getTextSnippet ( $terms)
 
 getTimestamp ()
 
 getTitle ()
 
 getTitleSnippet ()
 
 getWordCount ()
 
 isFileMatch ()
 Did this match file contents (eg: PDF/DJVU)?
 
 setExtensionData ( $extensionData)
 Set extension data for this result.
 

Private Attributes

 $isBrokenTitle = false
 
 $isMissingRevision = false
 

Additional Inherited Members

- Static Public Member Functions inherited from SearchResult
static newFromTitle ( $title, SearchResultSet $parentSet=null)
 Return a new SearchResult and initializes it with a title.
 
- Protected Member Functions inherited from SearchResult
 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 inherited from SearchResult
Closure null $extensionData
 A function returning a set of extension data.
 
File $mImage = null
 
Revision $mRevision = null
 
string $mText
 
Title $mTitle
 
SearchEngine $searchEngine
 

Detailed Description

Definition at line 3 of file MockSearchResult.php.

Member Function Documentation

◆ getInterwikiPrefix()

MockSearchResult::getInterwikiPrefix ( )
Returns
string Interwiki prefix of the title (return iw even if title is broken)

Reimplemented from SearchResult.

Definition at line 24 of file MockSearchResult.php.

◆ isBrokenTitle()

MockSearchResult::isBrokenTitle ( )

Check if this is result points to an invalid title.

Returns
bool

Reimplemented from SearchResult.

Definition at line 15 of file MockSearchResult.php.

References $isBrokenTitle.

Referenced by setBrokenTitle().

◆ isMissingRevision()

MockSearchResult::isMissingRevision ( )

Check if target page is missing, happens when index is out of date.

Returns
bool

Reimplemented from SearchResult.

Definition at line 7 of file MockSearchResult.php.

References $isMissingRevision.

Referenced by setMissingRevision().

◆ setBrokenTitle()

MockSearchResult::setBrokenTitle (   $isBrokenTitle)

Definition at line 19 of file MockSearchResult.php.

References $isBrokenTitle, and isBrokenTitle().

◆ setInterwikiPrefix()

MockSearchResult::setInterwikiPrefix (   $interwikiPrefix)

Definition at line 28 of file MockSearchResult.php.

◆ setMissingRevision()

MockSearchResult::setMissingRevision (   $isMissingRevision)

Definition at line 10 of file MockSearchResult.php.

References $isMissingRevision, and isMissingRevision().

Member Data Documentation

◆ $isBrokenTitle

MockSearchResult::$isBrokenTitle = false
private

Definition at line 5 of file MockSearchResult.php.

Referenced by isBrokenTitle(), and setBrokenTitle().

◆ $isMissingRevision

MockSearchResult::$isMissingRevision = false
private

Definition at line 4 of file MockSearchResult.php.

Referenced by isMissingRevision(), and setMissingRevision().


The documentation for this class was generated from the following file: