2 namespace TYPO3\CMS\Backend\Form\Element;
30 if ($this->data[
'parameterArray'][
'fieldConf'][
'config'][
'readOnly']) {
31 $disabled =
' disabled';
35 foreach ($this->data[
'parameterArray'][
'fieldConf'][
'config'][
'items'] as $itemNumber => $itemLabelAndValue) {
36 $label = $itemLabelAndValue[0];
37 $value = $itemLabelAndValue[1];
38 $radioId = htmlspecialchars($this->data[
'parameterArray'][
'itemFormElID'] .
'_' . $itemNumber);
39 $radioChecked = (string)$value === (
string)$this->data[
'parameterArray'][
'itemFormElValue'] ?
' checked="checked"' :
'';
40 $html[] =
'<div class="radio' . $disabled .
'">';
41 $html[] =
'<label for="' . $radioId .
'">';
42 $html[] =
'<input type="radio"'
43 .
' name="' . htmlspecialchars($this->data[
'parameterArray'][
'itemFormElName']) .
'"'
44 .
' id="' . $radioId .
'"'
45 .
' value="' . htmlspecialchars($value) .
'"'
47 . $this->data[
'parameterArray'][
'onFocus']
49 .
' onclick="' . htmlspecialchars(implode(
'', $this->data[
'parameterArray'][
'fieldChangeFunc'])) .
'"'
51 . htmlspecialchars($label);
57 $resultArray[
'html'] = implode(LF, $html);