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


PHP ExtensionManagementUtility::addModule方法代码示例

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


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

示例1: defined

<?php

defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'func', '', '', array('routeTarget' => \TYPO3\CMS\Func\Controller\PageFunctionsController::class . '::mainAction', 'access' => 'user,group', 'name' => 'web_func', 'icon' => 'EXT:func/Resources/Public/Icons/module-func.svg', 'labels' => 'LLL:EXT:lang/locallang_mod_web_func.xlf'));
}
开发者ID:dachcom-digital,项目名称:TYPO3.CMS,代码行数:6,代码来源:ext_tables.php

示例2: die

<?php

if (!defined("TYPO3_MODE")) {
    die("Access denied.");
}
if (TYPO3_MODE == "BE") {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule("user", "txrsuserimpM1", "", \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . "mod1/");
}
开发者ID:visol,项目名称:ext-rs_userimp,代码行数:8,代码来源:ext_tables.php

示例3: defined

<?php

defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
    // Register report module additions
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['typo3'][] = \TYPO3\CMS\Install\Report\InstallStatusReport::class;
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['security'][] = \TYPO3\CMS\Install\Report\SecurityStatusReport::class;
    // Only add the environment status report if not in CLI mode
    if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) {
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['system'][] = \TYPO3\CMS\Install\Report\EnvironmentStatusReport::class;
    }
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('system', 'extinstall', '', '', array('routeTarget' => \TYPO3\CMS\Install\Controller\BackendModuleController::class . '::index', 'access' => 'admin', 'name' => 'system_extinstall', 'labels' => array('tabs_images' => array('tab' => 'EXT:install/Resources/Public/Icons/module-install.svg'), 'll_ref' => 'LLL:EXT:install/Resources/Private/Language/BackendModule.xlf')));
}
开发者ID:amazingh,项目名称:TYPO3.CMS,代码行数:13,代码来源:ext_tables.php

示例4: addModuleCanAddModule

 /**
  * @test
  * @dataProvider addModulePositionTestsDataProvider
  * @param $position
  * @param $existing
  * @param $expected
  */
 public function addModuleCanAddModule($position, $existing, $expected)
 {
     $mainModule = 'foobar';
     $subModule = 'newModule';
     if ($existing) {
         $GLOBALS['TBE_MODULES'][$mainModule] = $existing;
     }
     ExtensionManagementUtility::addModule($mainModule, $subModule, $position);
     $this->assertTrue(isset($GLOBALS['TBE_MODULES'][$mainModule]));
     $this->assertEquals($expected, $GLOBALS['TBE_MODULES'][$mainModule]);
 }
开发者ID:plan2net,项目名称:TYPO3.CMS,代码行数:18,代码来源:ExtensionManagementUtilityTest.php

示例5: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('tools_install', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod/');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('tools', 'install', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod/');
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['typo3'][] = 'TYPO3\\CMS\\Install\\Report\\InstallStatusReport';
}
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:10,代码来源:ext_tables.php

示例6: defined

<?php

defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('user', 'setup', 'after:task', '', array('routeTarget' => \TYPO3\CMS\Setup\Controller\SetupModuleController::class . '::mainAction', 'access' => 'group,user', 'name' => 'user_setup', 'icon' => 'EXT:setup/Resources/Public/Icons/module-setup.svg', 'labels' => array('ll_ref' => 'LLL:EXT:setup/Resources/Private/Language/locallang_mod.xlf')));
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_user_setup', 'EXT:setup/Resources/Private/Language/locallang_csh_mod.xlf');
    $GLOBALS['TYPO3_USER_SETTINGS'] = array('columns' => array('realName' => array('type' => 'text', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:beUser_realName', 'table' => 'be_users', 'csh' => 'beUser_realName'), 'email' => array('type' => 'email', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:beUser_email', 'table' => 'be_users', 'csh' => 'beUser_email'), 'emailMeAtLogin' => array('type' => 'check', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:emailMeAtLogin', 'csh' => 'emailMeAtLogin'), 'password' => array('type' => 'password', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:newPassword', 'table' => 'be_users', 'csh' => 'newPassword'), 'password2' => array('type' => 'password', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:newPasswordAgain', 'table' => 'be_users', 'csh' => 'newPasswordAgain'), 'passwordCurrent' => array('type' => 'password', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:passwordCurrent', 'table' => 'be_users', 'csh' => 'passwordCurrent'), 'avatar' => array('label' => 'LLL:EXT:lang/locallang_tca.xlf:be_users.avatar', 'type' => 'avatar', 'table' => 'be_users', 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']), 'lang' => array('type' => 'select', 'itemsProcFunc' => \TYPO3\CMS\Setup\Controller\SetupModuleController::class . '->renderLanguageSelect', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:language', 'csh' => 'language'), 'startModule' => array('type' => 'select', 'itemsProcFunc' => \TYPO3\CMS\Setup\Controller\SetupModuleController::class . '->renderStartModuleSelect', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:startModule', 'csh' => 'startModule'), 'thumbnailsByDefault' => array('type' => 'check', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:showThumbs', 'csh' => 'showThumbs'), 'titleLen' => array('type' => 'text', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:maxTitleLen', 'csh' => 'maxTitleLen'), 'edit_RTE' => array('type' => 'check', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:edit_RTE', 'csh' => 'edit_RTE'), 'edit_docModuleUpload' => array('type' => 'check', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:edit_docModuleUpload', 'csh' => 'edit_docModuleUpload'), 'showHiddenFilesAndFolders' => array('type' => 'check', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:showHiddenFilesAndFolders', 'csh' => 'showHiddenFilesAndFolders'), 'copyLevels' => array('type' => 'text', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:copyLevels', 'csh' => 'copyLevels'), 'recursiveDelete' => array('type' => 'check', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:recursiveDelete', 'csh' => 'recursiveDelete'), 'resetConfiguration' => array('type' => 'button', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:resetConfiguration', 'buttonlabel' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:resetConfigurationButton', 'csh' => 'reset', 'onClick' => 'if (confirm(\'%s\')) { document.getElementById(\'setValuesToDefault\').value = 1; this.form.submit(); }', 'onClickLabels' => array('LLL:EXT:setup/Resources/Private/Language/locallang.xlf:setToStandardQuestion')), 'resizeTextareas_Flexible' => array('type' => 'check', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:resizeTextareas_Flexible', 'csh' => 'resizeTextareas_Flexible'), 'resizeTextareas_MaxHeight' => array('type' => 'text', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:flexibleTextareas_MaxHeight', 'csh' => 'flexibleTextareas_MaxHeight'), 'debugInWindow' => array('type' => 'check', 'label' => 'LLL:EXT:setup/Resources/Private/Language/locallang.xlf:debugInWindow', 'access' => 'admin')), 'showitem' => '--div--;LLL:EXT:setup/Resources/Private/Language/locallang.xlf:personal_data,realName,email,emailMeAtLogin,avatar,lang,
				--div--;LLL:EXT:setup/Resources/Private/Language/locallang.xml:passwordHeader,passwordCurrent,password,password2,
				--div--;LLL:EXT:setup/Resources/Private/Language/locallang.xlf:opening,startModule,thumbnailsByDefault,titleLen,
				--div--;LLL:EXT:setup/Resources/Private/Language/locallang.xlf:editFunctionsTab,edit_RTE,edit_docModuleUpload,showHiddenFilesAndFolders,resizeTextareas_Flexible,resizeTextareas_MaxHeight,copyLevels,recursiveDelete,resetConfiguration,
				--div--;LLL:EXT:setup/Resources/Private/Language/locallang.xlf:adminFunctions,debugInWindow');
}
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:12,代码来源:ext_tables.php

示例7: defined

<?php

defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('web_list', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'list', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/', array('script' => '_DISPATCH', 'access' => 'user,group', 'name' => 'web_list', 'labels' => array('tabs_images' => array('tab' => '../Resources/Public/Icons/module-list.png'), 'll_ref' => 'LLL:EXT:lang/locallang_mod_web_list.xlf')));
    // Register element browser wizard
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('wizard_element_browser', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/ElementBrowserWizard/');
}
开发者ID:adrolli,项目名称:TYPO3.CMS,代码行数:9,代码来源:ext_tables.php

示例8: unset

// abstract
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi_abstract'] = 'layout,select_key,pages';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi_abstract'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi_abstract', 'FILE:EXT:' . $_EXTKEY . '/pi_abstract/flexform_ds.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:caretaker/locallang_db.xml:tt_content.list_type_pi_abstract', $_EXTKEY . '_pi_abstract'), 'list_type');
if (TYPO3_MODE == "BE") {
    $TBE_MODULES_EXT["xMOD_db_new_content_el"]["addElClasses"]["tx_caretaker_pi_abstract_wizicon"] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi_abstract/class.tx_caretaker_pi_abstract_wizicon.php';
}
// register Extension TS templates
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'res/typoscript/plugin', 'Caretaker Plugin Template');
// register Extension TS templates
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'res/typoscript/page', 'Caretaker Page Template');
// Register Backend Modules
if (TYPO3_MODE == "BE") {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule("txcaretakerNav", "", "", \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . "mod_nav/");
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule("txcaretakerNav", "txcaretakerOverview", "", \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . "mod_overview/");
    $caretaker_modconf = NULL;
    if (isset($TBE_MODULES['file'])) {
        $caretaker_modconf = $TBE_MODULES['txcaretakerNav'];
        unset($TBE_MODULES['txcaretakerNav']);
    }
    // move module after 'file'
    $temp_TBE_MODULES = array();
    foreach ($TBE_MODULES as $key => $value) {
        if ($key == 'file') {
            $temp_TBE_MODULES[$key] = $value;
            $temp_TBE_MODULES['txcaretakerNav'] = $caretaker_modconf;
        } else {
            $temp_TBE_MODULES[$key] = $value;
        }
    }
开发者ID:TrueType,项目名称:caretaker,代码行数:31,代码来源:ext_tables.php

示例9: defined

<?php
defined('TYPO3_MODE') or die();

if (TYPO3_MODE === 'BE') {
	\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule(
		'file',
		'list',
		'',
		\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/',
		array(
			'script' => '_DISPATCH',
			'access' => 'user,group',
			'name' => 'file_list',
			'workspaces' => 'online,custom',
			'labels' => array(
				'tabs_images' => array(
					'tab' => '../Resources/Public/Icons/module-filelist.png',
				),
				'll_ref' => 'LLL:EXT:lang/locallang_mod_file_list.xlf',
			),
		)
	);
}
开发者ID:,项目名称:,代码行数:23,代码来源:

示例10: registerModule

 /**
  * Registers an Extbase module (main or sub) to the backend interface.
  * FOR USE IN ext_tables.php FILES
  *
  * @param string $extensionName The extension name (in UpperCamelCase) or the extension key (in lower_underscore)
  * @param string $mainModuleName The main module key. So $main would be an index in the $TBE_MODULES array and $sub could be an element in the lists there. If $subModuleName is not set a blank $extensionName module is created
  * @param string $subModuleName The submodule key.
  * @param string $position This can be used to set the position of the $sub module within the list of existing submodules for the main module. $position has this syntax: [cmd]:[submodule-key]. cmd can be "after", "before" or "top" (or blank which is default). If "after"/"before" then submodule will be inserted after/before the existing submodule with [submodule-key] if found. If not found, the bottom of list. If "top" the module is inserted in the top of the submodule list.
  * @param array $controllerActions is an array of allowed combinations of controller and action stored in an array (controller name as key and a comma separated list of action names as value, the first controller and its first action is chosen as default)
  * @param array $moduleConfiguration The configuration options of the module (icon, locallang.xlf file)
  * @throws \InvalidArgumentException
  * @return void
  */
 public static function registerModule($extensionName, $mainModuleName = '', $subModuleName = '', $position = '', array $controllerActions = [], array $moduleConfiguration = [])
 {
     self::checkExtensionNameFormat($extensionName);
     // Check if vendor name is prepended to extensionName in the format {vendorName}.{extensionName}
     $vendorName = null;
     if (false !== ($delimiterPosition = strrpos($extensionName, '.'))) {
         $vendorName = str_replace('.', '\\', substr($extensionName, 0, $delimiterPosition));
         $extensionName = substr($extensionName, $delimiterPosition + 1);
         if (!empty($vendorName)) {
             self::checkVendorNameFormat($vendorName, $extensionName);
         }
     }
     $extensionName = str_replace(' ', '', ucwords(str_replace('_', ' ', $extensionName)));
     $defaultModuleConfiguration = ['access' => 'admin', 'icon' => 'EXT:extbase/Resources/Public/Icons/Extension.png', 'labels' => ''];
     if ($mainModuleName !== '' && !array_key_exists($mainModuleName, $GLOBALS['TBE_MODULES'])) {
         $mainModuleName = $extensionName . \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($mainModuleName);
     } else {
         $mainModuleName = $mainModuleName !== '' ? $mainModuleName : 'web';
     }
     // add mandatory parameter to use new pagetree
     if ($mainModuleName === 'web') {
         $defaultModuleConfiguration['navigationComponentId'] = 'typo3-pagetree';
     }
     \TYPO3\CMS\Core\Utility\ArrayUtility::mergeRecursiveWithOverrule($defaultModuleConfiguration, $moduleConfiguration);
     $moduleConfiguration = $defaultModuleConfiguration;
     $moduleSignature = $mainModuleName;
     if ($subModuleName !== '') {
         $subModuleName = $extensionName . \TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($subModuleName);
         $moduleSignature .= '_' . $subModuleName;
     }
     $moduleConfiguration['name'] = $moduleSignature;
     if (null !== $vendorName) {
         $moduleConfiguration['vendorName'] = $vendorName;
     }
     $moduleConfiguration['extensionName'] = $extensionName;
     $moduleConfiguration['configureModuleFunction'] = [\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::class, 'configureModule'];
     $GLOBALS['TBE_MODULES']['_configuration'][$moduleSignature] = $moduleConfiguration;
     if (!is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions'][$extensionName]['modules'][$moduleSignature])) {
         $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions'][$extensionName]['modules'][$moduleSignature] = [];
     }
     foreach ($controllerActions as $controllerName => $actions) {
         $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions'][$extensionName]['modules'][$moduleSignature]['controllers'][$controllerName] = ['actions' => \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $actions)];
     }
     \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule($mainModuleName, $subModuleName, $position);
 }
开发者ID:,项目名称:,代码行数:58,代码来源:

示例11: defined

<?php

defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'ts', '', '', array('routeTarget' => \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateModuleController::class . '::mainAction', 'access' => 'admin', 'name' => 'web_ts', 'labels' => array('tabs_images' => array('tab' => 'EXT:tstemplate/Resources/Public/Icons/module-tstemplate.svg'), 'll_ref' => 'LLL:EXT:tstemplate/Resources/Private/Language/locallang_mod.xlf')));
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_ts', \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateConstantEditorModuleFunctionController::class, null, 'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:constantEditor');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_ts', \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::class, null, 'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:infoModify');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_ts', \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateObjectBrowserModuleFunctionController::class, null, 'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:objectBrowser');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_ts', \TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController::class, null, 'LLL:EXT:tstemplate/Resources/Private/Language/locallang.xlf:templateAnalyzer');
}
开发者ID:rickymathew,项目名称:TYPO3.CMS,代码行数:10,代码来源:ext_tables.php

