You are here

protected function FeedsConfigurable::__construct in Feeds 6

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

Constructor, set id and load default configuration.

3 calls to FeedsConfigurable::__construct()
FeedsImporter::__construct in includes/FeedsImporter.inc
Instantiate class variables, initialize and configure plugins.
FeedsPlugin::__construct in plugins/FeedsPlugin.inc
Constructor.
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
Constructor.
FeedsSource::__construct in includes/FeedsSource.inc
Constructor.

File

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

Class

FeedsConfigurable
Base class for configurable classes. Captures configuration handling, form handling and distinguishes between in-memory configuration and persistent configuration.

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;
}