/** * Define the name of the form to wich the multifield is attached * @param $name A string containing the name of the form * @ignore-autocomplete on */ public function setFormName($name) { parent::setFormName($name); if ($this->fields) { foreach ($this->fields as $name => $field) { $obj = $field->{'field'}; $obj->setFormName($this->formName); } } }
/** * Define the name of the form to wich the button is attached * @param $name A string containing the name of the form * @ignore-autocomplete on */ public function setFormName($name) { parent::setFormName($name); $this->entry->setFormName($name); }