From 3020576f082919161bbf5da0a97b1c1b5a8e6c54 Mon Sep 17 00:00:00 2001 From: Daniel Hensby Date: Tue, 19 Mar 2013 10:57:51 +0000 Subject: [PATCH] FIX Adding preview method to CsvBulkLoader Currently the CsvBulkLoader doesn't implement the preview method even though it's processor function has the $preview flag. --- dev/CsvBulkLoader.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev/CsvBulkLoader.php b/dev/CsvBulkLoader.php index 5e8022a98..4a7ee4d31 100644 --- a/dev/CsvBulkLoader.php +++ b/dev/CsvBulkLoader.php @@ -32,6 +32,13 @@ class CsvBulkLoader extends BulkLoader { */ public $hasHeaderRow = true; + /** + * @inheritDoc + */ + public function preview($filepath) { + return $this->processAll($filepath, true); + } + protected function processAll($filepath, $preview = false) { $results = new BulkLoader_Result();