MediaWiki
REL1_39
DummySearchIndexFieldDefinition.php
Go to the documentation of this file.
1
<?php
2
8
class
DummySearchIndexFieldDefinition
extends
SearchIndexFieldDefinition
{
9
15
public
function
getMapping
(
SearchEngine
$engine ) {
16
$mapping = [
17
'name'
=>
$this->name
,
18
'type'
=>
$this->type
,
19
'flags'
=>
$this->flags
,
20
'subfields'
=> []
21
];
22
23
foreach
( $this->subfields as $subfield ) {
24
$mapping[
'subfields'
][] = $subfield->getMapping( $engine );
25
}
26
27
return
$mapping;
28
}
29
30
}
DummySearchIndexFieldDefinition
Dummy implementation of SearchIndexFieldDefinition for testing purposes.
Definition
DummySearchIndexFieldDefinition.php:8
DummySearchIndexFieldDefinition\getMapping
getMapping(SearchEngine $engine)
Definition
DummySearchIndexFieldDefinition.php:15
SearchEngine
Contain a class for special pages.
Definition
SearchEngine.php:37
SearchIndexFieldDefinition
Basic infrastructure of the field definition.
Definition
SearchIndexFieldDefinition.php:12
SearchIndexFieldDefinition\$name
string $name
Name of the field.
Definition
SearchIndexFieldDefinition.php:19
SearchIndexFieldDefinition\$type
string $type
Type of the field, one of the constants above.
Definition
SearchIndexFieldDefinition.php:26
SearchIndexFieldDefinition\$flags
int $flags
Bit flags for the field.
Definition
SearchIndexFieldDefinition.php:33
includes
search
DummySearchIndexFieldDefinition.php
Generated on Mon Dec 23 2024 06:24:30 for MediaWiki by
1.10.0