示例12: foreach

// Check from Vidi configuration what default module should be loaded.
// Make sure the class exists to avoid a Runtime Error
if (TYPO3_MODE == 'BE') {
    // Add content main module before 'user'
    if (!isset($GLOBALS['TBE_MODULES']['content'])) {
        // Position module "content" after module "user" manually. No API is available for that, it seems...
        $modules = [];
        foreach ($GLOBALS['TBE_MODULES'] as $key => $val) {
            if ($key == 'user') {
                $modules['content'] = '';
            }
            $modules[$key] = $val;
        }
        $GLOBALS['TBE_MODULES'] = $modules;
        // Register "data management" module.
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('content', '', '', '', ['name' => 'content', 'access' => 'user,group', 'labels' => ['ll_ref' => 'LLL:EXT:vidi/Resources/Private/Language/content_module.xlf']]);
    }
    /** @var \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager */
    $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
    /** @var \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility */
    $configurationUtility = $objectManager->get('TYPO3\\CMS\\Extensionmanager\\Utility\\ConfigurationUtility');
    $configuration = $configurationUtility->getCurrentConfiguration('vidi');
    $pids = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $configuration['default_pid']['value'], TRUE);
    $defaultPid = array_shift($pids);
    $defaultPids = [];
    foreach ($pids as $dataTypeAndPid) {
        $parts = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(':', $dataTypeAndPid);
        if (count($parts) === 2) {
            $defaultPids[$parts[0]] = $parts[1];
        }
    }
