public function getTypoScriptConfiguration(array $configurationArray = null, $contextPageId = null, $contextLanguageId = 0, $contextTypoScriptPath = '')
    {
        if ($configurationArray == null) {
            if (isset($this->typoScriptConfigurations['default'])) {
                $configurationArray = $this->typoScriptConfigurations['default'];
            } else {
                if (!empty($GLOBALS['TSFE']->tmpl->setup) && is_array($GLOBALS['TSFE']->tmpl->setup)) {
                    $configurationArray = $GLOBALS['TSFE']->tmpl->setup;
                    $this->typoScriptConfigurations['default'] = $configurationArray;
                }
            }
        }

        if (!is_array($configurationArray)) {
            $configurationArray = [];
        }

        if (!isset($configurationArray['plugin.']['tx_solr.'])) {
            $configurationArray['plugin.']['tx_solr.'] = [];
        }

        if ($contextPageId === null && !empty($GLOBALS['TSFE']->id)) {
            $contextPageId = $GLOBALS['TSFE']->id;
        }

        $hash = md5(serialize($configurationArray)) . '-' . $contextPageId . '-' . $contextLanguageId . '-' . $contextTypoScriptPath;
        if (isset($this->typoScriptConfigurations[$hash])) {
            return $this->typoScriptConfigurations[$hash];
        }

        $this->typoScriptConfigurations[$hash] = $this->getTypoScriptConfigurationInstance($configurationArray, $contextPageId);
        return $this->typoScriptConfigurations[$hash];
    }
public function getTypoScriptConfiguration(array $configurationArray = null, $contextPageId = null, $contextLanguageId = 0, $contextTypoScriptPath = '')
    {
        if ($configurationArray == null) {
            if (isset($this->typoScriptConfigurations['default'])) {
                $configurationArray = $this->typoScriptConfigurations['default'];
            } else {
                if (!empty($GLOBALS['TSFE']->tmpl->setup) && is_array($GLOBALS['TSFE']->tmpl->setup)) {
                    $configurationArray = $GLOBALS['TSFE']->tmpl->setup;
                    $this->typoScriptConfigurations['default'] = $configurationArray;
                }
            }
        }

        if (!is_array($configurationArray)) {
            $configurationArray = [];
        }

        if (!isset($configurationArray['plugin.']['tx_solr.'])) {
            $configurationArray['plugin.']['tx_solr.'] = [];
        }

        if ($contextPageId === null && !empty($GLOBALS['TSFE']->id)) {
            $contextPageId = $GLOBALS['TSFE']->id;
        }

        $hash = md5(serialize($configurationArray)) . '-' . $contextPageId . '-' . $contextLanguageId . '-' . $contextTypoScriptPath;
        if (isset($this->typoScriptConfigurations[$hash])) {
            return $this->typoScriptConfigurations[$hash];
        }

        $this->typoScriptConfigurations[$hash] = $this->getTypoScriptConfigurationInstance($configurationArray, $contextPageId);
        return $this->typoScriptConfigurations[$hash];
    }
public function getTypoScriptConfiguration ( array $ configurationArray = null , $ contextPageId = null , $ contextLanguageId = 0 , $ contextTypoScriptPath = '' ) { if ( $ configurationArray == null ) { if ( isset ( $ this -> typoScriptConfigurations [ 'default' ] ) ) { $ configurationArray = $ this -> typoScriptConfigurations [ 'default' ] ; } else { if ( ! empty ( $ GLOBALS [ 'TSFE' ] -> tmpl -> setup ) && is_array ( $ GLOBALS [ 'TSFE' ] -> tmpl -> setup ) ) { $ configurationArray = $ GLOBALS [ 'TSFE' ] -> tmpl -> setup ; $ this -> typoScriptConfigurations [ 'default' ] = $ configurationArray ; } } } if ( ! is_array ( $ configurationArray ) ) { $ configurationArray = [ ] ; } if ( ! isset ( $ configurationArray [ 'plugin.' ] [ 'tx_solr.' ] ) ) { $ configurationArray [ 'plugin.' ] [ 'tx_solr.' ] = [ ] ; } if ( $ contextPageId === null && ! empty ( $ GLOBALS [ 'TSFE' ] -> id ) ) { $ contextPageId = $ GLOBALS [ 'TSFE' ] -> id ; } $ hash = md5 ( serialize ( $ configurationArray ) ) . '-' . $ contextPageId . '-' . $ contextLanguageId . '-' . $ contextTypoScriptPath ; if ( isset ( $ this -> typoScriptConfigurations [ $ hash ] ) ) { return $ this -> typoScriptConfigurations [ $ hash ] ; } $ this -> typoScriptConfigurations [ $ hash ] = $ this -> getTypoScriptConfigurationInstance ( $ configurationArray , $ contextPageId ) ; return $ this -> typoScriptConfigurations [ $ hash ] ; }
Retrieves the TypoScriptConfiguration object from an configuration array, pageId, languageId and TypoScript
path that is used in in the current context.

@param array $configurationArray
@param int $contextPageId
@param int $contextLanguageId
@param string $contextTypoScriptPath
@return TypoScriptConfiguration
Retrieves the TypoScriptConfiguration object from an configuration array pageId languageId and TypoScript path that is used in in the current context .