AdminPageFramework_Form_View___Section::_getNestedSectionPaths PHP Метод

_getNestedSectionPaths() приватный Метод

private _getNestedSectionPaths ( $sSubjectSectionPath, array $aNestedSctionsets, array $aSectionsets )
$aNestedSctionsets array
$aSectionsets array
    private function _getNestedSectionPaths($sSubjectSectionPath, array $aNestedSctionsets, array $aSectionsets)
    {
        $_aNestedSectionPaths = array();
        foreach ($aNestedSctionsets as $_aNestedSectionset) {
            if (!is_array($_aNestedSectionset)) {
                continue;
            }
            $_sThisSectionPath = $sSubjectSectionPath . '|' . $_aNestedSectionset['section_id'];
            $_aNestedSectionPaths[$_sThisSectionPath] = $_sThisSectionPath;
        }
        $_aChildSectionPaths = array();
        foreach ($_aNestedSectionPaths as $_sNestedSectionPath) {
            $_aNestedSectionsets = $this->getElementAsArray($aSectionsets, array($_sNestedSectionPath, 'content'));
            $_aChildSectionPaths = $_aChildSectionPaths + $this->_getNestedSectionPaths($_sNestedSectionPath, $_aNestedSectionsets, $aSectionsets);
        }
        return $_aNestedSectionPaths + $_aChildSectionPaths;
    }