protected function storeTable($table)
    {
        $fh = fopen($this->dataFile($table), 'w');

        fputcsv($fh, $this->keys[$table]);

        foreach ($this->rows[$table] as $row) {
            fputcsv($fh, $this->sanitiseRow($table, $row));
        }

        fclose($fh);
    }
protected function storeTable($table)
    {
        $fh = fopen($this->dataFile($table), 'w');

        fputcsv($fh, $this->keys[$table]);

        foreach ($this->rows[$table] as $row) {
            fputcsv($fh, $this->sanitiseRow($table, $row));
        }

        fclose($fh);
    }
protected function storeTable ( $ table ) { $ fh = fopen ( $ this -> dataFile ( $ table ) , 'w' ) ; fputcsv ( $ fh , $ this -> keys [ $ table ] ) ; foreach ( $ this -> rows [ $ table ] as $ row ) { fputcsv ( $ fh , $ this -> sanitiseRow ( $ table , $ row ) ) ; } fclose ( $ fh ) ; }
Persists all changes

@param   string $table The name of the table

@return  void
Persists all changes