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


PHP t3lib_extMgm::addToAllTCATypes方法代码示例

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


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

示例1: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
t3lib_extMgm::addStaticFile($_EXTKEY, 'static/', 'betatext');
$TCA['tx_webetatext_text'] = array('ctrl' => array('title' => 'LLL:EXT:we_betatext/locallang_db.xml:tx_webetatext_text', 'label' => 'TextID', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'fe_cruser_id' => 'fe_cruser_id', 'default_sortby' => 'ORDER BY crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_webetatext_text.gif'));
$TCA['tx_webetatext_comment'] = array('ctrl' => array('title' => 'LLL:EXT:we_betatext/locallang_db.xml:tx_webetatext_comment', 'label' => 'Content', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'fe_cruser_id' => 'fe_cruser_id', 'default_sortby' => 'ORDER BY crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_webetatext_comment.gif'));
$TCA['tx_webetatext_vote'] = array('ctrl' => array('title' => 'LLL:EXT:we_betatext/locallang_db.xml:tx_webetatext_vote', 'label' => 'uid', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'fe_cruser_id' => 'fe_cruser_id', 'default_sortby' => 'ORDER BY crdate', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_webetatext_voting.gif'));
$TCA['tx_webetatext_process'] = array('ctrl' => array('title' => 'LLL:EXT:we_betatext/locallang_db.xml:tx_webetatext_process', 'label' => 'StepIndex', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY sort', 'sortby' => 'sort', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_webetatext_process.gif'));
t3lib_extMgm::allowTableOnStandardPages("tx_webetatext_process");
$addColumns = array('tx_webetatext_logo' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:fe_users.tx_webetatext_logo', 'config' => array('type' => 'group', 'internal_type' => 'file', 'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], 'max_size' => 1000, 'uploadfolder' => 'uploads/tx_webetatext', 'show_thumbs' => 1, 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_webetatext_verified' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:fe_users.tx_webetatext_verified', 'config' => array('type' => 'check', 'default' => '1')), 'tx_webetatext_verification_requested' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:fe_users.tx_webetatext_verification_requested', 'config' => array('type' => 'check', 'default' => '0')));
t3lib_extMgm::addTCAcolumns('fe_users', $addColumns, true);
t3lib_extMgm::addToAllTCATypes('fe_users', '--div--;betatext,tx_webetatext_logo,tx_webetatext_verification_requested,tx_webetatext_verified;;;;1-1-1');
/* Seiteneinstellungen */
$TCA['pages']['columns']['doktype']['config']['items'][] = array('betatext: kommentierbare Seite', 124, 'EXT:we_betatext/icons/bbt-page.gif');
t3lib_SpriteManager::addTcaTypeIcon('pages', '124', '../typo3conf/ext/we_betatext/icons/bbt-page.png');
$addColumns = array('tx_webetatext_enable' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:pages.tx_webetatext_enable', 'config' => array('type' => 'check', 'default' => '0')), 'tx_webetatext_infomail_to' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:pages.tx_webetatext_infomail_to', 'config' => array('type' => 'input', 'size' => '20', 'max' => '50', 'eval' => 'trim', 'default' => '')), 'tx_webetatext_pstep_title' => array('exclude' => 1, 'label' => 'LLL:EXT:we_betatext/locallang_db.xml:pages.tx_webetatext_pstep_title', 'config' => array('type' => 'input', 'size' => '20', 'max' => '50', 'eval' => 'trim', 'default' => '')));
t3lib_extMgm::addTCAcolumns('pages', $addColumns, true);
t3lib_extMgm::addToAllTCAtypes('pages', '--div--;betatext,tx_webetatext_enable,tx_webetatext_infomail_to,tx_webetatext_pstep_title;;;;1-1-1');
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::addModulePath('web_txwwbbtM1', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
    t3lib_extMgm::addModule('web', 'txwwbbtM1', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
}
开发者ID:sjakk,项目名称:betatext,代码行数:24,代码来源:ext_tables.php

示例2: array

$GLOBALS['TCA']['fe_users']['columns']['name']['config']['max'] = '100';
$GLOBALS['TCA']['fe_users']['columns']['company']['config']['max'] = '50';
$GLOBALS['TCA']['fe_users']['columns']['city']['config']['max'] = '40';
$GLOBALS['TCA']['fe_users']['columns']['country']['config']['max'] = '60';
$GLOBALS['TCA']['fe_users']['columns']['zip']['config']['size'] = '15';
$GLOBALS['TCA']['fe_users']['columns']['zip']['config']['max'] = '20';
$GLOBALS['TCA']['fe_users']['columns']['email']['config']['max'] = '255';
$GLOBALS['TCA']['fe_users']['columns']['telephone']['config']['max'] = '25';
$GLOBALS['TCA']['fe_users']['columns']['fax']['config']['max'] = '25';
$GLOBALS['TCA']['fe_users']['columns']['image']['config']['uploadfolder'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][SR_FEUSER_REGISTER_EXT]['uploadfolder'];
$GLOBALS['TCA']['fe_users']['columns']['image']['config']['max_size'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][SR_FEUSER_REGISTER_EXT]['imageMaxSize'];
$GLOBALS['TCA']['fe_users']['columns']['image']['config']['allowed'] = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][SR_FEUSER_REGISTER_EXT]['imageTypes'];
$addColumnArray = array('cnum' => array('exclude' => 0, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.cnum', 'config' => array('type' => 'input', 'size' => '20', 'max' => '50', 'eval' => 'trim', 'default' => '')), 'static_info_country' => array('exclude' => 0, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.static_info_country', 'config' => array('type' => 'input', 'size' => '5', 'max' => '3', 'eval' => '', 'default' => '')), 'zone' => array('exclude' => 0, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.zone', 'config' => array('type' => 'input', 'size' => '20', 'max' => '40', 'eval' => 'trim', 'default' => '')), 'language' => array('exclude' => 0, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.language', 'config' => array('type' => 'input', 'size' => '4', 'max' => '2', 'eval' => '', 'default' => '')), 'date_of_birth' => array('exclude' => 0, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.date_of_birth', 'config' => array('type' => 'input', 'size' => '10', 'max' => '20', 'eval' => 'date', 'checkbox' => '0', 'default' => '')), 'gender' => array('exclude' => 0, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.gender', 'config' => array('type' => 'radio', 'items' => array(array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.gender.I.99', '99'), array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.gender.I.0', '0'), array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.gender.I.1', '1')))), 'status' => array('exclude' => 0, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.status', 'config' => array('type' => 'select', 'items' => array(array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.status.I.0', '0'), array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.status.I.1', '1'), array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.status.I.2', '2'), array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.status.I.3', '3'), array('LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.status.I.4', '4')), 'size' => 1, 'maxitems' => 1)), 'comments' => array('exclude' => 0, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.comments', 'config' => array('type' => 'text', 'rows' => '5', 'cols' => '48')), 'by_invitation' => array('exclude' => 0, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.by_invitation', 'config' => array('type' => 'check', 'default' => '0')), 'terms_acknowledged' => array('exclude' => 0, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.terms_acknowledged', 'config' => array('type' => 'check', 'default' => '0', 'readOnly' => '1')), 'token' => array('exclude' => 1, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.token', 'config' => array('type' => 'text', 'rows' => '1', 'cols' => '32')), 'tx_srfeuserregister_password' => array('exclude' => 1, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.tx_srfeuserregister_password', 'config' => array('type' => 'passthrough')), 'house_no' => array('exclude' => 1, 'label' => 'LLL:EXT:sr_feuser_register/locallang_db.xml:fe_users.house_no', 'config' => array('type' => 'input', 'eval' => 'trim', 'size' => '20', 'max' => '20')));
t3lib_extMgm::addTCAcolumns('fe_users', $addColumnArray);
$GLOBALS['TCA']['fe_users']['interface']['showRecordFieldList'] = preg_replace('/(^|,)\\s*country\\s*(,|$)/', '$1zone,static_info_country,country,language$2', $GLOBALS['TCA']['fe_users']['interface']['showRecordFieldList']);
$GLOBALS['TCA']['fe_users']['interface']['showRecordFieldList'] = preg_replace('/(^|,)\\s*title\\s*(,|$)/', '$1gender,status,date_of_birth,house_no,title$2', $GLOBALS['TCA']['fe_users']['interface']['showRecordFieldList']);
$GLOBALS['TCA']['fe_users']['types']['0']['showitem'] = preg_replace('/(^|,)\\s*country\\s*(,|$)/', '$1 zone, static_info_country, country, language$2', $GLOBALS['TCA']['fe_users']['types']['0']['showitem']);
$GLOBALS['TCA']['fe_users']['types']['0']['showitem'] = preg_replace('/(^|,)\\s*address\\s*(,|$)/', '$1 cnum, status, date_of_birth, house_no, address$2', $GLOBALS['TCA']['fe_users']['types']['0']['showitem']);
$GLOBALS['TCA']['fe_users']['types']['0']['showitem'] = preg_replace('/(^|,)\\s*www\\s*(,|$)/', '$1 www, comments, by_invitation, terms_acknowledged$2', $GLOBALS['TCA']['fe_users']['types']['0']['showitem']);
$GLOBALS['TCA']['fe_users']['palettes']['2']['showitem'] = 'gender,--linebreak--,' . $GLOBALS['TCA']['fe_users']['palettes']['2']['showitem'];
$GLOBALS['TCA']['fe_users']['ctrl']['thumbnail'] = 'image';
// fe_users modified
if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][SR_FEUSER_REGISTER_EXT]['enableDirectMail'] && !t3lib_extMgm::isLoaded('direct_mail')) {
    $tempCols = array('module_sys_dmail_newsletter' => array('label' => 'LLL:EXT:' . $_EXTKEY . '/locallang_db.xml:fe_users.module_sys_dmail_newsletter', 'exclude' => '1', 'config' => array('type' => 'check')), 'module_sys_dmail_category' => array('label' => 'LLL:EXT:' . $_EXTKEY . '/locallang_db.xml:fe_users.module_sys_dmail_category', 'exclude' => '1', 'config' => array('type' => 'select', 'foreign_table' => 'sys_dmail_category', 'foreign_table_where' => 'AND sys_dmail_category.l18n_parent=0 AND sys_dmail_category.pid IN (###PAGE_TSCONFIG_IDLIST###) ORDER BY sys_dmail_category.uid', 'itemsProcFunc' => 'tx_srfeuserregister_select_dmcategories->get_localized_categories', 'itemsProcFunc_config' => array('table' => 'sys_dmail_category', 'indexField' => 'uid'), 'size' => 5, 'minitems' => 0, 'maxitems' => 60, 'renderMode' => 'checkbox', 'MM' => 'sys_dmail_feuser_category_mm')), 'module_sys_dmail_html' => array('label' => 'LLL:EXT:' . $_EXTKEY . '/locallang_db.xml:fe_users.module_sys_dmail_html', 'exclude' => '1', 'config' => array('type' => 'check')));
    t3lib_extMgm::addTCAcolumns('fe_users', $tempCols);
    t3lib_extMgm::addToAllTCATypes('fe_users', '--div--;Direct mail,module_sys_dmail_newsletter;;;;1-1-1,module_sys_dmail_category,module_sys_dmail_html');
}
$GLOBALS['TCA']['fe_groups_language_overlay'] = array('ctrl' => array('title' => 'LLL:EXT:' . SR_FEUSER_REGISTER_EXT . '/locallang_db.xml:fe_groups_language_overlay', 'label' => 'title', 'default_sortby' => 'ORDER BY fe_groups_uid', 'sortby' => 'sorting', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath(SR_FEUSER_REGISTER_EXT) . 'tca.php', 'iconfile' => 'gfx/i/fe_groups.gif'));
t3lib_extMgm::allowTableOnStandardPages('fe_groups_language_overlay');
t3lib_extMgm::addToInsertRecords('fe_groups_language_overlay');
unset($typo3Version);
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:31,代码来源:ext_tables.php


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