PHP Class eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor\FieldBase

Inheritance: extends eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor
Mostrar archivo Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Property Type Description
$fieldNameResolver eZ\Publish\Core\Search\Common\FieldNameResolver Field map.

Public Methods

Method Description
__construct ( FieldNameResolver $fieldNameResolver )

Protected Methods

Method Description
getNestedFilterTerm ( null | string $languageCode ) : mixed Returns the term condition for nested filter, used to target specific nested field document.
getSortFieldName ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause, string $contentTypeIdentifier, string $fieldDefinitionIdentifier, string $name = null ) : array Get sort field name.

Method Details

__construct() public method

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

getNestedFilterTerm() protected method

If given $languageCode is not null the condition targets the field document in the given translation, otherwise document for translation in main language code is returned.
protected getNestedFilterTerm ( null | string $languageCode ) : mixed
$languageCode null | string
return mixed

getSortFieldName() protected method

Get sort field name.
protected getSortFieldName ( eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause, string $contentTypeIdentifier, string $fieldDefinitionIdentifier, string $name = null ) : array
$sortClause eZ\Publish\API\Repository\Values\Content\Query\SortClause
$contentTypeIdentifier string
$fieldDefinitionIdentifier string
$name string
return array

Property Details

$fieldNameResolver protected_oe property

Field map.
protected FieldNameResolver,eZ\Publish\Core\Search\Common $fieldNameResolver
return eZ\Publish\Core\Search\Common\FieldNameResolver