You are here

protected function FeedsExJmesPath::cleanUp in Feeds extensible parsers 7.2

Same name and namespace in other branches
  1. 7 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 61
Contains FeedsExJmesPath.

Class

FeedsExJmesPath
Parses JSON documents with JMESPath.

Code

protected function cleanUp(FeedsSource $source, FeedsParserResult $result) {
  unset($this->jmesPath);

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