add radio element
@access public
@param $field string
@param $label string
@return \Gcs\Framework\Core\Form\Validation\Element\Radio
@since 3.0
@package Gcs\Framework\Core\Form\Validation
964024
public function radio($field, $label) {
        $radio = new Radio($field, $label);
        array_push($this->_elements, $radio);

        return $radio;
    }
519600
public function addSecondaryField(string $label, string $value): self
    {
        $this->secondaryFields[] = $this->setLabelValue($label, $value);

        return $this;
    }
31846
protected function setErrorInteger($field, $label)
    {
        $error = $this->translation->text('@field must be integer', array('@field' => $label));
        return $this->setError($field, $error);
    }
662262
public function setLabel( $label ) {
		if ( $this->useInputTag ) {
			// Discard non-plaintext labels
			if ( !is_string( $label ) ) {
				$label = '';
			}

			$this->input->setValue( $label );
		}

		return $this->setLabelElementLabel( $label );
	}
510921
public function add($name, $label = '', array $attributes = array(), array $rules = array())
	{
		return $this->fieldset()->add($name, $label, $attributes, $rules);
	}
476950
public function addLink($name, $label = '', $attr = [] )
    {
        $e = new \FrenchFrogs\Form\Element\Link($name, $label, $attr);
        $this->addElement($e);
        return $e;
    }
913367
public function text($field, $label) {
        $element = new Text($this->_entity, $field, $label);
        array_push($this->_elements, $element);

        return $element;
    }
657551
private function AddLabelField()
    {
        $name = 'Label';
        $field = Fields\Input::Text($name, $this->checkbox->GetLabel());
        $this->AddField($field);
    }
773462
protected function setErrorUnavailable($field, $label)
    {
        $error = $this->translation->text('@name is unavailable', array('@name' => $label));
        return $this->setError($field, $error);
    }
436870
public static function attachLabel($element, $label, $type = self::LABEL_TOP) {
    Code::value($type, self::LABEL_TOP, self::LABEL_CHECKBOX);

    if ($label != NULL) {
      $element->templateContent->label = fHTML::label($label, $element)
        ->addClass('\Psc\label')
      ;
    
      if ($type == self::LABEL_TOP) {
        $element->templatePrepend('%label%');  // nicht überschreiben sondern prependen
      }
    
      if ($type == self::LABEL_CHECKBOX) {
        $element->template = '%self% %label%';
        $element->templateContent->label->addClass('checkbox-label');
      }
    }
    
    return $element;
  }
76850
public function addOptionGroup(string $label) : OptionGroup
    {
        $optionGroup = new OptionGroup($label);
        $this->elements[] = $optionGroup;

        return $optionGroup;
    }
179132
public Input addButton(String tag,
                           String label)
    {
        if (buttons==null)
            buttonsAtBottom();
        Input e = new Input(Input.Submit,tag,label);

        if (extendRow)
            addField(null,e);
        else
            buttons.add(e);
        return e;
    }
429626
public Input addTextField(String tag, 
                              String label,
                              int length,
                              String value)
    {
        Input i = new Input(Input.Text,tag,value);
        i.setSize(length);
        addField(label,i);
        return i;
    }
486276
protected function handleModelField($method, $label)
    {
        if (in_array($method, $this->model->getAttributes())) {
            return $this->addField($method, $label);
        }

        return false;
    }
728136
public function file($field, $label) {
        $file = new File($this->_entity, $field, $label);
        array_push($this->_elements, $file);

        return $file;
    }
484144
public function add($columns, $label = null)
    {

        if (!is_array($columns)) {
            $columns = [$columns => $label];
        }

        foreach ($columns as $column => $label) {
            if (is_null($label)) {
                $label = str_replace(['_', '-'], ' ', ucfirst($column));
            }

            $this->add[$column] = $label;
        }

        return $this;
    }
125792
public function iSelectRadioButton( $label )
    {
        trigger_error(
            "iSelectRadioButton is deprecated since v6.3.0, use PlatformUI Context iSelectRadioButton instead",
            E_USER_DEPRECATED
        );
        $el = $this->getSession()->getPage()->findField( $label );
        Assertion::assertNotNull( $el, "Couldn't find a radio input with '$label'" );
        $el->check();
    }