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


PHP ExtensionUtility::configurePlugin方法代码示例

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


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

示例1: sentry_register

 /**
  * Registers exception handler to the Sentry.
  *
  * @return void
  */
 function sentry_register()
 {
     $extConf = @unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['sentry']);
     if (is_array($extConf) && isset($extConf['sentryDSN'])) {
         // Register Raven autoloader
         $ravenPhpAutoloaderPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('sentry', 'lib/raven-php/lib/Raven/Autoloader.php');
         /** @noinspection PhpIncludeInspection */
         require_once $ravenPhpAutoloaderPath;
         Raven_Autoloader::register();
         // Set error handler
         $GLOBALS['SENTRY_CLIENT'] = new Raven_Client($extConf['sentryDSN']);
         $ravenErrorHandler = new Raven_ErrorHandler($GLOBALS['SENTRY_CLIENT']);
         $errorMask = E_ALL & ~(E_DEPRECATED | E_NOTICE | E_STRICT);
         // Register handlers in case if we do not have to report to TYPO3. Otherwise we need to register those handlers first!
         if (!$extConf['passErrorsToTypo3']) {
             $ravenErrorHandler->registerErrorHandler(FALSE, $errorMask);
             $ravenErrorHandler->registerExceptionHandler(FALSE);
         }
         // Make sure that TYPO3 does not override our handler
         \DmitryDulepov\Sentry\ErrorHandlers\SentryErrorHandler::initialize($ravenErrorHandler, $errorMask);
         \DmitryDulepov\Sentry\ErrorHandlers\SentryExceptionHandler::initialize($ravenErrorHandler);
         // TYPO3 7.0
         \DmitryDulepov\Sentry\ErrorHandlers\SentryExceptionHandlerFrontend::initialize($ravenErrorHandler);
         // Register test plugin
         if (is_array($extConf) && isset($extConf['enableTestPlugin']) && $extConf['enableTestPlugin']) {
             \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('DmitryDulepov.sentry', 'ErrorHandlerTest', array('ErrorHandlerTest' => 'index,phpWarning,phpError,phpException'), array('ErrorHandlerTest' => 'index,phpWarning,phpError,phpException'));
         }
         unset($extConf);
         // Fix TYPO3 7.0 hard-coded FE exception handler
         $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Frontend\\ContentObject\\Exception\\ProductionExceptionHandler'] = array('className' => 'DmitryDulepov\\Sentry\\ErrorHandlers\\SentryExceptionHandlerFrontend');
     }
 }
开发者ID:sascha-seyfert,项目名称:typo3-sentry,代码行数:37,代码来源:ext_localconf.php

示例2: extLocalconf

 /**
  *
  */
 public static function extLocalconf()
 {
     // Configure Plugins
     ExtensionUtility::configurePlugin('BERGWERK.' . self::$_extKey, 'Pi1', array('Address' => 'list'), array('Address' => 'list'));
     ExtensionUtility::configurePlugin('BERGWERK.' . self::$_extKey, 'Pi2', array('Address' => 'single'), array('Address' => 'single'));
     ExtensionUtility::configurePlugin('BERGWERK.' . self::$_extKey, 'Pi3', array('Address' => 'detail'), array('Address' => 'detail'));
     ExtensionUtility::configurePlugin('BERGWERK.' . self::$_extKey, 'Pi4', array('Address' => 'listManual'), array('Address' => 'listManual'));
 }
开发者ID:bergwerk,项目名称:bwrk_address,代码行数:11,代码来源:Bootstrap.php

示例3: die

    $TYPO3_CONF_VARS['SC_OPTIONS']['typo3/file_edit.php']['preOutputProcessingHook'][] = 'TYPO3\\CMS\\T3editor\\Hook\\FileEditHook->preOutputProcessingHook';
    $TYPO3_CONF_VARS['SC_OPTIONS']['typo3/file_edit.php']['postOutputProcessingHook'][] = 'TYPO3\\CMS\\T3editor\\Hook\\FileEditHook->postOutputProcessingHook';
}
/**
 * Extension: t3skin
 * File: C:/xampp/htdocs/typo3_6.2.14/typo3/sysext/t3skin/ext_localconf.php
 */
