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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$contentTypeHandler eZ\Publish\SPI\Persistence\Content\Type\Handler Content type handler.
$fieldRegistry FieldRegistry Field registry.
$nameGenerator FieldNameGenerator Field name generator.

공개 메소드들

메소드 설명
__construct ( FieldRegistry $fieldRegistry, eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler, FieldNameGenerator $nameGenerator ) Create from search field registry, content type handler and field name generator.
getFieldNames ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $fieldDefinitionIdentifier, null | string $fieldTypeIdentifier = null, null | string $name = null ) : string[] For the given parameters returns a set of search backend field names to search on.
getFieldTypes ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $fieldDefinitionIdentifier, null | string $fieldTypeIdentifier = null, null | string $name = null ) : array For the given parameters returns a set of search backend field names/types to search on.
getIndexFieldName ( object $criterionOrSortClause, string $contentTypeIdentifier, string $fieldDefinitionIdentifier, string $fieldTypeIdentifier, string $name, boolean $isSortField ) : string Returns index field name for the given parameters.
getSortFieldName ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause, string $contentTypeIdentifier, string $fieldDefinitionIdentifier, null | string $name = null ) : null | string For the given parameters returns search backend field name to sort on or null if the field could not be found.

보호된 메소드들

메소드 설명
getSearchableFieldMap ( ) : array[] Get content type, field definition and field type mapping information.

메소드 상세

__construct() 공개 메소드

Create from search field registry, content type handler and field name generator.
public __construct ( FieldRegistry $fieldRegistry, eZ\Publish\SPI\Persistence\Content\Type\Handler $contentTypeHandler, FieldNameGenerator $nameGenerator )
$fieldRegistry FieldRegistry
$contentTypeHandler eZ\Publish\SPI\Persistence\Content\Type\Handler
$nameGenerator FieldNameGenerator

getFieldNames() 공개 메소드

The method will check for custom fields if given $criterion implements CustomFieldInterface. With optional parameters $fieldTypeIdentifier and $name specific field type and field from its Indexable implementation can be targeted.
또한 보기: eZ\Publish\API\Repository\Values\Content\Query\CustomFieldInterface
또한 보기: eZ\Publish\SPI\FieldType\Indexable
사용 중단: since 6.2, use getFieldTypes instead
public getFieldNames ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $fieldDefinitionIdentifier, null | string $fieldTypeIdentifier = null, null | string $name = null ) : string[]
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$fieldDefinitionIdentifier string
$fieldTypeIdentifier null | string
$name null | string
리턴 string[]

getFieldTypes() 공개 메소드

The method will check for custom fields if given $criterion implements CustomFieldInterface. With optional parameters $fieldTypeIdentifier and $name specific field type and field from its Indexable implementation can be targeted.
또한 보기: eZ\Publish\API\Repository\Values\Content\Query\CustomFieldInterface
또한 보기: eZ\Publish\SPI\FieldType\Indexable
public getFieldTypes ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, string $fieldDefinitionIdentifier, null | string $fieldTypeIdentifier = null, null | string $name = null ) : array
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$fieldDefinitionIdentifier string
$fieldTypeIdentifier null | string
$name null | string
리턴 array

getIndexFieldName() 공개 메소드

Returns index field name for the given parameters.
public getIndexFieldName ( object $criterionOrSortClause, string $contentTypeIdentifier, string $fieldDefinitionIdentifier, string $fieldTypeIdentifier, string $name, boolean $isSortField ) : string
$criterionOrSortClause object
$contentTypeIdentifier string
$fieldDefinitionIdentifier string
$fieldTypeIdentifier string
$name string
$isSortField boolean
리턴 string

getSearchableFieldMap() 보호된 메소드

Returns an array in the form: array( "" => array( "" => array( "field_definition_id" => "", "field_type_identifier" => "", ), ... ), ... )
protected getSearchableFieldMap ( ) : array[]
리턴 array[]

getSortFieldName() 공개 메소드

The method will check for custom fields if given $sortClause implements CustomFieldInterface. With optional parameter $name specific field from field type's Indexable implementation can be targeted. Will return null if no sortable field is found.
또한 보기: eZ\Publish\API\Repository\Values\Content\Query\CustomFieldInterface
또한 보기: eZ\Publish\SPI\FieldType\Indexable
public getSortFieldName ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause, string $contentTypeIdentifier, string $fieldDefinitionIdentifier, null | string $name = null ) : null | string
$sortClause eZ\Publish\API\Repository\Values\Content\Query\SortClause
$contentTypeIdentifier string
$fieldDefinitionIdentifier string
$name null | string
리턴 null | string

프로퍼티 상세

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

Content type handler.
protected Handler,eZ\Publish\SPI\Persistence\Content\Type $contentTypeHandler
리턴 eZ\Publish\SPI\Persistence\Content\Type\Handler

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

Field registry.
protected FieldRegistry,eZ\Publish\Core\Search\Common $fieldRegistry
리턴 FieldRegistry

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

Field name generator.
protected FieldNameGenerator,eZ\Publish\Core\Search\Common $nameGenerator
리턴 FieldNameGenerator