PHP 클래스 eZ\Publish\Core\Search\Common\FieldNameGenerator

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$fieldNameMapping array We implement this mapping, because those dynamic fields are common to search backend configurations.

공개 메소드들

메소드 설명
__construct ( array $fieldNameMapping )
getName ( string $name, null | string $field = null, null | string $type = null ) : string Get name for document field.
getTypedName ( string $name, eZ\Publish\SPI\Search\FieldType $type ) : string Map field type.

메소드 상세

__construct() 공개 메소드

public __construct ( array $fieldNameMapping )
$fieldNameMapping array

getName() 공개 메소드

Consists of a name, and optionally field name and a content type name.
public getName ( string $name, null | string $field = null, null | string $type = null ) : string
$name string
$field null | string
$type null | string
리턴 string

getTypedName() 공개 메소드

For indexing backend the following scheme will always be used for names: {name}_{type}. Using dynamic fields this allows to define fields either depending on types, or names. Only the field with the name 'id' remains untouched.
public getTypedName ( string $name, eZ\Publish\SPI\Search\FieldType $type ) : string
$name string
$type eZ\Publish\SPI\Search\FieldType
리턴 string

프로퍼티 상세

$fieldNameMapping 보호되어 있는 프로퍼티

We implement this mapping, because those dynamic fields are common to search backend configurations.
또한 보기: eZ\Publish\SPI\Search\FieldType Code example: array( "ez_integer" => "i", "ez_string" => "s", ... )
protected array $fieldNameMapping
리턴 array