$_EXTKEY = 't3skin';
$_EXTCONF = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY];
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
	RTE.default.skin = EXT:' . $_EXTKEY . '/rtehtmlarea/htmlarea.css
	RTE.default.FE.skin = EXT:' . $_EXTKEY . '/rtehtmlarea/htmlarea.css
');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/template.php']['preStartPageHook']['TYPO3\\CMS\\T3skin\\Hook\\StyleGenerationHook'] = 'TYPO3\\CMS\\T3skin\\Hook\\StyleGenerationHook->preStartPageHook';
/**
 * Extension: go_maps_ext
 * File: C:/xampp/htdocs/typo3_6.2.14/typo3conf/ext/go_maps_ext/ext_localconf.php
 */
$_EXTKEY = 'go_maps_ext';
$_EXTCONF = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY];
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Clickstorm.' . $_EXTKEY, 'Show', array('Map' => 'show'), array());
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_gomapsext_domain_model_map'][0] = array('fList' => 'title,default_type', 'icon' => TRUE);
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_gomapsext_domain_model_category'][0] = array('fList' => 'name', 'icon' => TRUE);
$TYPO3_CONF_VARS['EXTCONF']['cms']['db_layout']['addTables']['tx_gomapsext_domain_model_address'][0] = array('fList' => 'title, info_window_content', 'icon' => TRUE);
#
开发者ID:KarlDennisMatthaei1923,项目名称:PierraaDesign,代码行数:31,代码来源:ext_localconf_c3d3388883e931b9576f8361e4bd7a021fa86def.php

示例4: loadExtensionConfiguration

 /**
  * Run the loading process for the ext_localconf.php file
  *
  * @param Loader $loader
  * @param array  $loaderInformation
  *
  * @return NULL
  */
 public function loadExtensionConfiguration(Loader $loader, array $loaderInformation)
 {
     $prefix = $loader->getVendorName() . '.' . $loader->getExtensionKey();
     foreach ($loaderInformation as $key => $information) {
         ExtensionUtility::configurePlugin($prefix, $key, $information['cache'], $information['noCache']);
     }
 }
开发者ID:phogl,项目名称:autoloader,代码行数:15,代码来源:Plugins.php

示例5: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Woehrl.' . $_EXTKEY, 'Pi1', array('Marke' => 'list, show'), array('Marke' => 'list, show, create, update, delete', 'Category' => 'list, show, create, update, delete', 'Modehaus' => 'list, show, create, update, delete'));
开发者ID:woehrlag,项目名称:new.woehrl.de,代码行数:6,代码来源:ext_localconf.php

示例6:

<?php

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Ds.' . $_EXTKEY, 'crud', ['User' => 'register,create,login,authenticate'], ['User' => 'register,create,login']);
开发者ID:TUGNR,项目名称:ds_example,代码行数:3,代码来源:ext_localconf.php

示例7: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('DERHANSEN.' . $_EXTKEY, 'Pi1', array('Banner' => 'show,getBanners,click'), array('Banner' => 'getBanners,click'));
// Register cache 'sfbanners_cache'
if (!is_array($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['sfbanners_cache'])) {
    $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations']['sfbanners_cache'] = array();
}
开发者ID:portrino,项目名称:sf_banners,代码行数:10,代码来源:ext_localconf.php

示例8: defined

<?php

