AdminPageFramework_Form_Model___Format_EachSection::get PHP Метод

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

public get ( )
    public function get()
    {
        $_aSection = $this->aSection + self::$aStructure;
        $_aSection['_index'] = $this->iIndex;
        $_aSection['_count_subsections'] = count($this->aSubSections);
        $_aSection['_is_first_index'] = $this->isFirstElement($this->aSubSections, $this->iIndex);
        $_aSection['_is_last_index'] = $this->isLastElement($this->aSubSections, $this->iIndex);
        $_aSection['_is_collapsible'] = $_aSection['collapsible'] && 'section' === $_aSection['collapsible']['container'];
        $_aSection['_tag_id'] = 'section-' . $_aSection['section_id'] . '__' . $this->iIndex;
        $_aSection['_tag_id_model'] = 'section-' . $_aSection['section_id'] . '__' . '___i___';
        return $_aSection;
    }

Usage Example

 private function _getSubSections($_aOutputs, $_sSectionsID, $_aSection, $_aSubSections)
 {
     if (!empty($_aSection['repeatable'])) {
         $_aOutputs['section_contents'][] = AdminPageFramework_Form_View___Script_RepeatableSection::getEnabler($_sSectionsID, $_aOutputs['count_subsections'], $_aSection['repeatable'], $this->oMsg);
         $_aOutputs['section_contents'][] = $this->_getRepeatableSectionFlagTag($_aSection);
     }
     if (!empty($_aSection['sortable'])) {
         $_aOutputs['section_contents'][] = AdminPageFramework_Form_View___Script_SortableSection::getEnabler($_sSectionsID, $_aSection['sortable'], $this->oMsg);
         $_aOutputs['section_contents'][] = $this->_getSortableSectionFlagTag($_aSection);
     }
     $_aSubSections = $this->numerizeElements($_aSubSections);
     foreach ($_aSubSections as $_iIndex => $_aFields) {
         $_oEachSectionArguments = new AdminPageFramework_Form_Model___Format_EachSection($_aSection, $_iIndex, $_aSubSections, $_sSectionsID);
         $_aOutputs = $this->_getSectionTableWithTabList($_aOutputs, $_oEachSectionArguments->get(), $_aFields);
     }
     return $_aOutputs;
 }
AdminPageFramework_Form_Model___Format_EachSection