public function addMultiField($label = null, $meta = array())
    {
        if (!array_key_exists("dynamic", $meta)) {
            $meta["dynamic"] = $this->__dynamic;
        }

        // *** Overwrite dynamic settings. We cannot have a dynamic multifield inside a dynamic area.
        if ($this->__dynamic) {
            $meta["dynamic"] = $this->__dynamic;
            $meta["dynamicLabel"] = "";
        }

        $objField = new MultiField($label, $meta);

        $objField->setRequiredStyle($this->__requiredstyle);
        $objField->setMeta("parent", $this, true);

        $this->__fields->addObject($objField);

        return $objField;
    }
public function addMultiField($label = null, $meta = array())
    {
        if (!array_key_exists("dynamic", $meta)) {
            $meta["dynamic"] = $this->__dynamic;
        }

        // *** Overwrite dynamic settings. We cannot have a dynamic multifield inside a dynamic area.
        if ($this->__dynamic) {
            $meta["dynamic"] = $this->__dynamic;
            $meta["dynamicLabel"] = "";
        }

        $objField = new MultiField($label, $meta);

        $objField->setRequiredStyle($this->__requiredstyle);
        $objField->setMeta("parent", $this, true);

        $this->__fields->addObject($objField);

        return $objField;
    }
public function addMultiField ( $ label = null , $ meta = array ( ) ) { if ( ! array_key_exists ( "dynamic" , $ meta ) ) { $ meta [ "dynamic" ] = $ this -> __dynamic ; } // *** Overwrite dynamic settings. We cannot have a dynamic multifield inside a dynamic area. if ( $ this -> __dynamic ) { $ meta [ "dynamic" ] = $ this -> __dynamic ; $ meta [ "dynamicLabel" ] = "" ; } $ objField = new MultiField ( $ label , $ meta ) ; $ objField -> setRequiredStyle ( $ this -> __requiredstyle ) ; $ objField -> setMeta ( "parent" , $ this , true ) ; $ this -> __fields -> addObject ( $ objField ) ; return $ objField ; }
Add a multifield to the Area

@param string $label The multifield's label
@param array $meta The standard meta array
@return \ValidFormBuilder\MultiField
Add a multifield to the Area