protected function escapeOne($value, $type = false) {
        if ($type === false) {
            $type = gettype($value);
        }
        if (strpos($value, '#sql#') !== false) {
            return substr($value, 5);
        }
        if (in_array($type, array('integer'))) {
            return $value;
        } elseif ($type == 'boolean') {
            return intval($value);
        } elseif ($type == 'NULL') {
            return 'null';
        } else {
            return $this->_dbh->quote($value);
        }
    }
protected function escapeOne($value, $type = false) {
        if ($type === false) {
            $type = gettype($value);
        }
        if (strpos($value, '#sql#') !== false) {
            return substr($value, 5);
        }
        if (in_array($type, array('integer'))) {
            return $value;
        } elseif ($type == 'boolean') {
            return intval($value);
        } elseif ($type == 'NULL') {
            return 'null';
        } else {
            return $this->_dbh->quote($value);
        }
    }
protected function escapeOne ( $ value , $ type = false ) { if ( $ type === false ) { $ type = gettype ( $ value ) ; } if ( strpos ( $ value , '#sql#' ) !== false ) { return substr ( $ value , 5 ) ; } if ( in_array ( $ type , array ( 'integer' ) ) ) { return $ value ; } elseif ( $ type == 'boolean' ) { return intval ( $ value ) ; } elseif ( $ type == 'NULL' ) { return 'null' ; } else { return $ this -> _dbh -> quote ( $ value ) ; } }
Escape on value using database driver specific

@param mixed $value to be escaped
@param mixed $type force type definition
@return mixed escaped
Escape on value using database driver specific