You are here

protected function FeedsExXml::cleanUp in Feeds extensible parsers 7

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

Allows subclasses to cleanup after parsing.

Parameters

FeedsSource $source: The feed source.

FeedsParserResult $parser_result: The result of parsing.

Overrides FeedsExBase::cleanUp

File

src/FeedsExXml.inc, line 50
Contains FeedsExXml.

Class

FeedsExXml
Parses XML documents with XPath.

Code

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

  // Try to free up some memory. There shouldn't be any other references to
  // $this->xpath or the DOMDocument.
  unset($this->xpath);

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