protected function _getMultiFields() { $multifields = new Kwf_Form_Field_MultiFields('Children'); $multifields->setMinEntries(0); if (Kwc_Abstract::getSetting($this->getClass(), 'hasVisible')) { $multifields->fields->add(new Kwf_Form_Field_Checkbox('visible', trlKwf('Visible'))); } $multifields->setPosition(true); $form = Kwc_Abstract_Form::createChildComponentForm($this->getClass(), 'child'); $form->setIdTemplate('{component_id}-{id}'); $multifields->fields->add($form); return $multifields; }
protected function _getMultiFields() { $multifields = new Kwf_Form_Field_MultiFields('Children'); $multifields->setMinEntries(0); $multifields->setPosition(true); if (Kwc_Abstract::getSetting($this->getClass(), 'hasVisible')) { $multifields->fields->add(new Kwf_Form_Field_Checkbox('visible', trlKwf('Visible'))); } foreach (Kwf_Component_Data_Root::getInstance()->getPlugins('Kwf_Component_PluginRoot_Interface_GeneratorProperty') as $plugin) { $params = $plugin->getGeneratorProperty(Kwf_Component_Generator_Abstract::getInstance($this->getClass(), 'child')); if ($params) { $multifields->fields->add(new Kwf_Form_Field_Select($params['name'], $params['label']))->setValues($params['values'])->setDefaultValue($params['defaultValue'])->setData(new Kwf_Component_PluginRoot_GeneratorProperty_Data($plugin, $this)); } } $form = Kwc_Abstract_Form::createChildComponentForm($this->getClass(), 'child'); $form->setIdTemplate('{component_id}-{id}'); $multifields->fields->add($form); return $multifields; }