src/Ease/TWB/RadioButtonGroup.php
public function finalize()
    {
        $class = 'radio';
        if ($this->inline) {
            $class .= '-inline';
        }
        $pos = 1;
        foreach ($this->radios as $value => $caption) {
            if ($value == $this->checked) {
                $checked = 'checked';
            } else {
                $checked = null;
            }
            $tagProperties = ['id' => $this->name.$pos++, 'name' => $this->name,
                $checked,];
            $this->addItem(new \Ease\Html\DivTag(new \Ease\Html\LabelTag(null,
                        [new \Ease\Html\InputRadioTag($this->name, $value,
                            $tagProperties), $caption]), ['class' => $class]));
        }
    }
public function finalize()
    {
        $class = 'radio';
        if ($this->inline) {
            $class .= '-inline';
        }
        $pos = 1;
        foreach ($this->radios as $value => $caption) {
            if ($value == $this->checked) {
                $checked = 'checked';
            } else {
                $checked = null;
            }
            $tagProperties = ['id' => $this->name.$pos++, 'name' => $this->name,
                $checked,];
            $this->addItem(new \Ease\Html\DivTag(new \Ease\Html\LabelTag(null,
                        [new \Ease\Html\InputRadioTag($this->name, $value,
                            $tagProperties), $caption]), ['class' => $class]));
        }
    }
Seskládá pole radiobuttonů.