public function getValues()
 {
     foreach ($this->fields as $key => $item) {
         $values[$key] = $this->object->getValue($key);
         if (is_array($item["subelements"])) {
             foreach ($item["subelements"] as $subkey => $subitem) {
                 $values[$key . "_" . $subkey] = $this->object->getValue($key . "_" . $subkey);
             }
         }
     }
     $this->form->setValuesByArray($values);
 }
Пример #2
0
 /**
  * @param $key
  *
  * @return bool|string
  * @throws ilCloudPluginConfigException
  */
 public function getValue($key)
 {
     if (!isset(self::$value_cache[$key])) {
         self::$value_cache[$key] = parent::getValue($key);
     }
     return self::$value_cache[$key];
 }