You are here

protected function FeedsExJsonPathLines::cleanUp in Feeds extensible parsers 7.2

Same name and namespace in other branches
  1. 7 src/FeedsExJsonPathLines.inc \FeedsExJsonPathLines::cleanUp()

Allows subclasses to cleanup after parsing.

Parameters

FeedsSource $source: The feed source.

FeedsParserResult $parser_result: The result of parsing.

Overrides FeedsExJsonPath::cleanUp

File

src/FeedsExJsonPathLines.inc, line 53
Contains FeedsExJsonPathLines.

Class

FeedsExJsonPathLines
Parses the JSON Lines format via JSONPath.

Code

protected function cleanUp(FeedsSource $source, FeedsParserResult $result) {
  $state = $source
    ->state(FEEDS_PARSE);
  $state->pointer = $this->iterator
    ->ftell();
  unset($this->iterator);
}