Adds the name field
170016
private function AddNameField()
    {
        $name = 'Name';
        $field = Input::Text($name, $this->radio->GetName());
        $this->AddField($field);
        $this->SetRequired($name);
    }
588809
private function AddUrlField()
    {
        $name = 'Url';
        $this->AddField(Input::Text($name, $this->site->GetUrl()));
        $this->SetRequired($name);
        $this->AddValidator($name, PhpFilter::Url());
    }
1222048
private function AddKeywordsField()
    {
        $name = 'Keywords';
        $this->AddField(Input::Text($name, $this->page->GetKeywords()));
    }
588483
private function AddEMailField()
    {
        $name = 'EMail';
        $this->AddField(Input::Text($name, $this->user->GetEMail()));
        $this->SetRequired($name);
        $this->AddValidator($name, PhpFilter::EMail());
    }
763360
def add_name_variant(self, name):
        
        self._ensure_field('name', {})
        self.obj['name'].setdefault('name_variants', []).append(name)
196752
def add_previous_name(self, name):
        
        self._ensure_field('name', {})
        self.obj['name'].setdefault('previous_names', []).append(name)
304747
void addField(final String name, final Object value)
            throws IllegalStateException {

        checkNotCompleted();
        _buffer.append(" <");
        _buffer.append(name);
        _buffer.append("=");
        _buffer.append(value);
        _buffer.append(">");

    }
575610
def field(self, name, fieldType="C", size="50", decimal=0):
        """"""
        self.fields.append((name, fieldType, size, decimal))
256224
function add_field($name, $title=null, \Closure $display_callback=null, Setting\Section $section=null, $default=null)
    {
        if(is_array($name)){

            $field = $name + [
                $display_callback=null,
                $section = null,
                $default = null,
                $type = 'text'
            ];

        } else {
            //legacy full param format
            $field = compact('name','title','display_callback','section');
        }

        if(empty($field['section'])){
            $field['section'] = $this->get_default_section();
        }

        $this->fields[$field['name']] = $field;
    }
509192
def text(name, options = {})
      field name, CharField.new(options.merge(widget: Widgets::Textarea.new))
    end
396457
public function addField()
    {
        $oPayment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);
        if ($oPayment->loadInLang($this->_iEditLang, $this->getEditObjectId())) {
            $this->_aFieldArray = \OxidEsales\Eshop\Core\Registry::getUtils()->assignValuesFromText($oPayment->oxpayments__oxvaldesc->value);

            $oField = new stdClass();
            $oField->name = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("sAddField");

            if (!empty($oField->name)) {
                $this->_aFieldArray[] = $oField;
            }
            $this->save();
        }
    }
1073095
def add_field(cls, name, descriptor):
        
        if not isinstance(descriptor, MediaField):
            raise ValueError(
                u'{0} must be an instance of MediaField'.format(descriptor))
        if name in cls.__dict__:
            raise ValueError(
                u'property "{0}" already exists on MediaField'.format(name))
        setattr(cls, name, descriptor)
632358
def set_field_name(self):
        """"""
        assert self.pending_symbol is not None
        assert not self.value
        self.field_name = _as_symbol(self.pending_symbol, is_symbol_value=False)  # pending_symbol becomes field name
        self.pending_symbol = None  # reset pending symbol
        self.quoted_text = False
        self.line_comment = False
        self.is_self_delimiting = False
        return self
738845
def add_parameter(self, field_name, param_name, param_value):
        
        try:
            self.fields[field_name]['params'][param_name] = param_value
        except Exception as ex:
            raise ScriptFieldsError("Error adding parameter %s with value %s :%s" % (param_name, param_value, ex))

        return self
592747
def add_field(self, name, default_value=None):
        """"""
        self._fields[name] = default_value

        def func(cluster):
            return self.get(name, cluster)

        setattr(self, name, func)
1133019
function() {
		if(this.options.name) {
			for(var i = 0 ; i < this.subFields.length ; i++) {
				var subFieldEl = this.subFields[i];
				subFieldEl.setFieldName(this.options.name+"["+i+"]");
			}
		}
	}
767172
protected function addField()
    {
        $this->controlAccess('field_add');

        if ($this->field->add($this->getSubmitted())) {
            $this->redirect('admin/content/field', $this->text('Field has been added'), 'success');
        }

        $this->redirect('', $this->text('Field has not been added'), 'warning');
    }