defined('TYPO3_MODE') or die;
/** @noinspection PhpUndefinedVariableInspection */
$extensionConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
if (TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('realurl') && (!isset($extensionConfiguration['setRealurlConfigByDefault']) || $extensionConfiguration['setRealurlConfigByDefault'] == 1)) {
    /** @noinspection PhpIncludeInspection */
    require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/Realurl/realurl_conf.php';
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Evoweb.' . $_EXTKEY, 'Form', array('FeuserCreate' => 'form, preview, proxy, save, confirm, accept, decline, refuse, removeImage', 'FeuserEdit' => 'form, preview, proxy, save, confirm, accept, removeImage', 'FeuserPassword' => 'form, save'), array('FeuserCreate' => 'form, preview, proxy, save, confirm, accept, decline, refuse, removeImage', 'FeuserEdit' => 'form, preview, proxy, save, confirm, accept, removeImage', 'FeuserPassword' => 'form, save'));
$TYPO3_CONF_VARS['FE']['eID_include']['sf_register'] = 'EXT:sf_register/Classes/Api/Ajax.php';
define('SFREGISTERCACHEIDENTIFIER', 'cache_' . $_EXTKEY . '_extending');
// Register cache sf_register
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][SFREGISTERCACHEIDENTIFIER] = array('frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class, 'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class, 'options' => array());
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(\Evoweb\SfRegister\Property\TypeConverter\FrontendUserConverter::class);
if (TYPO3_MODE === 'FE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    /**
     * Signal slot dispatcher
     *
     * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
     */
    $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
    $signalSlotDispatcher->connect(\Evoweb\SfRegister\Controller\FeuserController::class, 'initializeAction', \Evoweb\SfRegister\Signal\FeuserControllerSignal::class, 'initializeAction');
}
开发者ID:electricretina,项目名称:sf_register,代码行数:24,代码来源:ext_localconf.php

示例9: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['votable']);
if (FALSE === isset($configuration['autoload_typoscript']) || TRUE === (bool) $configuration['autoload_typoscript']) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('votable', 'constants', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:votable/Configuration/TypoScript/constants.ts">');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript('votable', 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:votable/Configuration/TypoScript/setup.ts">');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Visol.votable', 'Pi1', array('Vote' => 'index, add, remove'), array('Vote' => 'index, add, remove'));
if (TYPO3_MODE === 'BE') {
    if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
        $signalSlotDispatcher->connect('TYPO3\\CMS\\Extensionmanager\\Utility\\InstallUtility', 'tablesDefinitionIsBeingBuilt', \Visol\Votable\VotingRegistry::class, 'addExtensionVoteDatabaseSchemaToTablesDefinition');
    }
    $signalSlotDispatcher->connect('TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService', 'tablesDefinitionIsBeingBuilt', \Visol\Votable\VotingRegistry::class, 'addVoteDatabaseSchemaToTablesDefinition');
}
开发者ID:visol,项目名称:ext-votable,代码行数:17,代码来源:ext_localconf.php

