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


PHP ExtensionManagementUtility::addToAllTCATypes方法代碼示例

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


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

示例1: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'subscription', 'T3Chimp: Newsletter Subscription');
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_subscription'] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_subscription', 'FILE:EXT:t3chimp/Configuration/FlexForms/Subscription.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'T3Chimp Setup');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/DefaultStyles', 'T3Chimp CSS Styles (optional)');
/*if (TYPO3_MODE === 'BE') {
    Tx_Extbase_Utility_Extension::registerModule(
        $_EXTKEY,
        'tools',
        't3chimp',
        '',
        array(
            'Backend' 	=> 'index'
        ),
        array(
            'access' => 'user,group',
            'icon'   => 'EXT:' . $_EXTKEY . '/ext_icon.gif',
            'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_backend.xlf',
        )
    );
}*/
$feUserColumns = array('subscribed_to_newsletter' => array('exclude' => 0, 'label' => 'LLL:EXT:t3chimp/Resources/Private/Language/locallang.xlf:fe_users_subscribed_to_newsletter', 'config' => array('type' => 'check', 'default' => '0')));
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $feUserColumns, 1);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCATypes('fe_users', '--div--;T3Chimp,subscribed_to_newsletter;;;;1-1-1');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['MatoIlic\\T3Chimp\\Scheduler\\SyncToMailChimpTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:t3chimp/Resources/Private/Language/locallang_backend.xlf:syncToMailChimpTask_name', 'description' => 'LLL:EXT:t3chimp/Resources/Private/Language/locallang_backend.xlf:syncToMailChimpTask_description', 'additionalFields' => 'MatoIlic\\T3Chimp\\Scheduler\\SyncToMailChimpFieldProvider');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['MatoIlic\\T3Chimp\\Scheduler\\SyncBackFromMailChimpTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:t3chimp/Resources/Private/Language/locallang_backend.xlf:syncBackFromMailChimpTask_name', 'description' => 'LLL:EXT:t3chimp/Resources/Private/Language/locallang_backend.xlf:syncBackFromMailChimpTask_description', 'additionalFields' => 'MatoIlic\\T3Chimp\\Scheduler\\SyncBackFromMailChimpFieldProvider');
開發者ID:BjoBre,項目名稱:t3chimp,代碼行數:31,代碼來源:ext_tables.php


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