You are here

protected function FeedsSource::__construct in Feeds 7

Same name and namespace in other branches
  1. 6 includes/FeedsSource.inc \FeedsSource::__construct()
  2. 7.2 includes/FeedsSource.inc \FeedsSource::__construct()

Constructor.

Overrides FeedsConfigurable::__construct

File

includes/FeedsSource.inc, line 105
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

protected function __construct($importer_id, $feed_nid) {
  $this->feed_nid = $feed_nid;
  $this->importer = feeds_importer($importer_id);
  parent::__construct($importer_id);
  $this
    ->load();
}