Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
CrossLanguageTranslationSearchQuery Class Reference

Cross Language Translation Search. More...

Public Member Functions

 __construct (array $params, SearchableTTMServer $server)
 
 getDocuments ()
 
 getAvailableFilters ()
 
 getTotalHits ()
 
 getResultSet ()
 

Protected Member Functions

 extractMessages ( $documents)
 Extract messages from the documents and build message definitions.
 

Protected Attributes

 $server
 
 $params
 
 $resultset
 
 $total = 0
 
 $hl = [ '', '' ]
 

Detailed Description

Cross Language Translation Search.

Since
2015.08

Definition at line 7 of file CrossLanguageTranslationSearchQuery.php.

Constructor & Destructor Documentation

◆ __construct()

CrossLanguageTranslationSearchQuery::__construct ( array $params,
SearchableTTMServer $server )

Definition at line 18 of file CrossLanguageTranslationSearchQuery.php.

Member Function Documentation

◆ extractMessages()

CrossLanguageTranslationSearchQuery::extractMessages ( $documents)
protected

Extract messages from the documents and build message definitions.

Create a message collection from the definitions in the target language. Filter the message collection to get filtered messages. Slice messages according to limit and offset given.

Parameters
\Elastica\Document[]$documents
Returns
array[]

Definition at line 85 of file CrossLanguageTranslationSearchQuery.php.

◆ getAvailableFilters()

CrossLanguageTranslationSearchQuery::getAvailableFilters ( )
Returns
array

Definition at line 144 of file CrossLanguageTranslationSearchQuery.php.

◆ getDocuments()

CrossLanguageTranslationSearchQuery::getDocuments ( )

Definition at line 23 of file CrossLanguageTranslationSearchQuery.php.

◆ getResultSet()

CrossLanguageTranslationSearchQuery::getResultSet ( )

Definition at line 156 of file CrossLanguageTranslationSearchQuery.php.

◆ getTotalHits()

CrossLanguageTranslationSearchQuery::getTotalHits ( )

Definition at line 152 of file CrossLanguageTranslationSearchQuery.php.

Member Data Documentation

◆ $hl

CrossLanguageTranslationSearchQuery::$hl = [ '', '' ]
protected

Definition at line 16 of file CrossLanguageTranslationSearchQuery.php.

◆ $params

CrossLanguageTranslationSearchQuery::$params
protected

Definition at line 11 of file CrossLanguageTranslationSearchQuery.php.

◆ $resultset

CrossLanguageTranslationSearchQuery::$resultset
protected

Definition at line 13 of file CrossLanguageTranslationSearchQuery.php.

◆ $server

CrossLanguageTranslationSearchQuery::$server
protected

Definition at line 9 of file CrossLanguageTranslationSearchQuery.php.

◆ $total

CrossLanguageTranslationSearchQuery::$total = 0
protected

Definition at line 15 of file CrossLanguageTranslationSearchQuery.php.


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