protected function getSectionStructureFromIncomingStructure($section)
    {
        $pos = strpos($section, '.');
        if ($pos === false) {
            $section = (int) $section;
            if ($section === 0) {
                return $this->structure;
            }

            return $this->structure->parts[($section - 1)];
        }
        $sections = explode('.', $section);
        $count = count($sections);
        $outObject = null;
        foreach ($sections as $section) {
            $section = (int) $section;
            if (!isset($outObject)) {
                $outObject = $this->getObjectStructureFromParts($this->structure, ($section - 1));
            } else {
                $outObject = $this->getObjectStructureFromParts($outObject, ($section - 1));
            }
        }

        return $outObject;
    }
protected function getSectionStructureFromIncomingStructure($section)
    {
        $pos = strpos($section, '.');
        if ($pos === false) {
            $section = (int) $section;
            if ($section === 0) {
                return $this->structure;
            }

            return $this->structure->parts[($section - 1)];
        }
        $sections = explode('.', $section);
        $count = count($sections);
        $outObject = null;
        foreach ($sections as $section) {
            $section = (int) $section;
            if (!isset($outObject)) {
                $outObject = $this->getObjectStructureFromParts($this->structure, ($section - 1));
            } else {
                $outObject = $this->getObjectStructureFromParts($outObject, ($section - 1));
            }
        }

        return $outObject;
    }
protected function getSectionStructureFromIncomingStructure ( $ section ) { $ pos = strpos ( $ section , '.' ) ; if ( $ pos === false ) { $ section = ( int ) $ section ; if ( $ section === 0 ) { return $ this -> structure ; } return $ this -> structure -> parts [ ( $ section - 1 ) ] ; } $ sections = explode ( '.' , $ section ) ; $ count = count ( $ sections ) ; $ outObject = null ; foreach ( $ sections as $ section ) { $ section = ( int ) $ section ; if ( ! isset ( $ outObject ) ) { $ outObject = $ this -> getObjectStructureFromParts ( $ this -> structure , ( $ section - 1 ) ) ; } else { $ outObject = $ this -> getObjectStructureFromParts ( $ outObject , ( $ section - 1 ) ) ; } } return $ outObject ; }
Get section structure from incoming structure.

@param string $section

@return object|null
Get section structure from incoming structure .