%PDF- %PDF-
Direktori : /www/varak.net/wiki.varak.net/includes/search/ |
Current File : /www/varak.net/wiki.varak.net/includes/search/DummySearchIndexFieldDefinition.php |
<?php /** * Dummy implementation of SearchIndexFieldDefinition for testing purposes. * * @since 1.28 */ class DummySearchIndexFieldDefinition extends SearchIndexFieldDefinition { /** * @param SearchEngine $engine * * @return array */ public function getMapping( SearchEngine $engine ) { $mapping = [ 'name' => $this->name, 'type' => $this->type, 'flags' => $this->flags, 'subfields' => [] ]; foreach ( $this->subfields as $subfield ) { $mapping['subfields'][] = $subfield->getMapping( $engine ); } return $mapping; } }