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

Inheritance: extends eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor
ファイルを表示 Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$visitors eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor[] Array of available visitors.

Public Methods

Method Description
__construct ( array $visitors = [] ) Construct from optional visitor array.
addVisitor ( SortClauseVisitor $visitor ) Adds visitor.
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.

Method Details

__construct() public method

Construct from optional visitor array.
public __construct ( array $visitors = [] )
$visitors array

addVisitor() public method

Adds visitor.
public addVisitor ( SortClauseVisitor $visitor )
$visitor eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor

canVisit() public method

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
return boolean

visit() public method

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
return mixed

Property Details

$visitors protected_oe property

Array of available visitors.
protected SortClauseVisitor[],eZ\Publish\Core\Search\Elasticsearch\Content $visitors
return eZ\Publish\Core\Search\Elasticsearch\Content\SortClauseVisitor[]