当前位置: 首页>>代码示例>>PHP>>正文


PHP ExtensionManager::addPItoST43方法代码示例

本文整理汇总了PHP中TYPO3\CMS\Core\Extension\ExtensionManager::addPItoST43方法的典型用法代码示例。如果您正苦于以下问题:PHP ExtensionManager::addPItoST43方法的具体用法?PHP ExtensionManager::addPItoST43怎么用?PHP ExtensionManager::addPItoST43使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TYPO3\CMS\Core\Extension\ExtensionManager的用法示例。


在下文中一共展示了ExtensionManager::addPItoST43方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Extension\ExtensionManager::addPItoST43($_EXTKEY);
if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('extbase')) {
    // Configure the Extbase Plugin
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin($_EXTKEY, 'Pi2', array('Search' => 'form,search'), array('Search' => 'form,search'));
}
// Attach to hooks:
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'][] = 'EXT:indexed_search/class.indexer.php:tx_indexedsearch_indexer';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['headerNoCache']['tx_indexedsearch'] = 'EXT:indexed_search/hooks/class.tx_indexedsearch_tslib_fe_hook.php:&tx_indexedsearch_tslib_fe_hook->headerNoCache';
// Register with "crawler" extension:
$TYPO3_CONF_VARS['EXTCONF']['crawler']['procInstructions']['tx_indexedsearch_reindex'] = 'Re-indexing';
$TYPO3_CONF_VARS['EXTCONF']['crawler']['cli_hooks']['tx_indexedsearch_crawl'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
// Register with TCEmain:
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_indexedsearch'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_indexedsearch'] = 'EXT:indexed_search/class.crawler.php:&tx_indexedsearch_crawler';
// Configure default document parsers:
$TYPO3_CONF_VARS['EXTCONF']['indexed_search']['external_parsers'] = array('pdf' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'doc' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'pps' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'ppt' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'xls' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'sxc' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'sxi' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'sxw' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'ods' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'odp' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'odt' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'rtf' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'txt' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'html' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'htm' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'csv' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'xml' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'jpg' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'jpeg' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser', 'tif' => 'EXT:indexed_search/class.external_parser.php:&TYPO3\\CMS\\IndexedSearch\\FileContentParser');
$TYPO3_CONF_VARS['EXTCONF']['indexed_search']['use_tables'] = 'index_phash,index_fulltext,index_rel,index_words,index_section,index_grlist,index_stat_search,index_stat_word,index_debug,index_config';
// unserializing the configuration so we can use it here:
$_EXTCONF = unserialize($_EXTCONF);
// Use the advanced doubleMetaphone parser instead of the internal one (usage of metaphone parsers is generally disabled by default)
if (isset($_EXTCONF['enableMetaphoneSearch']) && intval($_EXTCONF['enableMetaphoneSearch']) == 2) {
    $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['metaphone'] = 'EXT:indexed_search/class.doublemetaphone.php:&TYPO3\\CMS\\IndexedSearch\\Utility\\DoubleMetaPhoneUtility';
}
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:28,代码来源:ext_localconf.php


注:本文中的TYPO3\CMS\Core\Extension\ExtensionManager::addPItoST43方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。