You are here

protected function FeedsExJsonPath::cleanUp in Feeds extensible parsers 7.2

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

File

src/FeedsExJsonPath.inc, line 43
Contains FeedsExJsonPath.

Class

FeedsExJsonPath
Parses JSON via JSONPath.

Code

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

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