You are here

protected function FeedsExJmesPath::cleanUp in Feeds extensible parsers 7

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

Allows subclasses to cleanup after parsing.

Parameters

FeedsSource $source: The feed source.

FeedsParserResult $parser_result: The result of parsing.

Overrides FeedsExBase::cleanUp

1 call to FeedsExJmesPath::cleanUp()
FeedsExJmesPathLines::cleanUp in src/FeedsExJmesPathLines.inc
Allows subclasses to cleanup after parsing.
1 method overrides FeedsExJmesPath::cleanUp()
FeedsExJmesPathLines::cleanUp in src/FeedsExJmesPathLines.inc
Allows subclasses to cleanup after parsing.

File

src/FeedsExJmesPath.inc, line 183
Contains FeedsExJmesPath.

Class

FeedsExJmesPath
Parses JSON documents with JMESPath.

Code

protected function cleanUp(FeedsSource $source, FeedsParserResult $result) {

  // @todo Verify if this is necessary. Not sure if the runtime keeps a
  // reference to the input data.
  unset($this->runtime);

  // Calculate progress.
  $state = $source
    ->state(FEEDS_PARSE);
  $state
    ->progress($state->total, $state->pointer);
}