You are here

public function ParserCSVIterator::next in Feeds 8.2

1 call to ParserCSVIterator::next()
ParserCSVIterator::rewind in lib/Drupal/feeds/ParserCSVIterator.php

File

lib/Drupal/feeds/ParserCSVIterator.php, line 34

Class

ParserCSVIterator
Text lines from file iterator.

Namespace

Drupal\feeds

Code

public function next() {
  if ($this->handle) {
    $this->currentLine = feof($this->handle) ? NULL : fgets($this->handle);
    $this->currentPos = ftell($this->handle);
    return $this->currentLine;
  }
}