You are here

protected function FeedsCSVParser::parseItems in Feeds 8.2

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 lib/Drupal/feeds/Plugin/feeds/parser/FeedsCSVParser.php
Implements FeedsParser::parse().

File

lib/Drupal/feeds/Plugin/feeds/parser/FeedsCSVParser.php, line 99
Contains the FeedsCSVParser class.

Class

FeedsCSVParser
Defines a CSV feed parser.

Namespace

Drupal\feeds\Plugin\feeds\parser

Code

protected function parseItems(ParserCSV $parser, ParserCSVIterator $iterator, $start = 0, $limit = 0) {
  $parser
    ->setLineLimit($limit);
  $parser
    ->setStartByte($start);
  $rows = $parser
    ->parse($iterator);
  return $rows;
}