當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ExtensionManagementUtility::addFieldsToUserSettings方法代碼示例

本文整理匯總了PHP中TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToUserSettings方法的典型用法代碼示例。如果您正苦於以下問題:PHP ExtensionManagementUtility::addFieldsToUserSettings方法的具體用法?PHP ExtensionManagementUtility::addFieldsToUserSettings怎麽用?PHP ExtensionManagementUtility::addFieldsToUserSettings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TYPO3\CMS\Core\Utility\ExtensionManagementUtility的用法示例。


在下文中一共展示了ExtensionManagementUtility::addFieldsToUserSettings方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: defined

<?php

defined('TYPO3_MODE') or die;
// Add Abbreviation records
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_rtehtmlarea_acronym');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_rtehtmlarea_acronym', 'EXT:rtehtmlarea/Resources/Private/Language/locallang_csh_abbreviation.xlf');
// Add contextual help files
$htmlAreaRteContextHelpFiles = ['General' => 'EXT:rtehtmlarea/Resources/Private/Language/locallang_csh.xlf', 'Abbreviation' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/Abbreviation/locallang_csh.xlf', 'EditElement' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/EditElement/locallang_csh.xlf', 'Language' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/Language/locallang_csh.xlf', 'MicrodataSchema' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/MicrodataSchema/locallang_csh.xlf', 'PlainText' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/PlainText/locallang_csh.xlf', 'RemoveFormat' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/RemoveFormat/locallang_csh.xlf', 'TableOperations' => 'EXT:rtehtmlarea/Resources/Private/Language/Plugins/TableOperations/locallang_csh.xlf'];
foreach ($htmlAreaRteContextHelpFiles as $key => $file) {
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('xEXT_rtehtmlarea_' . $key, $file);
}
unset($htmlAreaRteContextHelpFiles);
if (TYPO3_MODE === 'BE') {
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['RteImageSelector']['hooks']['editImageHandler'] = ['handler' => \TYPO3\CMS\Rtehtmlarea\ImageHandler\EditImageHandler::class];
}
// Extend TYPO3 User Settings Configuration
if (TYPO3_MODE === 'BE' && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('setup') && is_array($GLOBALS['TYPO3_USER_SETTINGS'])) {
    $GLOBALS['TYPO3_USER_SETTINGS']['columns'] = array_merge($GLOBALS['TYPO3_USER_SETTINGS']['columns'], ['rteWidth' => ['type' => 'text', 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang.xlf:rteWidth', 'csh' => 'xEXT_rtehtmlarea_General:rteWidth'], 'rteHeight' => ['type' => 'text', 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang.xlf:rteHeight', 'csh' => 'xEXT_rtehtmlarea_General:rteHeight'], 'rteResize' => ['type' => 'check', 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang.xlf:rteResize', 'csh' => 'xEXT_rtehtmlarea_General:rteResize'], 'rteMaxHeight' => ['type' => 'text', 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang.xlf:rteMaxHeight', 'csh' => 'xEXT_rtehtmlarea_General:rteMaxHeight'], 'rteCleanPasteBehaviour' => ['type' => 'select', 'renderType' => 'selectSingle', 'label' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/Plugins/PlainText/locallang_js.xlf:rteCleanPasteBehaviour', 'items' => ['plainText' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/Plugins/PlainText/locallang_js.xlf:plainText', 'pasteStructure' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/Plugins/PlainText/locallang_js.xlf:pasteStructure', 'pasteFormat' => 'LLL:EXT:rtehtmlarea/Resources/Private/Language/Plugins/PlainText/locallang_js.xlf:pasteFormat'], 'csh' => 'xEXT_rtehtmlarea_PlainText:behaviour']]);
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToUserSettings('--div--;LLL:EXT:rtehtmlarea/Resources/Private/Language/locallang.xlf:rteSettings,rteWidth,rteHeight,rteResize,rteMaxHeight,rteCleanPasteBehaviour');
}
開發者ID:,項目名稱:,代碼行數:20,代碼來源:

示例2: defined

<?php

defined('TYPO3_MODE') or die;
if (TYPO3_MODE === 'BE') {
    // Register wizard
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('wizard_openid', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'wizard/');
    // Add field to setup module
    $GLOBALS['TYPO3_USER_SETTINGS']['columns']['tx_openid_openid'] = array('type' => 'user', 'table' => 'be_users', 'label' => 'LLL:EXT:openid/locallang_db.xlf:_MOD_user_setup.tx_openid_openid', 'csh' => 'tx_openid_openid', 'userFunc' => \TYPO3\CMS\Openid\OpenidModuleSetup::class . '->renderOpenID', 'access' => \TYPO3\CMS\Openid\OpenidModuleSetup::class);
    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToUserSettings('tx_openid_openid', 'after:password2');
}
開發者ID:plan2net,項目名稱:TYPO3.CMS,代碼行數:10,代碼來源:ext_tables.php

示例3: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Get EM settings
$settings = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]);
if (!is_array($settings)) {
    $settings = array();
}
// Extend user settings
$GLOBALS['TYPO3_USER_SETTINGS']['columns']['tx_authenticator_secret'] = array('label' => 'LLL:EXT:authenticator/Resources/Private/Language/locallang_db.xlf:be_users.tx_authenticator_secret_user', 'type' => 'user', 'userFunc' => 'EXT:authenticator/Classes/Fields/QrFields.php:Tx\\Authenticator\\Fields\\QrFields->getBackendSetting');
$GLOBALS['TYPO3_USER_SETTINGS']['columns']['tx_authenticator_enabled'] = array('label' => 'LLL:EXT:authenticator/Resources/Private/Language/locallang_db.xlf:be_users.tx_authenticator_enabled_user', 'type' => 'check', 'table' => 'be_users');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToUserSettings(',--div--;LLL:EXT:authenticator/Resources/Private/Language/locallang_db.xlf:be_users.tx_authenticator_secret_user_title,tx_authenticator_enabled,tx_authenticator_secret');
開發者ID:mjankiewicz,項目名稱:authenticator,代碼行數:14,代碼來源:ext_tables.php


注:本文中的TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToUserSettings方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。