You are here

public function FacetapiEmptyBehavior::__construct in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 plugins/facetapi/empty_behavior.inc \FacetapiEmptyBehavior::__construct()
  2. 7 plugins/facetapi/empty_behavior.inc \FacetapiEmptyBehavior::__construct()

Initializes settings.

1 call to FacetapiEmptyBehavior::__construct()
FacetapiEmptyBehaviorText::__construct in plugins/facetapi/empty_behavior_text.inc
Checks if a format was selected, calls parent's constructor.
1 method overrides FacetapiEmptyBehavior::__construct()
FacetapiEmptyBehaviorText::__construct in plugins/facetapi/empty_behavior_text.inc
Checks if a format was selected, calls parent's constructor.

File

plugins/facetapi/empty_behavior.inc, line 30
Base class for empty behaviors.

Class

FacetapiEmptyBehavior
Abstract class implemented by all empty behavior plugins.

Code

public function __construct(stdClass $settings) {
  $this->configName = $settings->name;
  $this->settings = $settings->settings;
  $this->settings += $this
    ->getDefaultSettings();
}