You are here

protected function FeedsCSVParser::parseItems in Feeds 6

Same name and namespace in other branches
  1. 7.2 plugins/FeedsCSVParser.inc \FeedsCSVParser::parseItems()
  2. 7 plugins/FeedsCSVParser.inc \FeedsCSVParser::parseItems()

Parse all of the items from the CSV.

Parameters

ParserCSV $parser:

ParserCSVIterator $iterator:

Return value

An array of rows of the CSV keyed by the column names previously set

1 call to FeedsCSVParser::parseItems()
FeedsCSVParser::parse in plugins/FeedsCSVParser.inc
Implementation of FeedsParser::parse().

File

plugins/FeedsCSVParser.inc, line 65

Class

FeedsCSVParser
Parses a given file as a CSV file.

Code

protected function parseItems(ParserCSV $parser, ParserCSVIterator $iterator) {

  // Set line limit to 0 and start byte to last position and parse rest.
  $parser
    ->setLineLimit(0);
  $parser
    ->setStartByte($parser
    ->lastLinePos());
  $rows = $parser
    ->parse($iterator);
  return $rows;
}