private function _getSectionsetsFormatted($_aNewSectionsets, $aSectionsetsToParse, $aSectionPath, $sCapability)
{
foreach ($aSectionsetsToParse as $_sSectionPath => $_aSectionset) {
if (!is_array($_aSectionset)) {
continue;
}
$_aSectionPath = array_merge($aSectionPath, array($_aSectionset['section_id']));
$_sSectionPath = implode('|', $_aSectionPath);
$_aSectionsetFormatter = new AdminPageFramework_Form_Model___FormatSectionset($_aSectionset, $_sSectionPath, $this->sStructureType, $sCapability, count($_aNewSectionsets), $this->oCallerForm);
$_aSectionset = $this->callBack($this->aCallbacks['sectionset_before_output'], array($_aSectionsetFormatter->get()));
if (empty($_aSectionset)) {
continue;
}
$_aNewSectionsets[$_sSectionPath] = $_aSectionset;
$_aNewSectionsets = $this->_getNestedSections($_aNewSectionsets, $_aSectionset, $_aSectionPath, $_aSectionset['capability']);
}
uasort($_aNewSectionsets, array($this, 'sortArrayByKey'));
return $_aNewSectionsets;
}