You are here

public function FrxSkin::merge in Forena Reports 7.4

Merge the skin definiitons.

Parameters

array $definition: Definintion overriedes for skin.

File

./FrxSkin.inc, line 129
FrxSkin.inc Skinning

Class

FrxSkin
@file FrxSkin.inc Skinning

Code

public function merge($definition) {
  if (!is_array($definition)) {
    $definition = json_decode($definition, TRUE);
  }
  if (is_array($definition)) {
    foreach ($definition as $key => $value) {
      if (isset($this->info[$key])) {
        $this->info[$key] = array_merge($this->info[$key], $value);
      }
      else {
        $this->info[$key] = $value;
      }
    }
  }
}