Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\MediaWiki\Search\SearchResult Class Reference
Inheritance diagram for SMW\MediaWiki\Search\SearchResult:
Inheritance graph
[legend]
Collaboration diagram for SMW\MediaWiki\Search\SearchResult:
Collaboration graph
[legend]

Public Member Functions

 __construct ( $title)
 
 getTextSnippet ( $terms=[])
 
 getSectionTitle ()
 
 isBrokenTitle ()
 
 isMissingRevision ()
 
 setExcerpt ( $text=null, $hasHighlight=false)
 
 getExcerpt ()
 
 getTitleSnippet ()
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\MediaWiki\Search\SearchResult::__construct (   $title)
Since
3.1
Parameters
Title | null$title

Member Function Documentation

◆ getExcerpt()

SMW\MediaWiki\Search\SearchResult::getExcerpt ( )
Returns
string|null

◆ getSectionTitle()

SMW\MediaWiki\Search\SearchResult::getSectionTitle ( )

◆ getTextSnippet()

SMW\MediaWiki\Search\SearchResult::getTextSnippet (   $terms = [])

◆ getTitleSnippet()

SMW\MediaWiki\Search\SearchResult::getTitleSnippet ( )

◆ isBrokenTitle()

SMW\MediaWiki\Search\SearchResult::isBrokenTitle ( )

◆ isMissingRevision()

SMW\MediaWiki\Search\SearchResult::isMissingRevision ( )

◆ setExcerpt()

SMW\MediaWiki\Search\SearchResult::setExcerpt (   $text = null,
  $hasHighlight = false 
)

Set a text excerpt retrieved from a different back-end.

Parameters
string$text,|null
boolean$hasHighlight

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

About | General disclaimer | Privacy policy