Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2753652
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
Fri, Jul 3, 21:32 (13 h, 56 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b2/84/42ce60f35a308d077e946f80bb88
Default Alt Text
SearchableTtmServer.php (858 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment