You are here

public function FeedsExLineIterator::rewind in Feeds extensible parsers 7.2

Same name and namespace in other branches
  1. 7 src/File/FeedsExLineIterator.php \FeedsExLineIterator::rewind()

Implements Iterator::rewind().

File

src/File/FeedsExLineIterator.php, line 37
Contains FeedsExLineIterator.

Class

FeedsExLineIterator
Text lines from file iterator.

Code

public function rewind() {
  parent::rewind();
  if ($this->startPosition) {
    $this
      ->fseek($this->startPosition);
  }
  $this->linesRead = 0;
}