PHP Интерфейс Smile\ElasticsuiteCore\Api\Index\TypeInterface

Автор: Aurelien FOUCRET ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
getDatasource ( string $name ) : Smile\ElasticsuiteCore\Api\Index\DatasourceInterface Retrieve a datasource by name for the current type.
getDatasources ( ) : Smile\ElasticsuiteCore\Api\Index\DatasourceInterface[] List of datasources used by this type.
getIdField ( ) : Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface Field use as unique id for the doc.
getMapping ( ) : Smile\ElasticsuiteCore\Api\Index\MappingInterface Mapping describing all the field of the current type.
getName ( ) : string Type name.

Описание методов

getDatasource() публичный Метод

Retrieve a datasource by name for the current type.
public getDatasource ( string $name ) : Smile\ElasticsuiteCore\Api\Index\DatasourceInterface
$name string Datasource name.
Результат Smile\ElasticsuiteCore\Api\Index\DatasourceInterface

getDatasources() публичный Метод

List of datasources used by this type.
public getDatasources ( ) : Smile\ElasticsuiteCore\Api\Index\DatasourceInterface[]
Результат Smile\ElasticsuiteCore\Api\Index\DatasourceInterface[]

getIdField() публичный Метод

Field use as unique id for the doc.
public getIdField ( ) : Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface
Результат Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface

getMapping() публичный Метод

Mapping describing all the field of the current type.
public getMapping ( ) : Smile\ElasticsuiteCore\Api\Index\MappingInterface
Результат Smile\ElasticsuiteCore\Api\Index\MappingInterface

getName() публичный Метод

Type name.
public getName ( ) : string
Результат string