You are here

public function ddblockCycleConfigurationSettings::__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 ddblockCycleConfigurationSettings::__set()
ddblockCycleConfigurationSettings::__construct in ./ddblock.class.php

File

./ddblock.class.php, line 134

Class

ddblockCycleConfigurationSettings

Code

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