You are here

protected function FeedsExBase::parseItems in Feeds extensible parsers 7

Performs the actual parsing.

Parameters

FeedsSource $source: The feed source.

FeedsFetcherResult $fetcher_result: The fetcher result.

FeedsParserResult $result: The parser result object to populate.

1 call to FeedsExBase::parseItems()
FeedsExBase::parse in src/FeedsExBase.inc
2 methods override FeedsExBase::parseItems()
FeedsExJmesPathLines::parseItems in src/FeedsExJmesPathLines.inc
Performs the actual parsing.
FeedsExJsonPathLines::parseItems in src/FeedsExJsonPathLines.inc
Performs the actual parsing.

File

src/FeedsExBase.inc, line 227
Contains FeedsExBase.

Class

FeedsExBase
The Feeds extensible parser.

Code

protected function parseItems(FeedsSource $source, FeedsFetcherResult $fetcher_result, FeedsParserResult $result) {
  $expressions = $this
    ->prepareExpressions();
  $variable_map = $this
    ->prepareVariables($expressions);
  foreach ($this
    ->executeContext($source, $fetcher_result) as $row) {
    if ($item = $this
      ->executeSources($row, $expressions, $variable_map)) {
      $result->items[] = $item;
    }
  }
}