public function FeedsSource::load in Feeds 8.2
Load configuration and unpack.
1 call to FeedsSource::load()
- FeedsSource::__construct in lib/Drupal/ feeds/ FeedsSource.php 
- Constructor.
File
- lib/Drupal/ feeds/ FeedsSource.php, line 452 
- 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.
Namespace
Drupal\feedsCode
public function load() {
  if ($record = db_query("SELECT imported, config, state, fetcher_result FROM {feeds_source} WHERE id = :id AND feed_nid = :nid", array(
    ':id' => $this->id,
    ':nid' => $this->feed_nid,
  ))
    ->fetchObject()) {
    $this->imported = $record->imported;
    $this->config = unserialize($record->config);
    if (!empty($record->state)) {
      $this->state = unserialize($record->state);
    }
    if (!is_array($this->state)) {
      $this->state = array();
    }
    if (!empty($record->fetcher_result)) {
      $this->fetcher_result = unserialize($record->fetcher_result);
    }
  }
}