Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5976033
SearchableTtmServer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
858 B
Referenced Files
None
Subscribers
None
SearchableTtmServer.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
MediaWiki\Extension\Translate\TtmServer
;
/**
* Interface for TtmServer that can act as backend for translation search.
* @ingroup TTMServer
*/
interface
SearchableTtmServer
{
/**
* Performs a search in the translation database.
*
* @param string $queryString String to search for.
* @param array $opts Query options like language.
* @param array $highlight Tags for highlighting.
* @return mixed Result set
*/
public
function
search
(
string
$queryString
,
array
$opts
,
array
$highlight
);
/**
* @param mixed $resultset
* @return array[]
*/
public
function
getFacets
(
$resultset
):
array
;
/** @param mixed $resultset */
public
function
getTotalHits
(
$resultset
):
int
;
/**
* @param mixed $resultset
* @return array[]
*/
public
function
getDocuments
(
$resultset
):
array
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 18:47 (1 d, 9 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
03/bb/7c5b9772bbe56993406db3861f40
Default Alt Text
SearchableTtmServer.php (858 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment