本文整理汇总了PHP中TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction方法的典型用法代码示例。如果您正苦于以下问题:PHP ExtensionManagementUtility::insertModuleFunction方法的具体用法?PHP ExtensionManagementUtility::insertModuleFunction怎么用?PHP ExtensionManagementUtility::insertModuleFunction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\CMS\Core\Utility\ExtensionManagementUtility
的用法示例。
在下文中一共展示了ExtensionManagementUtility::insertModuleFunction方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_ts', 'tx_tstemplateinfo', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'class.tx_tstemplateinfo.php', 'LLL:EXT:tstemplate/ts/locallang.xml:infoModify');
}
示例2: version_compare
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
$iconPath = $GLOBALS['PATHrel_solr'] . 'Resources/Public/Images/Icons/';
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons(array('ModuleOverview' => $iconPath . 'Search.png', 'ModuleIndexQueue' => $iconPath . 'IndexQueue.png', 'ModuleIndexMaintenance' => $iconPath . 'IndexMaintenance.png', 'ModuleIndexFields' => $iconPath . 'IndexFields.png', 'ModuleStopWords' => $iconPath . 'StopWords.png', 'ModuleSynonyms' => $iconPath . 'Synonyms.png', 'InitSolrConnections' => $iconPath . 'InitSolrConnections.png'), $_EXTKEY);
if (TYPO3_MODE == 'BE') {
$fileExtension = version_compare(TYPO3_branch, '7.0', '>=') ? 'svg' : 'png';
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'tools', 'administration', '', array('Administration' => 'index,setSite,setCore'), array('access' => 'admin', 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/Images/Icons/ModuleAdministration.' . $fileExtension, 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/ModuleAdministration.xlf'));
ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'Overview', array('index'));
ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexQueue', array('index,initializeIndexQueue,resetLogErrors,clearIndexQueue'));
ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexMaintenance', array('index,cleanUpIndex,emptyIndex,reloadIndexConfiguration'));
ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexFields', array('index'));
ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'StopWords', array('index,saveStopWords'));
ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'Synonyms', array('index,addSynonyms,deleteSynonyms'));
// registering reports
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['solr'] = array('ApacheSolrForTypo3\\Solr\\Report\\SchemaStatus', 'ApacheSolrForTypo3\\Solr\\Report\\SolrConfigStatus', 'ApacheSolrForTypo3\\Solr\\Report\\SolrConfigurationStatus', 'ApacheSolrForTypo3\\Solr\\Report\\SolrStatus', 'ApacheSolrForTypo3\\Solr\\Report\\SolrVersionStatus', 'ApacheSolrForTypo3\\Solr\\Report\\AccessFilterPluginInstalledStatus', 'ApacheSolrForTypo3\\Solr\\Report\\AllowUrlFOpenStatus', 'ApacheSolrForTypo3\\Solr\\Report\\FilterVarStatus');
// Index Inspector
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', 'ApacheSolrForTypo3\\Solr\\Backend\\IndexInspector\\IndexInspector', NULL, 'LLL:EXT:solr/Resources/Private/Language/Backend.xml:module_indexinspector');
// register Clear Cache Menu hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['clearSolrConnectionCache'] = '&ApacheSolrForTypo3\\Solr\\ConnectionManager';
// register Clear Cache Menu ajax call
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('solr::clearSolrConnectionCache', 'ApacheSolrForTypo3\\Solr\\ConnectionManager->updateConnections');
// the order of registering the garbage collector and the record monitor is important!
// for certain scenarios items must be removed by GC first, and then be re-added to to Index Queue
// hooking into TCE Main to monitor record updates that may require deleting documents from the index
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = '&ApacheSolrForTypo3\\Solr\\GarbageCollector';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = '&ApacheSolrForTypo3\\Solr\\GarbageCollector';
// hooking into TCE Main to monitor record updates that may require reindexing by the index queue
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'ApacheSolrForTypo3\\Solr\\IndexQueue\\RecordMonitor';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'ApacheSolrForTypo3\\Solr\\IndexQueue\\RecordMonitor';
}
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// register click menu item to initialize the Solr connections for a single site
示例3: defined
<?php
defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'ts', '', $extensionPath . 'ts/');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_ts', 'TYPO3\\CMS\\Tstemplate\\Controller\\TypoScriptTemplateConstantEditorModuleFunctionController', NULL, 'LLL:EXT:tstemplate/ts/locallang.xlf:constantEditor');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_ts', 'TYPO3\\CMS\\Tstemplate\\Controller\\TypoScriptTemplateInformationModuleFunctionController', NULL, 'LLL:EXT:tstemplate/ts/locallang.xlf:infoModify');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_ts', 'TYPO3\\CMS\\Tstemplate\\Controller\\TypoScriptTemplateObjectBrowserModuleFunctionController', NULL, 'LLL:EXT:tstemplate/ts/locallang.xlf:objectBrowser');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_ts', 'TYPO3\\CMS\\Tstemplate\\Controller\\TemplateAnalyzerModuleFunctionController', NULL, 'LLL:EXT:tstemplate/ts/locallang.xlf:templateAnalyzer');
}
示例4: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
if (TYPO3_MODE == 'BE') {
ExtensionManagementUtility::insertModuleFunction('web_func', \MichielRoos\WizardCrpagetree\CreatePageTree::class, null, 'LLL:EXT:wizard_crpagetree/Resources/Private/Language/locallang.xml:wiz_crPageTree');
ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_crpagetree/Resources/Private/Language/ContextSensitiveHelp/default.xml');
}
示例5: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
// Register backend modules, but not in frontend or within upgrade wizards
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
// Module Web->Info->Log
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', 'TYPO3\\CMS\\Belog\\Module\\BackendLogModuleBootstrap', NULL, 'Log');
// Module Tools->Log
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('TYPO3.CMS.' . $_EXTKEY, 'system', 'log', '', array('Tools' => 'index', 'WebInfo' => 'index'), array('access' => 'admin', 'icon' => 'EXT:belog/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'));
}
示例6: defined
<?php
defined('TYPO3_MODE') or die('Access denied.');
if (TYPO3_MODE == 'BE') {
// Add Web>Info module:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', 'Tx\\Realurl\\View\\AdministrationModuleFunction', '', 'LLL:EXT:realurl/Resources/Private/Language/locallang_db.xml:moduleFunction.tx_realurl_modfunc1', 'function', 'online');
}
$GLOBALS['TCA']['pages']['columns'] += array('tx_realurl_pathsegment' => array('label' => 'LLL:EXT:realurl/Resources/Private/Language/locallang_db.xml:pages.tx_realurl_pathsegment', 'displayCond' => 'FIELD:tx_realurl_exclude:!=:1', 'exclude' => 1, 'config' => array('type' => 'input', 'max' => 255, 'eval' => 'trim,nospace,lower')), 'tx_realurl_pathoverride' => array('label' => 'LLL:EXT:realurl/Resources/Private/Language/locallang_db.xml:pages.tx_realurl_path_override', 'displayCond' => 'FIELD:tx_realurl_exclude:!=:1', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))), 'tx_realurl_exclude' => array('label' => 'LLL:EXT:realurl/Resources/Private/Language/locallang_db.xml:pages.tx_realurl_exclude', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))), 'tx_realurl_nocache' => array('label' => 'LLL:EXT:realurl/Resources/Private/Language/locallang_db.xml:pages.tx_realurl_nocache', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))));
$GLOBALS['TCA']['pages']['ctrl']['requestUpdate'] .= ',tx_realurl_exclude';
$GLOBALS['TCA']['pages']['palettes']['realurl'] = array('showitem' => '
tx_realurl_pathsegment,
--linebreak--,
tx_realurl_pathoverride,
--linebreak--,
tx_realurl_exclude
');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', '--palette--;LLL:EXT:realurl/Resources/Private/Language/locallang_db.xml:pages.palette.realurl;realurl', '1,5,4,199,254', 'after:title');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('pages', 'EXT:realurl/Resources/Private/Language/locallang_csh.xml');
$GLOBALS['TCA']['pages_language_overlay']['columns'] += array('tx_realurl_pathsegment' => array('label' => 'LLL:EXT:realurl/Resources/Private/Language/locallang_db.xml:pages.tx_realurl_pathsegment', 'exclude' => 1, 'config' => array('type' => 'input', 'max' => 255, 'eval' => 'trim,nospace,lower')));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages_language_overlay', 'tx_realurl_pathsegment', '', 'after:nav_title');
示例7: registerInfoModuleFunction
/**
* Registers the crawler info module function
*
* @return void
*/
public static function registerInfoModuleFunction()
{
ExtensionManagementUtility::insertModuleFunction('web_info', 'tx_crawler_modfunc1', null, 'LLL:EXT:crawler/locallang_db.php:moduleFunction.tx_crawler_modfunc1');
}
示例8: defined
<?php
defined('TYPO3_MODE') or die;
// Adding Web>Info module for SEO management
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', 'B13\\SeoBasics\\BackendModule\\SeoModule', '', 'LLL:EXT:seo_basics/Resources/Private/Language/db.xml:module.title', 'function');
}
// Adding a static template TypoScript configuration from static/ (deprecated)
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('seo_basics', 'static', 'Metatags and XML Sitemap (old), simple replaced by new one');
// Adding the static template for new TypoScript
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('seo_basics', 'Configuration/TypoScript', 'Metatags and XML Sitemap');
示例9: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
// add info module function
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', 'tx_crawler_modfunc1', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'modfunc1/class.tx_crawler_modfunc1.php', 'LLL:EXT:crawler/locallang_db.php:moduleFunction.tx_crawler_modfunc1');
// add context menu item
$GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array('name' => 'tx_crawler_contextMenu', 'path' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'class.tx_crawler_contextMenu.php');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_crawler_configuration');
示例10: die
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_func', 'TYPO3\\CMS\\WizardCrpages\\Controller\\CreatePagesWizardModuleFunctionController', NULL, 'LLL:EXT:wizard_crpages/locallang.xlf:wiz_crMany', 'wiz');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_crpages/locallang_csh.xlf');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadNewTcaColumnsConfigFiles();
/**
* Extension: wizard_sortpages
* File: C:/xampp/htdocs/typo3_6.2.14/typo3/sysext/wizard_sortpages/ext_tables.php
*/
$_EXTKEY = 'wizard_sortpages';
$_EXTCONF = $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY];
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_func', 'TYPO3\\CMS\\WizardSortpages\\View\\SortPagesWizardModuleFunction', NULL, 'LLL:EXT:wizard_sortpages/locallang.xlf:wiz_sort', 'wiz');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_sortpages/locallang_csh.xlf');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadNewTcaColumnsConfigFiles();
/**
* Extension: go_maps_ext
* File: C:/xampp/htdocs/typo3_6.2.14/typo3conf/ext/go_maps_ext/ext_tables.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::registerPlugin('Clickstorm.' . $_EXTKEY, 'Show', 'Google Map');
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_show';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
开发者ID:KarlDennisMatthaei1923,项目名称:PierraaDesign,代码行数:31,代码来源:ext_tables_85b0b72e6c389a34572fa3532891d3a4ee21fec7.php
示例11: die
<?php
/**
* Extension backend registration
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$tmp = ['tx_ncstaticfilecache_cache' => ['exclude' => 0, 'label' => 'LLL:EXT:nc_staticfilecache/Resources/Private/Language/locallang.xml:nc_staticfilecache.field', 'config' => ['type' => 'check', 'default' => '1']]];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tmp);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_ncstaticfilecache_cache;;;;1-1-1');
if (TYPO3_MODE == 'BE') {
// Add Web>Info module:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', \SFC\NcStaticfilecache\Module\CacheModule::class, null, 'LLL:EXT:nc_staticfilecache/Resources/Private/Language/locallang.xml:module.title');
}
示例12: defined
<?php
defined('TYPO3_MODE') or die;
// Register backend modules, but not in frontend or within upgrade wizards
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
// Module Web->Info->Log
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', \TYPO3\CMS\Belog\Module\BackendLogModuleBootstrap::class, null, 'Log');
// Module Tools->Log
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule('TYPO3.CMS.Belog', 'system', 'log', '', array('Tools' => 'index', 'WebInfo' => 'index'), array('access' => 'admin', 'icon' => 'EXT:belog/Resources/Public/Icons/module-belog.svg', 'labels' => 'LLL:EXT:belog/Resources/Private/Language/locallang_mod.xlf'));
}
示例13: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', \GeorgRinger\PageSpeed\Controller\ModFuncController::class, NULL, 'LLL:EXT:page_speed/Resources/Private/Language/locallang.xlf:module');
}
示例14: defined
<?php
defined('TYPO3_MODE') or die;
// Add allowed records to pages
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain,backend_layout');
if (TYPO3_MODE === 'BE') {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_layout', 'EXT:frontend/Resources/Private/Language/locallang_csh_weblayout.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_info', 'EXT:frontend/Resources/Private/Language/locallang_csh_webinfo.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', \TYPO3\CMS\Frontend\Controller\PageInformationController::class, NULL, 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:mod_tx_cms_webinfo_page');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', \TYPO3\CMS\Frontend\Controller\TranslationStatusController::class, NULL, 'LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:mod_tx_cms_webinfo_lang');
}
示例15: defined
<?php
defined('TYPO3_MODE') or die();
if (TYPO3_MODE === 'BE') {
// Add module
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction(
'web_info',
\TYPO3\CMS\Linkvalidator\Report\LinkValidatorReport::class,
NULL,
'LLL:EXT:linkvalidator/Resources/Private/Language/locallang.xlf:mod_linkvalidator'
);
}
// Initialize Context Sensitive Help (CSH)
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr(
'linkvalidator',
'EXT:linkvalidator/Resources/Private/Language/Module/locallang_csh.xlf'
);