protected function getField($aField) { $_aOutput = array(); $_oRadio = new AdminPageFramework_Input_radio($aField); foreach ($aField['label'] as $_sKey => $_sLabel) { $_aInputAttributes = $_oRadio->getAttributeArray($_sKey); $_aOutput[] = $this->getFieldElementByKey($aField['before_label'], $_sKey) . "<div class='admin-page-framework-input-label-container admin-page-framework-radio-label' style='min-width: " . $this->sanitizeLength($aField['label_min_width']) . ";'>" . "<label " . $this->generateAttributes(array('for' => $_aInputAttributes['id'], 'class' => $_aInputAttributes['disabled'] ? 'disabled' : null)) . ">" . $this->getFieldElementByKey($aField['before_input'], $_sKey) . $_oRadio->get($_sLabel, $_aInputAttributes) . $this->getFieldElementByKey($aField['after_input'], $_sKey) . "</label>" . "</div>" . $this->getFieldElementByKey($aField['after_label'], $_sKey); } $_aOutput[] = $this->_getUpdateCheckedScript($aField['input_id']); return implode(PHP_EOL, $_aOutput); }