You are here

public function CSVFIReader::get in Feed Import 8

This method returns the next available item or NULL if there are no items left.

Return value

mixed The read item

Overrides FeedImportReader::get

1 call to CSVFIReader::get()
CSVFIReader::init in feed_import_base/src/CSVFIReader.php
Here you'll init your reader.

File

feed_import_base/src/CSVFIReader.php, line 64

Class

CSVFIReader
CSV Reader class, used to read csv files.

Namespace

Drupal\feed_import_base

Code

public function get() {
  return fgetcsv($this->fh, $this->options['length'], $this->options['delimiter'], $this->options['enclosure'], $this->options['escape']);
}