protected function addField(FormField $field, $modify = false)
    {
        if (!$modify && !$this->rebuilding) {
            $this->preventDuplicate($field->getRealName());
        }

        $this->fields[$field->getRealName()] = $field;

        return $this;
    }
protected function addField(FormField $field, $modify = false)
    {
        if (!$modify && !$this->rebuilding) {
            $this->preventDuplicate($field->getRealName());
        }

        $this->fields[$field->getRealName()] = $field;

        return $this;
    }
protected function addField ( FormField $ field , $ modify = false ) { if ( ! $ modify && ! $ this -> rebuilding ) { $ this -> preventDuplicate ( $ field -> getRealName ( ) ) ; } $ this -> fields [ $ field -> getRealName ( ) ] = $ field ; return $ this ; }
Add a FormField to the form's fields

@param FormField $field
@return $this
Add a FormField to the form s fields