protected function buildBetween($field, $value1, $value2, $isBetween)
    {
        $operator = $isBetween ? 'BETWEEN' : 'NOT BETWEEN';

        return $this->escapeIdentifier($field).' '.$operator.' '.$this->parameterize($value1).' AND '.$this->parameterize($value2);
    }
protected function buildBetween($field, $value1, $value2, $isBetween)
    {
        $operator = $isBetween ? 'BETWEEN' : 'NOT BETWEEN';

        return $this->escapeIdentifier($field).' '.$operator.' '.$this->parameterize($value1).' AND '.$this->parameterize($value2);
    }
protected function buildBetween ( $ field , $ value1 , $ value2 , $ isBetween ) { $ operator = $ isBetween ? 'BETWEEN' : 'NOT BETWEEN' ; return $ this -> escapeIdentifier ( $ field ) . ' ' . $ operator . ' ' . $ this -> parameterize ( $ value1 ) . ' AND ' . $ this -> parameterize ( $ value2 ) ; }
Builds a BETWEEN clause.

@param string $field
@param mixed  $value1
@param mixed  $value2
@param bool   $isBetween

@return string
Builds a BETWEEN clause .