Get the section index

@return  array  containing the identifier, the sections, and the section index
433599
protected function _get_index()
	{
		// get the section name and identifier
		$sections = explode('.', $this->identifier);
		if (count($sections) > 1)
		{
			$identifier = array_pop($sections);
			$sections = '.'.implode('.', $sections);
		}
		else
		{
			$identifier = $this->identifier;
			$sections = '';
		}

		// get the cache index and return it
		return array($identifier, $sections, xcache_get($this->config['cache_id'].$sections));
	}
1358317
private function getSectionIds(array $sectionIdentifiers): array
    {
        $idList = [];

        foreach ($sectionIdentifiers as $identifier) {
            try {
                $section = $this->sectionHandler->loadByIdentifier($identifier);
                $idList[] = $section->id;
            } catch (NotFoundException $e) {
                continue;
            }
        }

        return $idList;
    }
538280
public function SectionTitle()
    {
        $title = $this->menu_title();
        if ($title) {
            return $title;
        }

        foreach ($this->MainMenu() as $menuItem) {
            if ($menuItem->LinkingMode != 'link') {
                return $menuItem->Title;
            }
        }
        return null;
    }
1297787
public function getSectionByName(string $name): SectionInterface
    {
        return $this->getSections()->first(function ($section) use ($name) {
            /** @var SectionInterface $section */
            return $name === $section->getId();
        });
    }
261709
public function getAdSections()
    {
        if (!empty($this->vastAdNodeList)) {
            return $this->vastAdNodeList;
        }
            
        foreach ($this->domDocument->documentElement->childNodes as $adDomElement) {
            // get Ad tag
            if (!$adDomElement instanceof \DOMElement) {
                continue;
            }

            if ('ad' !== strtolower($adDomElement->tagName)) {
                continue;
            }

            // get Ad type tag
            foreach ($adDomElement->childNodes as $node) {
                if (!($node instanceof \DOMElement)) {
                    continue;
                }

                $type = $node->tagName;

                // create ad section
                $adTypeClassName = '\\Sokil\\Vast\\Ad\\' . $type;
                if (!class_exists($adTypeClassName)) {
                    throw new \Exception('Ad type ' . $type . ' not supported');
                }

                $this->vastAdNodeList[] = new $adTypeClassName($adDomElement);
            }
        }
        
        return $this->vastAdNodeList;
    }
1066130
public function getDiff()
    {
        $set = $this->getIndexInfo();
        unset($set['_id_1']);

        $present = array();
        $missing = array();

        foreach ($this->config as $index) {
            if ( !isset($index['options']) ) $index['options'] = array();

            $name = $this->generateIndexKeyFromConfig($index);
            if ( isset($set[$name]) ) {
                $present[$name] = $index;
                unset($set[$name]);
            } else {
                $missing[$name] = $index;
            }
        }

        return array(
            'missing' => $missing,
            'present' => $present,
            'unknown' => $set
        );
    }
1206536
private function getIndexer()
    {
        return $this->indexerRegistry->get(\Magento\Catalog\Model\Indexer\Category\Product::INDEXER_ID);
    }
1189125
public function getIndex(): Index
    {
        $index = $this->searchClient->findIndex($this->getIndexName());
        $index->setSettingsKey($this->searchClient->getIndexName());

        return $index;
    }
562238
public function getIndex( $entry, $section = NULL )
	{
		if( !$section )
			$section	= $this->getSectionOfEntry( $entry );
		if( !isset( $this->list[$section] ) )
			throw new InvalidArgumentException( 'Invalid Section "'.$section.'".' );
		return array_search( $entry, $this->list[$section] );
	}
854747
public function getIndex() : ?string 
    {
        if ( ! $this->hasIndex()) {
            $this->setIndex($this->getDefaultIndex());
        }
        return $this->index;
    }
1200222
protected function getSectionFilterQuery( $sectionIdent )
    {
        if ( empty( $sectionIdent ) )
        {
            return null;
        }

        if ( is_array( $sectionIdent ) )
        {
            $sectionQueryParts = array();
            foreach ( $sectionIdent as $sectionID )
            {
                $sectionID = trim( $sectionID );
                if ( ctype_digit( $sectionID ) )
                {
                    $sectionQueryParts[] = eZSolr::getMetaFieldName( 'section_id' ) . ':' . $sectionID;
                }
                else
                {
                    eZDebug::writeError( "Unknown section_id filtering parameter: $sectionID", __METHOD__ );
                }
            }

            return implode( ' OR ', $sectionQueryParts );
        }

        $sectionIdent = trim( $sectionIdent );
        if ( ctype_digit( $sectionIdent ) )
        {
            return eZSolr::getMetaFieldName( 'section_id' ) . ':' . $sectionIdent;
        }

        eZDebug::writeError( 'No valid section id', __METHOD__ );

        return null;
    }
352401
protected function getLastSection()
    {
        if (0 === count($this->sections)) {
            throw new RenderException('Cannot end a section. You must start a section first.');
        }

        $keys = array_keys($this->sections);
        $key = array_pop($keys);

        return $this->sections[$key];
    }
1252843
protected function getIndexes()
    {
        $indexes = [];
        $rawIndexes = $this->getRawIndexes();

        foreach ($rawIndexes as $rawIndex) {
            $index = new Index($rawIndex->name);
            $index->addColumns(explode('|||', $rawIndex->columns));

            $indexes[] = $index;
        }

        return $indexes;
    }
1204969
public function getAllIndexes()
    {
        $result = [new Index('id', ['id'], IndexInterface::PRIMARY)];

        if ($this->getPolymorph()) {
            $result[] = new Index('type');
        }

        if (!empty($this->getIndexes())) {
            $result = array_merge($result, $this->getIndexes());
        }

        foreach ($this->getAssociations() as $assosication) {
            if ($assosication instanceof InjectIndexesInsterface) {
                $association_indexes = $assosication->getIndexes();

                if (!empty($association_indexes)) {
                    $result = array_merge($result, $association_indexes);
                }
            }
        }

        return $result;
    }
605188
public function loadSections()
    {
        $response = $this->client->request(
            'GET',
            $this->requestParser->generate('sections'),
            new Message(
                array('Accept' => $this->outputVisitor->getMediaType('SectionList'))
            )
        );

        return $this->inputDispatcher->parse($response);
    }
664834
private function getSection()
    {
        $this->section = $this->modelFactory()->get($this->sectionClass());

        return $this->section;
    }
875421
public function getSection($section)
    {
        if (!array_key_exists($section, $this->config)) {
            return null;
        }

        return $this->config[$section];
    }