private function _getSubSectionFromOptions($_sSectionID, array $_aSubSectionOrFields)
{
$_aSubSection = array();
$_iPrevIndex = null;
foreach ($_aSubSectionOrFields as $_isIndexOrFieldID => $_aSubSectionOrFieldOptions) {
if (!$this->isNumericInteger($_isIndexOrFieldID)) {
continue;
}
$_iIndex = $_isIndexOrFieldID;
$_aSubSection[$_iIndex] = $this->_getSubSectionItemsFromOptions($_aSubSection, $_sSectionID, $_iIndex, $_iPrevIndex);
foreach ($_aSubSection[$_iIndex] as &$_aField) {
$_aField['_section_index'] = $_iIndex;
}
unset($_aField);
$_iPrevIndex = $_iIndex;
}
return $_aSubSection;
}