public function toSQL(Parameters $params, bool $inner_clause)
    {
        $drv = $params->getDriver();
        $clauses = $this->getClauses();

        $strs = array();
        foreach ($clauses as $clause)
            $strs[] = $drv->toSQL($params, $clause);

        if (count($strs) === 0)
            return;

        return "ORDER BY " . implode(", ", $strs);
    }
public function toSQL(Parameters $params, bool $inner_clause)
    {
        $drv = $params->getDriver();
        $clauses = $this->getClauses();

        $strs = array();
        foreach ($clauses as $clause)
            $strs[] = $drv->toSQL($params, $clause);

        if (count($strs) === 0)
            return;

        return "ORDER BY " . implode(", ", $strs);
    }
public function toSQL ( Parameters $ params , bool $ inner_clause ) { $ drv = $ params -> getDriver ( ) ; $ clauses = $ this -> getClauses ( ) ; $ strs = array ( ) ; foreach ( $ clauses as $ clause ) $ strs [ ] = $ drv -> toSQL ( $ params , $ clause ) ; if ( count ( $ strs ) === 0 ) return ; return "ORDER BY " . implode ( ", " , $ strs ) ; }
Write a order clause as SQL query syntax
@param Parameters $params The query parameters: tables and placeholder values
@param bool $inner_clause Unused
@return string The generated SQL
Write a order clause as SQL query syntax