eZ\Publish\Core\Search\Legacy\Content\Location\Gateway\SortClauseHandler\Location\Visibility::applySelect PHP Method

applySelect() public method

Returns the name of the (aliased) column, which information should be used for sorting.
public applySelect ( eZ\Publish\Core\Persistence\Database\SelectQuery $query, eZ\Publish\API\Repository\Values\Content\Query\SortClause $sortClause, integer $number ) : string
$query eZ\Publish\Core\Persistence\Database\SelectQuery
$sortClause eZ\Publish\API\Repository\Values\Content\Query\SortClause
$number integer
return string
    public function applySelect(SelectQuery $query, SortClause $sortClause, $number)
    {
        $query->select($query->alias($this->dbHandler->quoteColumn('is_invisible', 'ezcontentobject_tree'), $column = $this->getSortColumnName($number)));
        return $column;
    }