示例10: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'Blogsystem', array('Post' => 'list, tag, category, show, permalink, preview', 'Comment' => 'create, show'), array('Post' => 'permalink, preview', 'Comment' => 'create'));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'Archive', array('Post' => 'archive'), array('Post' => ''));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'Rss', array('Post' => 'rss'), array('Post' => ''));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'SubscriptionManager', array('Subscriber' => 'list, delete, error, confirm, logout'), array('Subscriber' => 'list, delete, error, confirm, logout'));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'Categories', array('Category' => 'list, show'), array('Category' => ''));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'LatestPosts', array('Post' => 'latest'), array('Post' => ''));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.' . $_EXTKEY, 'LatestComments', array('Comment' => 'latest'), array('Comment' => ''));
if (TYPO3_MODE == 'BE') {
    // add BE hooks
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:t3extblog/Classes/Hooks/Tcemain.php:TYPO3\\T3extblog\\Hooks\\Tcemain';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:t3extblog/Classes/Hooks/Tcemain.php:TYPO3\\T3extblog\\Hooks\\Tcemain';
    // Install Tool Upgrade Wizard
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['t3extblog_preview'] = 'TYPO3\\T3extblog\\Updates\\PreviewUpdateWizard';
}
// add RealURL configuration
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/realurl/class.tx_realurl_autoconfgen.php']['extensionConfiguration']['t3extblog'] = 'EXT:t3extblog/Classes/Hooks/RealUrl.php:TYPO3\\T3extblog\\Hooks\\RealUrl->extensionConfiguration';
// support for dd_googlesitemap
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dd_googlesitemap']['sitemap']['t3extblog'] = 'TYPO3\\T3extblog\\Hooks\\Sitemap\\Generator->main';
// add cHash configuration
// See: http://forum.typo3.org/index.php?t=msg&th=203350
$requiredParameters = array('tx_t3extblog_blogsystem[action]', 'tx_t3extblog_blogsystem[controller]', 'tx_t3extblog_blogsystem[post]', 'tx_t3extblog_blogsystem[permalinkPost]', 'tx_t3extblog_blogsystem[previewPost]', 'tx_t3extblog_blogsystem[tag]', 'tx_t3extblog_blogsystem[category]', 'tx_t3extblog_blogsystem[@widget_0][currentPage]', 'tx_t3extblog_subscriptionmanager[subscriber]');
$GLOBALS['TYPO3_CONF_VARS']['FE']['cHashRequiredParameters'] .= ',' . implode(',', $requiredParameters);
// @todo Remove this, see: https://github.com/fnagel/t3extblog/issues/99
$GLOBALS['TYPO3_CONF_VARS']['SYS']['locallangXMLOverride']['de']['EXT:t3extblog/Resources/Private/Language/locallang.xlf'][] = 'EXT:t3extblog/Resources/Private/Language/de.locallang.xlf';
开发者ID:dextar1,项目名称:t3extblog,代码行数:29,代码来源:ext_localconf.php

示例11: die

<?php

/***************************************************************
 *  Copyright notice
 *
 *  (c) 2014 AIJKO GmbH <info@aijko.de
 *
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
 *  free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  The GNU General Public License can be found at
 *  http://www.gnu.org/copyleft/gpl.html.
 *
 *  This script is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Configure plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin($_EXTKEY, 'IPN', array('IpnListener' => 'receive'), array('IpnListener' => 'receive'));
开发者ID:kj187,项目名称:paypal,代码行数:30,代码来源:ext_localconf.php

示例12: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Pluswerk.' . $_EXTKEY, 'Bloglisting', array('Blog' => 'list,addForm,add,show,updateForm,update,deleteConfirm,delete,rss', 'Post' => 'addForm,add,show,updateForm,update,deleteConfirm,delete,ajax', 'Json' => 'json'), array('Blog' => 'list,addForm,add,show,updateForm,update,deleteConfirm,delete,rss', 'Post' => 'addForm,add,show,updateForm,update,deleteConfirm,delete,ajax', 'Json' => 'json'));
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter('Pluswerk\\Simpleblog\\Property\\TypeConverter\\UploadedFileReferenceConverter');
$signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
$signalSlotDispatcher->connect('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Backend', 'afterInsertObject', 'Pluswerk\\Simpleblog\\Service\\SignalService', 'handleInsertEvent');
$signalSlotDispatcher->connect('Pluswerk\\Simpleblog\\Controller\\PostController', 'beforeCommentCreation', 'Pluswerk\\Simpleblog\\Service\\SignalService', 'handleCommentInsertion');
开发者ID:plobacher,项目名称:extbasebookexample,代码行数:10,代码来源:ext_localconf.php

示例13: defined

<?php

defined('TYPO3_MODE') or die;
// register extbase plugin
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('TYPO3.CMS.IndexedSearch', 'Pi2', array('Search' => 'form,search'), array('Search' => 'form,search'));
// Attach to hooks:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['pageIndexing'][] = \TYPO3\CMS\IndexedSearch\Indexer::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['headerNoCache']['tx_indexedsearch'] = \TYPO3\CMS\IndexedSearch\Hook\TypoScriptFrontendHook::class . '->headerNoCache';
// Register with "crawler" extension:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['procInstructions']['tx_indexedsearch_reindex'] = 'Re-indexing';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['cli_hooks']['tx_indexedsearch_crawl'] = \TYPO3\CMS\IndexedSearch\Hook\CrawlerHook::class;
// Register with TCEmain:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tx_indexedsearch'] = \TYPO3\CMS\IndexedSearch\Hook\CrawlerHook::class;
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_indexedsearch'] = \TYPO3\CMS\IndexedSearch\Hook\CrawlerHook::class;
// Configure default document parsers:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['external_parsers'] = array('pdf' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'doc' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'docx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'dotx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'pps' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'ppsx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'ppt' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'pptx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'potx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'xls' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'xlsx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'xltx' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'sxc' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'sxi' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'sxw' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'ods' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'odp' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'odt' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'rtf' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'txt' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'html' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'htm' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'csv' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'xml' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'jpg' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'jpeg' => \TYPO3\CMS\IndexedSearch\FileContentParser::class, 'tif' => \TYPO3\CMS\IndexedSearch\FileContentParser::class);
$GLOBALS['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']) && (int) $_EXTCONF['enableMetaphoneSearch'] == 2) {
    $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['metaphone'] = \TYPO3\CMS\IndexedSearch\Utility\DoubleMetaPhoneUtility::class;
}
开发者ID:dachcom-digital,项目名称:TYPO3.CMS,代码行数:23,代码来源:ext_localconf.php

示例14: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('JS.' . $_EXTKEY, 'Gallery', array(), array());
开发者ID:teneris,项目名称:js_video_gallery,代码行数:6,代码来源:ext_localconf.php

示例15: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (FALSE === isset($GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'])) {
    \TYPO3\CMS\Core\Utility\GeneralUtility::sysLog('FluidcontentCore requires an additional configuration file in typo3conf/AdditionalConfiguration.php - ' . 'you can have FluidcontentCore generate this file for you from the extension manager by running the FluidcontentCore update script. A dummy ' . 'has been created, but you will only be able to render content (not plugins!) until the file is created', 'fluidcontent_core', \TYPO3\CMS\Core\Utility\GeneralUtility::SYSLOG_SEVERITY_WARNING);
    $GLOBALS['TYPO3_CONF_VARS']['FE']['contentRenderingTemplates'] = array('fluidcontentcore/Configuration/TypoScript/');
}
$GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['types'] = array('header', 'text', 'image', 'bullets', 'uploads', 'table', 'media', 'menu', 'shortcut', 'div', 'html', 'default');
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\FluidcontentCore\\Provider\\CoreContentProvider');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms']['db_new_content_el']['wizardItemsHook']['fluidcontent_core'] = 'FluidTYPO3\\FluidcontentCore\\Hooks\\WizardItemsHookSubscriber';
// Prepare a global variants registration array indexed by CType value.
// To add your own, do fx: $GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['variants']['textpic'][] = 'myextensionkey';
$GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['variants'] = array_combine(array_values($GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['types']), array_fill(0, count($GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['types']), array()));
$types = count($GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['types']);
for ($i = 0; $i < $types; $i++) {
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('FluidTYPO3.FluidcontentCore', ucfirst($GLOBALS['TYPO3_CONF_VARS']['FluidTYPO3.FluidcontentCore']['types'][$i]), array('CoreContent' => 'render,error'), array());
}
unset($types, $i);
// Include new content elements to modWizards
if (TRUE === version_compare(TYPO3_version, '7.3', '>')) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluidcontent_core/Configuration/PageTS/modWizards.ts">');
}
开发者ID:sitegeist,项目名称:fluidcontent_core,代码行数:24,代码来源:ext_localconf.php


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