You are here

public function ddblockConfigurationSettings::__set in Dynamic display block 7

Use overload functions to get and set $settings

Keys passed to the set function should be keys that already exist in the settings array.

1 call to ddblockConfigurationSettings::__set()
ddblockConfigurationSettings::__construct in ./ddblock.class.php

File

./ddblock.class.php, line 31

Class

ddblockConfigurationSettings

Code

public function __set($key, $value) {
  if (!array_key_exists($key, $this->settings)) {
    return;
  }
  $this->settings[$key]['value'] = sprintf($this->settings[$key]['format'], $value);
}