public static function getExtConf()
    {
        $extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('ke_search');

        // Set the "tagChar"
        // sphinx has problems with # in query string.
        // so you we need to change the default char # against something else.
        // MySQL has problems also with #
        // but we wrap # with " and it works.
        $keSearchPremiumIsLoaded = ExtensionManagementUtility::isLoaded('ke_search_premium');
        if ($keSearchPremiumIsLoaded) {
            $extConfPremium = SearchHelper::getExtConfPremium();
            $extConf['prePostTagChar'] = $extConfPremium['prePostTagChar'];
        } else {
            $extConf['prePostTagChar'] = '#';
        }
        $extConf['multiplyValueToTitle'] = ($extConf['multiplyValueToTitle']) ? $extConf['multiplyValueToTitle'] : 1;
        $extConf['searchWordLength'] = ($extConf['searchWordLength']) ? $extConf['searchWordLength'] : 4;

        // override extConf with TS Setup
        if (is_array($GLOBALS['TSFE']->tmpl->setup['ke_search.']['extconf.']['override.'])
            && count($GLOBALS['TSFE']->tmpl->setup['ke_search.']['extconf.']['override.'])) {
            foreach ($GLOBALS['TSFE']->tmpl->setup['ke_search.']['extconf.']['override.'] as $key => $value) {
                $extConf[$key] = $value;
            }
        }

        return $extConf;
    }
public static function getExtConf()
    {
        $extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('ke_search');

        // Set the "tagChar"
        // sphinx has problems with # in query string.
        // so you we need to change the default char # against something else.
        // MySQL has problems also with #
        // but we wrap # with " and it works.
        $keSearchPremiumIsLoaded = ExtensionManagementUtility::isLoaded('ke_search_premium');
        if ($keSearchPremiumIsLoaded) {
            $extConfPremium = SearchHelper::getExtConfPremium();
            $extConf['prePostTagChar'] = $extConfPremium['prePostTagChar'];
        } else {
            $extConf['prePostTagChar'] = '#';
        }
        $extConf['multiplyValueToTitle'] = ($extConf['multiplyValueToTitle']) ? $extConf['multiplyValueToTitle'] : 1;
        $extConf['searchWordLength'] = ($extConf['searchWordLength']) ? $extConf['searchWordLength'] : 4;

        // override extConf with TS Setup
        if (is_array($GLOBALS['TSFE']->tmpl->setup['ke_search.']['extconf.']['override.'])
            && count($GLOBALS['TSFE']->tmpl->setup['ke_search.']['extconf.']['override.'])) {
            foreach ($GLOBALS['TSFE']->tmpl->setup['ke_search.']['extconf.']['override.'] as $key => $value) {
                $extConf[$key] = $value;
            }
        }

        return $extConf;
    }
public static function getExtConf ( ) { $ extConf = GeneralUtility :: makeInstance ( ExtensionConfiguration :: class ) -> get ( 'ke_search' ) ; // Set the "tagChar" // sphinx has problems with # in query string. // so you we need to change the default char # against something else. // MySQL has problems also with # // but we wrap # with " and it works. $ keSearchPremiumIsLoaded = ExtensionManagementUtility :: isLoaded ( 'ke_search_premium' ) ; if ( $ keSearchPremiumIsLoaded ) { $ extConfPremium = SearchHelper :: getExtConfPremium ( ) ; $ extConf [ 'prePostTagChar' ] = $ extConfPremium [ 'prePostTagChar' ] ; } else { $ extConf [ 'prePostTagChar' ] = '#' ; } $ extConf [ 'multiplyValueToTitle' ] = ( $ extConf [ 'multiplyValueToTitle' ] ) ? $ extConf [ 'multiplyValueToTitle' ] : 1 ; $ extConf [ 'searchWordLength' ] = ( $ extConf [ 'searchWordLength' ] ) ? $ extConf [ 'searchWordLength' ] : 4 ; // override extConf with TS Setup if ( is_array ( $ GLOBALS [ 'TSFE' ] -> tmpl -> setup [ 'ke_search.' ] [ 'extconf.' ] [ 'override.' ] ) && count ( $ GLOBALS [ 'TSFE' ] -> tmpl -> setup [ 'ke_search.' ] [ 'extconf.' ] [ 'override.' ] ) ) { foreach ( $ GLOBALS [ 'TSFE' ] -> tmpl -> setup [ 'ke_search.' ] [ 'extconf.' ] [ 'override.' ] as $ key => $ value ) { $ extConf [ $ key ] = $ value ; } } return $ extConf ; }
get extension manager configuration for ke_search
and make it possible to override it with page ts setup
@author Christian Bülter <buelter@kennziffer.com>
@since 14.10.14
@return array
get extension manager configuration for ke_search and make it possible to override it with page ts setup