public function FeedsSource::preview in Feeds 7.2
Same name and namespace in other branches
- 6 includes/FeedsSource.inc \FeedsSource::preview()
- 7 includes/FeedsSource.inc \FeedsSource::preview()
Preview = fetch and parse a feed.
Return value
FeedsParserResult A FeedsParserResult instance.
Throws
Exception If an error occurs when fetching or parsing.
File
- includes/
FeedsSource.inc, line 328 - Definition of FeedsSourceInterface, FeedsState and FeedsSource class.
Class
- FeedsSource
- Holds the source of a feed to import.
Code
public function preview() {
$result = $this->importer->fetcher
->fetch($this);
$result = $this->importer->parser
->parse($this, $result);
module_invoke_all('feeds_after_parse', $this, $result);
return $result;
}