private function getInsertFieldsString()
    {
        // Get field keys
        $fieldKeys = array_keys($this->fields);

        // Create placeholders
        $fieldsPlaceholders = array_map(function ($field) {
            return ':' . $field;
        }, $fieldKeys);

        // Return complete fields string
        return '(' . implode(',', $fieldKeys) . ') VALUES ('. implode(',', $fieldsPlaceholders) . ')';
    }
private function getInsertFieldsString()
    {
        // Get field keys
        $fieldKeys = array_keys($this->fields);

        // Create placeholders
        $fieldsPlaceholders = array_map(function ($field) {
            return ':' . $field;
        }, $fieldKeys);

        // Return complete fields string
        return '(' . implode(',', $fieldKeys) . ') VALUES ('. implode(',', $fieldsPlaceholders) . ')';
    }
private function getInsertFieldsString ( ) { // Get field keys $ fieldKeys = array_keys ( $ this -> fields ) ; // Create placeholders $ fieldsPlaceholders = array_map ( function ( $ field ) { return ':' . $ field ; } , $ fieldKeys ) ; // Return complete fields string return '(' . implode ( ',' , $ fieldKeys ) . ') VALUES (' . implode ( ',' , $ fieldsPlaceholders ) . ')' ; }
Returns the fields array as a VALUES string for inserts

@return string VALUES string for inserts
Returns the fields array as a VALUES string for inserts