MediaWiki REL1_33
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.
int $flags
Bit flags for the field.
int $type
Type of the field, one of the constants above.
the value to return A Title object or null for latest all implement SearchIndexField $engine
Definition hooks.txt:2925