Copied!

SortClauseVisitor

SortClauseVisitor.php : 14

Visits the sort clause into a Solr query.

Methods

publiccanVisit()

SortClauseVisitor.php : 21

CHeck if visitor is applicable to current sort clause.

public abstract canVisit(SortClause $sortClause) : bool

Parameters

Name Type Default value Description
$sortClause SortClause - -

Return values

bool

publicvisit()

SortClauseVisitor.php : 28

Map field value to a proper Solr representation.

public abstract visit(SortClause $sortClause) : string

Parameters

Name Type Default value Description
$sortClause SortClause - -

Return values

string

protectedgetDirection()

SortClauseVisitor.php : 35

Get solr sort direction for sort clause.

protected getDirection(SortClause $sortClause) : string

Parameters

Name Type Default value Description
$sortClause SortClause - -

Return values

string