You are here

protected function FeedsConfigurable::__construct in Feeds 7.2

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

Constructor, set id and load default configuration.

Parameters

string $id: The ID of this configuration object.

2 calls to FeedsConfigurable::__construct()
FeedsImporter::__construct in includes/FeedsImporter.inc
Instantiate class variables, initialize and configure plugins.
FeedsSource::__construct in includes/FeedsSource.inc
Constructor.
3 methods override FeedsConfigurable::__construct()
FeedsImporter::__construct in includes/FeedsImporter.inc
Instantiate class variables, initialize and configure plugins.
FeedsPlugin::__construct in plugins/FeedsPlugin.inc
Constructs a FeedsPlugin object.
FeedsSource::__construct in includes/FeedsSource.inc
Constructor.

File

includes/FeedsConfigurable.inc, line 103
FeedsConfigurable and helper functions.

Class

FeedsConfigurable
Base class for configurable classes.

Code

protected function __construct($id) {

  // Set this object's id.
  $this->id = $id;

  // Per default we assume that a Feeds object is not saved to
  // database nor is it exported to code.
  $this->export_type = FEEDS_EXPORT_NONE;

  // Make sure configuration is populated.
  $this->config = $this
    ->configDefaults();
  $this->disabled = FALSE;
}