public function FeedsSource::preview

cis7 FeedsSource.inc public FeedsSource::preview()
cle7 FeedsSource.inc public FeedsSource::preview()
elmsmedia7 FeedsSource.inc public FeedsSource::preview()
icor7 FeedsSource.inc public FeedsSource::preview()
meedjum_blog7 FeedsSource.inc public FeedsSource::preview()
mooc7 FeedsSource.inc public FeedsSource::preview()

Preview = fetch and parse a feed.

Return value

FeedsParserResult object.

Throws

Throws Exception if an error occurs when fetching or parsing.

File

sites/all/modules/ulmus/feeds/includes/FeedsSource.inc, line 220
Definition of FeedsSourceInterface and FeedsSource class.

Class

FeedsSource
This class encapsulates a source of a feed. It stores where the feed can be found and how to import it.

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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.