You are here

public function FacetapiEmptyBehavior::__construct in Facet API 7.2

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

Constructs a FacetapiEmptyBehavior object.

Captures a subset of the facet's settings and applies the plugin defaults.

Parameters

stdClass $settings: The facet's realm specific settings as returned by FacetapiAdapter::getFacetSettings().

1 call to FacetapiEmptyBehavior::__construct()
FacetapiEmptyBehaviorText::__construct in plugins/facetapi/empty_behavior_text.inc
Overrides FacetapiEmptyBehavior::__construct().
1 method overrides FacetapiEmptyBehavior::__construct()
FacetapiEmptyBehaviorText::__construct in plugins/facetapi/empty_behavior_text.inc
Overrides FacetapiEmptyBehavior::__construct().

File

plugins/facetapi/empty_behavior.inc, line 43
Base empty behavior plugin class and default implementation.

Class

FacetapiEmptyBehavior
Abstract class extended by empty behavior plugins.

Code

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