public function buildQuery(QueryAbstract $query)
    {
        $queryParts = $query->getQueryParts();
        return implode(
            ' ',
            array_filter(
                [
                    $queryParts['type'],
                    $this->getFields($queryParts),
                    $this->getTable($queryParts),
                    $this->getSet($queryParts),
                    $this->getValues($queryParts),
                    $this->getJoins($queryParts),
                    $this->getWhere($queryParts),
                    $this->getGroup($queryParts),
                    $this->getOrder($queryParts),
                    $this->getLimit($queryParts)
                ],
                function ($var) {
                    return $var !== null;
                }
            )
        );
    }
public function buildQuery(QueryAbstract $query)
    {
        $queryParts = $query->getQueryParts();
        return implode(
            ' ',
            array_filter(
                [
                    $queryParts['type'],
                    $this->getFields($queryParts),
                    $this->getTable($queryParts),
                    $this->getSet($queryParts),
                    $this->getValues($queryParts),
                    $this->getJoins($queryParts),
                    $this->getWhere($queryParts),
                    $this->getGroup($queryParts),
                    $this->getOrder($queryParts),
                    $this->getLimit($queryParts)
                ],
                function ($var) {
                    return $var !== null;
                }
            )
        );
    }
public function buildQuery ( QueryAbstract $ query ) { $ queryParts = $ query -> getQueryParts ( ) ; return implode ( ' ' , array_filter ( [ $ queryParts [ 'type' ] , $ this -> getFields ( $ queryParts ) , $ this -> getTable ( $ queryParts ) , $ this -> getSet ( $ queryParts ) , $ this -> getValues ( $ queryParts ) , $ this -> getJoins ( $ queryParts ) , $ this -> getWhere ( $ queryParts ) , $ this -> getGroup ( $ queryParts ) , $ this -> getOrder ( $ queryParts ) , $ this -> getLimit ( $ queryParts ) ] , function ( $ var ) { return $ var !== null ; } ) ) ; }
Build a query string from a QueryAbstract
@param QueryAbstract $query
@return string
Build a query string from a QueryAbstract