src/SqlGenerator.php
protected function generateWhereSQL($strip = false)
        {
            $sql = $this->generateWherePartSql($strip);
            $sql .= $this->generateGroupPartSql();
            $sql .= $this->generateOrderByPartSql();
            if ($this->query->isSelect()) {
                if ($this->query->hasLimit()) {
                    $sql .= ' LIMIT ' . $this->query->getLimit();
                }
                if ($this->query->hasOffset()) {
                    $sql .= ' OFFSET ' . $this->query->getOffset();
                }
            }

            return $sql;
        }
protected function generateWhereSQL($strip = false)
        {
            $sql = $this->generateWherePartSql($strip);
            $sql .= $this->generateGroupPartSql();
            $sql .= $this->generateOrderByPartSql();
            if ($this->query->isSelect()) {
                if ($this->query->hasLimit()) {
                    $sql .= ' LIMIT ' . $this->query->getLimit();
                }
                if ($this->query->hasOffset()) {
                    $sql .= ' OFFSET ' . $this->query->getOffset();
                }
            }

            return $sql;
        }
protected function generateWhereSQL ( $ strip = false ) { $ sql = $ this -> generateWherePartSql ( $ strip ) ; $ sql .= $ this -> generateGroupPartSql ( ) ; $ sql .= $ this -> generateOrderByPartSql ( ) ; if ( $ this -> query -> isSelect ( ) ) { if ( $ this -> query -> hasLimit ( ) ) { $ sql .= ' LIMIT ' . $ this -> query -> getLimit ( ) ; } if ( $ this -> query -> hasOffset ( ) ) { $ sql .= ' OFFSET ' . $ this -> query -> getOffset ( ) ; } } return $ sql ; }
Generate the "where" part of the query

@param bool $strip
@return string
Generate the where part of the query