You are here

public function ParserCSVIterator::next in Feeds 7

Same name and namespace in other branches
  1. 6 libraries/ParserCSV.inc \ParserCSVIterator::next()
  2. 7.2 libraries/ParserCSV.inc \ParserCSVIterator::next()
1 call to ParserCSVIterator::next()
ParserCSVIterator::rewind in libraries/ParserCSV.inc

File

libraries/ParserCSV.inc, line 37

Class

ParserCSVIterator
Text lines from file iterator.

Code

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