MediaWiki REL1_39
DummySearchIndexFieldDefinition.php
Go to the documentation of this file.
1<?php
2
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}
Dummy implementation of SearchIndexFieldDefinition for testing purposes.
Contain a class for special pages.
Basic infrastructure of the field definition.
string $type
Type of the field, one of the constants above.
int $flags
Bit flags for the field.