AdminPageFramework_Form_Model___FormatSectionset::get PHP Метод

get() публичный Метод

public get ( )
    public function get()
    {
        $_aSectionPath = explode('|', $this->sSectionPath);
        $_aSectionset = $this->uniteArrays(array('_fields_type' => $this->sStructureType, '_structure_type' => $this->sStructureType, '_section_path' => $this->sSectionPath, '_section_path_array' => $_aSectionPath, '_nested_depth' => count($_aSectionPath) - 1) + $this->aSectionset + array('capability' => $this->sCapability, 'show_debug_info' => $this->bShowDebugInfo), self::$aStructure);
        $_aSectionset['order'] = $this->getAOrB(is_numeric($_aSectionset['order']), $_aSectionset['order'], $this->iCountOfElements + 10);
        $_oCollapsibleArgumentFormatter = new AdminPageFramework_Form_Model___Format_CollapsibleSection($_aSectionset['collapsible'], $_aSectionset['title']);
        $_aSectionset['collapsible'] = $_oCollapsibleArgumentFormatter->get();
        $_aSectionset['class'] = $this->getAsArray($_aSectionset['class']);
        $_aSectionset['_caller_object'] = $this->oCaller;
        return $_aSectionset;
    }

Usage Example

 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;
 }
AdminPageFramework_Form_Model___FormatSectionset