PHP Класс eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor\Field\MapLocationDistance

Наследование: extends eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor\FieldBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$fieldName string Name of the field type's indexed field that criterion can handle.

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

Метод Описание
__construct ( FieldNameResolver $fieldNameResolver, string $fieldName )
canVisit ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause ) : boolean Check if visitor is applicable to current sortClause.
visit ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause ) : mixed Map field value to a proper Elasticsearch representation.

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

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

public __construct ( FieldNameResolver $fieldNameResolver, string $fieldName )
$fieldNameResolver eZ\Publish\Core\Search\Common\FieldNameResolver
$fieldName string

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

Check if visitor is applicable to current sortClause.
public canVisit ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause ) : boolean
$sortClause eZ\Publish\API\Repository\Values\Content\Query\SortClause
Результат boolean

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

Map field value to a proper Elasticsearch representation.
public visit ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause ) : mixed
$sortClause eZ\Publish\API\Repository\Values\Content\Query\SortClause
Результат mixed

Описание свойств

$fieldName защищенное свойство

Name of the field type's indexed field that criterion can handle.
protected string $fieldName
Результат string