You are here

protected function FeedsExJsonPath::cleanUp in Feeds extensible parsers 7

Same name and namespace in other branches
  1. 7.2 src/FeedsExJsonPath.inc \FeedsExJsonPath::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 FeedsExJsonPath::cleanUp()
FeedsExJsonPathLines::cleanUp in src/FeedsExJsonPathLines.inc
Allows subclasses to cleanup after parsing.
1 method overrides FeedsExJsonPath::cleanUp()
FeedsExJsonPathLines::cleanUp in src/FeedsExJsonPathLines.inc
Allows subclasses to cleanup after parsing.

File

src/FeedsExJsonPath.inc, line 44
Contains FeedsExJsonPath.

Class

FeedsExJsonPath
Parses JSON via JSONPath.

Code

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

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