コード例 #1
0
 /**
  * Sends a shutdown signal to all activated frontend helpers.
  *
  * @return	void
  */
 public function shutdown()
 {
     $frontendHelpers = $this->frontendHelperManager->getActivatedFrontendHelpers();
     foreach ($frontendHelpers as $frontendHelper) {
         $frontendHelper->deactivate();
     }
 }
コード例 #2
0
ファイル: ext_localconf.php プロジェクト: punktDe/solr
    require_once $GLOBALS['PATH_solr'] . 'Lib/strptime/strptime.php';
}
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// adding the Search plugin
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'PiResults/Results.php', '_pi_results', 'list_type', FALSE);
// adding the Search Form plugin
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'PiSearch/Search.php', '_pi_search', 'list_type', TRUE);
// adding the Frequent Searches plugin
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'PiFrequentSearches/FrequentSearches.php', '_pi_frequentsearches', 'list_type', TRUE);
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// registering Index Queue page indexer helpers
if (TYPO3_MODE == 'FE' && isset($_SERVER['HTTP_X_TX_SOLR_IQ'])) {
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest']['Tx_Solr_IndexQueue_PageIndexerRequestHandler'] = '&Tx_Solr_IndexQueue_PageIndexerRequestHandler->run';
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['Indexer']['indexPageSubstitutePageDocument']['Tx_Solr_AdditionalFieldsIndexer'] = 'Tx_Solr_AdditionalFieldsIndexer';
    Tx_Solr_IndexQueue_FrontendHelper_Manager::registerFrontendHelper('findUserGroups', 'Tx_Solr_IndexQueue_FrontendHelper_UserGroupDetector');
    Tx_Solr_IndexQueue_FrontendHelper_Manager::registerFrontendHelper('indexPage', 'Tx_Solr_IndexQueue_FrontendHelper_PageIndexer');
}
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent('TYPO3.tx_solr.IndexInspector.Remote', $GLOBALS['PATH_solr'] . 'ModIndex/IndexInspectorRemoteController.php:Tx_Solr_ModIndex_IndexInspectorRemoteController', 'web_info', 'user,group');
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// page module plugin settings summary
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info'][$_EXTKEY . '_PiResults_Results'][$_EXTKEY] = 'Tx_Solr_PluginBase_BackendSummary->getSummary';
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// register search components
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('access', 'Tx_Solr_Search_AccessComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('relevance', 'Tx_Solr_Search_RelevanceComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('sorting', 'Tx_Solr_Search_SortingComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('debug', 'Tx_Solr_Search_DebugComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('analysis', 'Tx_Solr_Search_AnalysisComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('highlighting', 'Tx_Solr_Search_HighlightingComponent');
Tx_Solr_Search_SearchComponentManager::registerSearchComponent('spellchecking', 'Tx_Solr_Search_SpellcheckingComponent');