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.
This commit is contained in:
Daniel Hensby 2013-03-19 10:57:51 +00:00
parent 00bcdf39d3
commit 3020576f08

View File

@ -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();