当前位置: 首页>>代码示例>>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;未经允许,请勿转载。