开发者ID:BergischMedia,项目名称:vidi,代码行数:31,代码来源:ext_tables.php

示例13: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE === 'BE') {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('user', 'setup', 'after:task', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod/');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_user_setup', 'EXT:setup/locallang_csh_mod.xlf');
    $GLOBALS['TYPO3_USER_SETTINGS'] = array('ctrl' => array('dividers2tabs' => 1), 'columns' => array('realName' => array('type' => 'text', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:beUser_realName', 'table' => 'be_users', 'csh' => 'beUser_realName'), 'email' => array('type' => 'text', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:beUser_email', 'table' => 'be_users', 'csh' => 'beUser_email'), 'emailMeAtLogin' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:emailMeAtLogin', 'csh' => 'emailMeAtLogin'), 'password' => array('type' => 'password', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:newPassword', 'table' => 'be_users', 'csh' => 'newPassword'), 'password2' => array('type' => 'password', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:newPasswordAgain', 'table' => 'be_users', 'csh' => 'newPasswordAgain'), 'lang' => array('type' => 'select', 'itemsProcFunc' => 'TYPO3\\CMS\\Setup\\Controller\\SetupModuleController->renderLanguageSelect', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:language', 'csh' => 'language'), 'startModule' => array('type' => 'select', 'itemsProcFunc' => 'TYPO3\\CMS\\Setup\\Controller\\SetupModuleController->renderStartModuleSelect', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:startModule', 'csh' => 'startModule'), 'thumbnailsByDefault' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:showThumbs', 'csh' => 'showThumbs'), 'titleLen' => array('type' => 'text', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:maxTitleLen', 'csh' => 'maxTitleLen'), 'edit_RTE' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:edit_RTE', 'csh' => 'edit_RTE'), 'edit_docModuleUpload' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:edit_docModuleUpload', 'csh' => 'edit_docModuleUpload'), 'showHiddenFilesAndFolders' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:showHiddenFilesAndFolders', 'csh' => 'showHiddenFilesAndFolders'), 'copyLevels' => array('type' => 'text', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:copyLevels', 'csh' => 'copyLevels'), 'recursiveDelete' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:recursiveDelete', 'csh' => 'recursiveDelete'), 'simulate' => array('type' => 'select', 'itemsProcFunc' => 'TYPO3\\CMS\\Setup\\Controller\\SetupModuleController->renderSimulateUserSelect', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:simulate', 'csh' => 'simuser'), 'resetConfiguration' => array('type' => 'button', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:resetConfiguration', 'buttonlabel' => 'LLL:EXT:setup/mod/locallang.xlf:resetConfigurationShort', 'csh' => 'reset', 'onClick' => 'if (confirm(\'%s\')) { document.getElementById(\'setValuesToDefault\').value = 1; this.form.submit(); }', 'onClickLabels' => array('LLL:EXT:setup/mod/locallang.xlf:setToStandardQuestion')), 'clearSessionVars' => array('type' => 'button', 'access' => 'admin', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:clearSessionVars', 'buttonlabel' => 'LLL:EXT:setup/mod/locallang.xlf:clearSessionVarsShort', 'csh' => 'reset', 'onClick' => 'if (confirm(\'%s\')) { document.getElementById(\'clearSessionVars\').value = 1; this.form.submit(); }', 'onClickLabels' => array('LLL:EXT:setup/mod/locallang.xlf:clearSessionVarsQuestion')), 'resizeTextareas' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:resizeTextareas', 'csh' => 'resizeTextareas'), 'resizeTextareas_Flexible' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:resizeTextareas_Flexible', 'csh' => 'resizeTextareas_Flexible'), 'resizeTextareas_MaxHeight' => array('type' => 'text', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:flexibleTextareas_MaxHeight', 'csh' => 'flexibleTextareas_MaxHeight'), 'debugInWindow' => array('type' => 'check', 'label' => 'LLL:EXT:setup/mod/locallang.xlf:debugInWindow', 'access' => 'admin')), 'showitem' => '--div--;LLL:EXT:setup/mod/locallang.xlf:personal_data,realName,email,emailMeAtLogin,password,password2,lang,
				--div--;LLL:EXT:setup/mod/locallang.xlf:opening,startModule,thumbnailsByDefault,titleLen,
				--div--;LLL:EXT:setup/mod/locallang.xlf:editFunctionsTab,edit_RTE,edit_docModuleUpload,showHiddenFilesAndFolders,resizeTextareas,resizeTextareas_Flexible,resizeTextareas_MaxHeight,copyLevels,recursiveDelete,resetConfiguration,clearSessionVars,
				--div--;LLL:EXT:setup/mod/locallang.xlf:adminFunctions,simulate,debugInWindow');
}
开发者ID:khanhdeux,项目名称:typo3test,代码行数:13,代码来源:ext_tables.php

示例14: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    /* Add the backend modules */
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('tools', 'txwecmapM1', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/');
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('tools', 'txwecmapM2', '', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod2/');
    /* Add the plugin to the New Content Element wizard */
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_wecmap_pi1_wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi1/class.tx_wecmap_pi1_wizicon.php';
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_wecmap_pi2_wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi2/class.tx_wecmap_pi2_wizicon.php';
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_wecmap_pi3_wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi3/class.tx_wecmap_pi3_wizicon.php';
}
/* Set up the tt_content fields for the two frontend plugins */
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key,pages,recursive';
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi2'] = 'layout,select_key,pages,recursive';
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi3'] = 'layout,select_key,pages,recursive';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi2'] = 'pi_flexform';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi3'] = 'pi_flexform';
/* Adds the plugins and flexforms to the TCA */
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:wec_map/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1'), 'list_type');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:wec_map/locallang_db.xml:tt_content.list_type_pi2', $_EXTKEY . '_pi2'), 'list_type');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:wec_map/locallang_db.xml:tt_content.list_type_pi3', $_EXTKEY . '_pi3'), 'list_type');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:wec_map/pi1/flexform_ds.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi2', 'FILE:EXT:wec_map/pi2/flexform_ds.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi3', 'FILE:EXT:wec_map/pi3/flexform_ds.xml');
// register Ajax scripts
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('txwecmapM1::deleteAll', 'tx_wecmap_module1_ajax->ajaxDeleteAll');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('txwecmapM1::deleteSingle', 'tx_wecmap_module1_ajax->ajaxDeleteSingle');
开发者ID:subugoe,项目名称:typo3-wec_map,代码行数:31,代码来源:ext_tables.php

