public function applyJoin(SelectQuery $query, array $sortClauses, array $languageSettings)
    {
        foreach ($sortClauses as $nr => $sortClause) {
            foreach ($this->handlers as $handler) {
                if ($handler->accept($sortClause)) {
                    $handler->applyJoin($query, $sortClause, $nr, $languageSettings);
                    continue 2;
                }
            }

            throw new RuntimeException('No handler available for sort clause: ' . get_class($sortClause));
        }
    }
public function applyJoin(SelectQuery $query, array $sortClauses, array $languageSettings)
    {
        foreach ($sortClauses as $nr => $sortClause) {
            foreach ($this->handlers as $handler) {
                if ($handler->accept($sortClause)) {
                    $handler->applyJoin($query, $sortClause, $nr, $languageSettings);
                    continue 2;
                }
            }

            throw new RuntimeException('No handler available for sort clause: ' . get_class($sortClause));
        }
    }
public function applyJoin ( SelectQuery $ query , array $ sortClauses , array $ languageSettings ) { foreach ( $ sortClauses as $ nr => $ sortClause ) { foreach ( $ this -> handlers as $ handler ) { if ( $ handler -> accept ( $ sortClause ) ) { $ handler -> applyJoin ( $ query , $ sortClause , $ nr , $ languageSettings ) ; continue 2 ; } } throw new RuntimeException ( 'No handler available for sort clause: ' . get_class ( $ sortClause ) ) ; } }
Apply join parts of sort clauses to query.

@throws \RuntimeException If no handler is available for sort clause

@param \eZ\Publish\Core\Persistence\Database\SelectQuery $query
@param \eZ\Publish\API\Repository\Values\Content\Query\SortClause[] $sortClauses
@param array $languageSettings
Apply join parts of sort clauses to query .