You are here

public function FlexiformAccess::__construct in Flexiform 7

Constructor for the flexiform access handlers.

File

includes/flexiform.access.inc, line 20
Contains FlexiformAccess

Class

FlexiformAccess
Control access conditions for Flexiforms.

Code

public function __construct($flexiform, $display = '') {
  $this->flexiform = $flexiform;
  $this->display = $display;
  $this->settings = !empty($flexiform->access['settings']) ? $flexiform->access['settings'] : array();
  $this->conditions = !empty($flexiform->access['conditions']) ? $flexiform->access['conditions'] : array();

  // @todo: Allow display level overrides of settings.
}