示例15: die

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$extPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY);
// Allow all calendar records on standard pages, in addition to SysFolders.
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_event');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_category');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_calendar');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_exception_event');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_exception_event_group');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_location');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_organizer');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_unknown_users');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_attendee');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_fe_user_event_monitor_mm');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_cal_event_deviation');
// Add Calendar Events to the "Insert Records" content element
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToInsertRecords('tx_cal_event');
// initalize 'context sensitive help' (csh)
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cal_event', 'EXT:cal/Resources/Private/Help/locallang_csh_txcalevent.php');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cal_calendar', 'EXT:cal/Resources/Private/Help/locallang_csh_txcalcal.php');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cal_category', 'EXT:cal/Resources/Private/Help/locallang_csh_txcalcat.php');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cal_exception_event', 'EXT:cal/Resources/Private/Help/locallang_csh_txcalexceptionevent.php');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cal_exception_event_group', 'EXT:cal/Resources/Private/Help/locallang_csh_txcalexceptioneventgroup.php');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cal_location', 'EXT:cal/Resources/Private/Help/locallang_csh_txcallocation.php');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_cal_organizer', 'EXT:cal/Resources/Private/Help/locallang_csh_txcalorganizer.php');
if (TYPO3_MODE == "BE") {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule("tools", "calrecurrencegenerator", "", $extPath . "Classes/Backend/Modul/");
    $GLOBALS['TBE_MODULES_EXT']['xMOD_db_new_content_el']['addElClasses']['TYPO3\\CMS\\Cal\\Backend\\CalWizIcon'] = $extPath . 'Classes/Backend/CalWizIcon.php';
}
开发者ID:ulrikkold,项目名称:cal,代码行数:30,代码来源:ext_tables.php


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