public function FeedImportProcessor::setReader in Feed Import 7.3
Sets the reader and inits it
Parameters
FeedImportReader $reader: An instance of reader
Return value
boolean TRUE if success
File
- feed_import_base/
inc/ feed_import.inc, line 856 - This file contains Feed Import helpers.
Class
- FeedImportProcessor
- Class that processess the import.
Code
public function setReader(FeedImportReader $reader) {
$this->reader = $reader;
$this->throwException = FALSE;
$ok = $this->reader
->init();
$this->throwException = TRUE;
return $ok;
}