PHP Класс eZ\Publish\Core\FieldType\Country\SearchField

Наследование: implements eZ\Publish\SPI\FieldType\Indexable
Показать файл Открыть проект

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

Свойство Тип Описание
$countriesInfo array

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

Метод Описание
__construct ( array $countriesInfo )
getDefaultMatchField ( ) : string Get name of the default field to be used for matching.
getDefaultSortField ( ) : string Get name of the default field to be used for sorting.
getIndexData ( eZ\Publish\SPI\Persistence\Content\Field $field, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition ) : eZ\Publish\SPI\Search\Field[] Get index data for field for search backend.
getIndexDefinition ( ) : eZ\Publish\SPI\Search\FieldType[] Get index field types for search backend.

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

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

public __construct ( array $countriesInfo )
$countriesInfo array Array of countries data

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

As field types can index multiple fields (see MapLocation field type's implementation of this interface), this method is used to define default field for matching. Default field is typically used by Field criterion.
public getDefaultMatchField ( ) : string
Результат string

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

As field types can index multiple fields (see MapLocation field type's implementation of this interface), this method is used to define default field for sorting. Default field is typically used by Field sort clause.
public getDefaultSortField ( ) : string
Результат string

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

Get index data for field for search backend.
public getIndexData ( eZ\Publish\SPI\Persistence\Content\Field $field, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition ) : eZ\Publish\SPI\Search\Field[]
$field eZ\Publish\SPI\Persistence\Content\Field
$fieldDefinition eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
Результат eZ\Publish\SPI\Search\Field[]

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

Get index field types for search backend.
public getIndexDefinition ( ) : eZ\Publish\SPI\Search\FieldType[]
Результат eZ\Publish\SPI\Search\FieldType[]

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

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

protected array $countriesInfo
Результат array