Documentation TYPO3 par Ameos

ext_tables.php

00001 <?php
00002 if (!defined ('TYPO3_MODE'))    die ('Access denied.');
00003 
00008         // tt_content modified
00009 t3lib_div::loadTCA('tt_content');
00010 t3lib_extMgm::addTCAcolumns('tt_content',array(
00011                 'module_sys_dmail_category' => Array('config'=>array('type'=>'passthrough'))
00012 ));
00013 
00014         // tt_address modified
00015 t3lib_div::loadTCA('tt_address');
00016 t3lib_extMgm::addTCAcolumns('tt_address',array(
00017                 'module_sys_dmail_category' => Array('config'=>array('type'=>'passthrough')),
00018                 'module_sys_dmail_html' => Array('config'=>array('type'=>'passthrough'))
00019 ));
00020 $TCA['tt_address']['feInterface']['fe_admin_fieldList'].=',module_sys_dmail_category,module_sys_dmail_html';
00021 
00022         // fe_users modified
00023 t3lib_div::loadTCA('fe_users');
00024 t3lib_extMgm::addTCAcolumns('fe_users',array(
00025                 'module_sys_dmail_category' => Array('config'=>array('type'=>'passthrough')),
00026                 'module_sys_dmail_html' => Array('config'=>array('type'=>'passthrough'))
00027 ));
00028 $TCA['fe_users']['feInterface']['fe_admin_fieldList'].=',module_sys_dmail_category,module_sys_dmail_html';
00029 
00030         
00031 // ******************************************************************
00032 // sys_dmail
00033 // ******************************************************************
00034 $TCA['sys_dmail'] = Array (
00035         'ctrl' => Array (
00036                 'label' => 'subject',
00037                 'default_sortby' => 'ORDER BY tstamp DESC',
00038                 'tstamp' => 'tstamp',
00039                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00040                 'title' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail',
00041                 'iconfile' => 'mail.gif',
00042                 'type' => 'type',
00043                 'useColumnsForDefaultValues' => 'from_email,from_name,replyto_email,replyto_name,organisation,priority,sendOptions,type'
00044         ),
00045         'interface' => Array (
00046                 'showRecordFieldList' => 'type,plainParams,HTMLParams,subject,from_name,from_email,replyto_name,replyto_email,organisation,attachment,priority,sendOptions,issent,renderedsize'
00047         ),
00048         'columns' => Array (    
00049                 'subject' => Array (
00050                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.subject',
00051                         'config' => Array (
00052                                 'type' => 'input',
00053                                 'size' => '30',
00054                                 'max' => '120',
00055                                 'eval' => 'trim,required'
00056                         )
00057                 ),
00058                 'page' => Array (       
00059                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.page',
00060                         'config' => Array (
00061                                 'type' => 'group',
00062                                 'internal_type' => 'db',
00063                                 'allowed' => 'pages',
00064                                 'size' => '3',
00065                                 'maxitems' => 1,
00066                                 'minitems' => 0
00067                         )
00068                 ),
00069                 'from_email' => Array (
00070                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.from_email',
00071                         'config' => Array (
00072                                 'type' => 'input',      
00073                                 'size' => '30',
00074                                 'max' => '80',
00075                                 'eval' => 'trim,required'
00076                         )
00077                 ),
00078                 'from_name' => Array (
00079                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.from_name',
00080                         'config' => Array (
00081                                 'type' => 'input',      
00082                                 'size' => '30',
00083                                 'eval' => 'trim',
00084                                 'max' => '80'
00085                         )
00086                 ),
00087                 'replyto_email' => Array (
00088                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.replyto_email',
00089                         'config' => Array (
00090                                 'type' => 'input',      
00091                                 'size' => '30',
00092                                 'eval' => 'trim',
00093                                 'max' => '80'
00094                         )
00095                 ),
00096                 'replyto_name' => Array (
00097                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.replyto_name',
00098                         'config' => Array (
00099                                 'type' => 'input',      
00100                                 'size' => '30',
00101                                 'eval' => 'trim',
00102                                 'max' => '80'
00103                         )
00104                 ),
00105                 'return_path' => Array (
00106                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.return_path',
00107                         'config' => Array (
00108                                 'type' => 'input',      
00109                                 'size' => '30',
00110                                 'eval' => 'trim',
00111                                 'max' => '80'
00112                         )
00113                 ),
00114                 'organisation' => Array (
00115                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.organisation',
00116                         'config' => Array (
00117                                 'type' => 'input',      
00118                                 'size' => '30',
00119                                 'eval' => 'trim',
00120                                 'max' => '80'
00121                         )
00122                 ),
00123                 'priority' => Array (
00124                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.priority',
00125                         'config' => Array (
00126                                 'type' => 'select',             
00127                                 'items' => Array (
00128                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.priority.I.0', '5'),
00129                                         Array('LLL:EXT:lang/locallang_general.php:LGL.normal', '3'),
00130                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.priority.I.2', '1')
00131                                 ),
00132                                 'default' => '3'
00133                         )
00134                 ),
00135       'encoding' => Array (
00136                         'label' => 'Transfer encoding',
00137                         'config' => Array(
00138                                 'type' => 'select',
00139                                 'items' => Array(
00140                                         Array("Base64",'base64'),
00141                                         Array("Quoted printable",'quoted-printable')
00142                                         ),
00143                          'default' => 'base64'
00144                                 )
00145                         ),
00146                 'sendOptions' => Array (
00147                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.sendOptions',
00148                         'config' => Array (
00149                                 'type' => 'check',
00150                                 'items' => Array (
00151                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.sendOptions.I.0', ''),
00152                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.sendOptions.I.1', '')
00153                                 ),
00154                                 'default' => '3'
00155                         )
00156                 ),
00157                 'HTMLParams' => Array (
00158                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.HTMLParams',
00159                         'config' => Array (
00160                                 'type' => 'input',      
00161                                 'size' => '15',
00162                                 'max' => '80',
00163                                 'eval' => 'trim',
00164                                 'default' => ''
00165                         )
00166                 ),
00167                 'plainParams' => Array (
00168                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.plainParams',
00169                         'config' => Array (
00170                                 'type' => 'input',      
00171                                 'size' => '15',
00172                                 'max' => '80',
00173                                 'eval' => 'trim',
00174                                 'default' => '&type=99'
00175                         )
00176                 ),
00177                 'issent' => Array (     
00178                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.issent',
00179                         'config' => Array (
00180                                 'type' => 'none'
00181                         )
00182                 ),
00183                 'long_link_rdct_url' => Array (
00184                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.long_link_rdct_url',
00185                         'config' => Array (
00186                                 'type' => 'input',      
00187                                 'size' => '15',
00188                                 'max' => '80',
00189                                 'eval' => 'trim',
00190                                 'default' => ''
00191                         )
00192                 ),
00193                 'long_link_mode' => Array (     
00194                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.long_link_mode',
00195                         'config' => Array (
00196                                 'type' => 'check'
00197                         )
00198                 ),
00199                 'renderedsize' => Array (       
00200                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.renderedsize',
00201                         'config' => Array (
00202                                 'type' => 'none'
00203                         )
00204                 ),
00205                 'attachment' => Array (
00206                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.attachment',
00207                         'config' => Array (
00208                                 'type' => 'group',
00209                                 'internal_type' => 'file',
00210                                 'allowed' => '',        // Must be empty for disallowed to work.
00211                                 'disallowed' => 'php,php3',
00212                                 'max_size' => '500',
00213                                 'uploadfolder' => 'uploads/dmail_att',
00214                                 'show_thumbs' => '0',
00215                                 'size' => '3',
00216                                 'maxitems' => '5',
00217                                 'minitems' => '0'
00218                         )
00219                 ),
00220                 'type' => Array (
00221                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
00222                         'config' => Array (
00223                                 'type' => 'select',     
00224                                 'items' => Array (      
00225                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.type.I.0', '0'),
00226                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.type.I.1', '1')
00227                                 ),
00228                                 'default' => '0'
00229                         )
00230                 )
00231         ),
00232         'types' => Array (      
00233                 '0' => Array('showitem' => 'type;;;;1-1-1, page, plainParams, HTMLParams, --div--, subject;;;;3-3-3, from_email, from_name, replyto_email, replyto_name, return_path, organisation, attachment;;;;4-4-4, priority;;;;5-5-5,encoding, sendOptions, issent, renderedsize, long_link_rdct_url, long_link_mode'),
00234                 '1' => Array('showitem' => 'type;;;;1-1-1, 
00235                         plainParams;LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.plainParams.ALT.1,
00236                         HTMLParams;LLL:EXT:direct_mail/locallang_tca.php:sys_dmail.HTMLParams.ALT.1,
00237                         --div--, subject;;;;3-3-3, from_email, from_name, replyto_email, replyto_name, return_path, organisation, attachment;;;;4-4-4, priority;;;;5-5-5,encoding, sendOptions, issent, renderedsize, long_link_rdct_url, long_link_mode')
00238         )
00239 );
00240 
00241 // ******************************************************************
00242 // sys_dmail_group
00243 // ******************************************************************
00244 $TCA['sys_dmail_group'] = Array (
00245         'ctrl' => Array (
00246                 'label' => 'title',
00247                 'default_sortby' => 'ORDER BY title',
00248                 'tstamp' => 'tstamp',
00249                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00250                 'title' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group',
00251                 'delete' => 'deleted',
00252                 'iconfile' => 'mailgroup.gif',
00253                 'type' => 'type'
00254         ),
00255         'interface' => Array (
00256                 'showRecordFieldList' => 'type,title,description'
00257         ),
00258         'columns' => Array (    
00259                 'title' => Array (
00260                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
00261                         'config' => Array (
00262                                 'type' => 'input',
00263                                 'size' => '30',
00264                                 'max' => '120',
00265                                 'eval' => 'trim,required'
00266                         )
00267                 ),
00268                 'description' => Array (
00269                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
00270                         'config' => Array (
00271                                 'type' => 'text',
00272                                 'cols' => '40', 
00273                                 'rows' => '3'
00274                         )
00275                 ),
00276                 'type' => Array (
00277                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
00278                         'config' => Array (
00279                                 'type' => 'select',     
00280                                 'items' => Array (      
00281                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.type.I.0', '0'),
00282                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.type.I.1', '1'),
00283                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.type.I.2', '2'),
00284                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.type.I.3', '3'),
00285                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.type.I.4', '4')
00286                                 ),
00287                                 'default' => '0'
00288                         )
00289                 ),
00290                 'static_list' => Array (
00291                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.static_list',
00292                         'config' => Array (
00293                                 'type' => 'group',
00294                                 'internal_type' => 'db',
00295                                         'allowed' => 'tt_address,fe_users',
00296                                         'MM' => 'sys_dmail_group_mm',
00297                                 'size' => '20',
00298                                 'maxitems' => '100000',
00299                                 'minitems' => '0',
00300                                 'show_thumbs' => '1'
00301                         )
00302                 ),
00303                 'pages' => Array (
00304                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.startingpoint',
00305                         'config' => Array (
00306                                 'type' => 'group',
00307                                 'internal_type' => 'db',
00308                                         'allowed' => 'pages',
00309                                 'size' => '3',
00310                                 'maxitems' => '22',
00311                                 'minitems' => '0',
00312                                 'show_thumbs' => '1'
00313                         )
00314                 ),
00315                 'mail_groups' => Array (
00316                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.mail_groups',
00317                         'config' => Array (
00318                                 'type' => 'group',
00319                                 'internal_type' => 'db',
00320                                         'allowed' => 'sys_dmail_group',
00321                                 'size' => '3',
00322                                 'maxitems' => '22',
00323                                 'minitems' => '0',
00324                                 'show_thumbs' => '1'
00325                         )
00326                 ),
00327                 'recursive' => Array (
00328                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.recursive',
00329                         'config' => Array (
00330                                 'type' => 'check'
00331                         )
00332                 ),
00333                 'whichtables' => Array (
00334                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.whichtables',
00335                         'config' => Array (
00336                                 'type' => 'check',
00337                                 'items' => Array (      
00338                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.whichtables.I.0', ''),
00339                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.whichtables.I.1', ''),
00340                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.whichtables.I.2', ''),
00341                                 ),
00342                                 'cols' => 3,
00343                                 'default' => 1
00344                         )
00345                 ),
00346                 'list' => Array (
00347                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.list',
00348                         'config' => Array (
00349                                 'type' => 'text',
00350                                 'cols' => '48', 
00351                                 'rows' => '10'
00352                         )
00353                 ),
00354                 'csv' => Array (
00355                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
00356                         'config' => Array (
00357                                 'type' => 'select',     
00358                                 'items' => Array (
00359                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.csv.I.0', '0'),
00360                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.csv.I.1', '1')
00361                                 ),
00362                                 'default' => '0'
00363                         )
00364                 ),
00365                 'select_categories' => Array (
00366                         'label' => 'LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories',
00367                         'config' => Array (
00368                                 'type' => 'check',
00369                                 'items' => Array (      
00370                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories.I.0',0),
00371                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories.I.1',1),
00372                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories.I.2',2),
00373                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories.I.3',3),
00374                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories.I.4',4),
00375                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories.I.5',5),
00376                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories.I.6',6),
00377                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories.I.7',7),
00378                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories.I.8',8),
00379                                         Array('LLL:EXT:direct_mail/locallang_tca.php:sys_dmail_group.select_categories.I.9',9)
00380                                 ),
00381                                 'cols' => 5
00382                         )
00383                 )
00384         ),
00385         'types' => Array (      
00386                 '0' => Array('showitem' => 'type;;;;1-1-1, title;;;;3-3-3, description, --div--,pages;;;;5-5-5,recursive,whichtables,select_categories'),
00387                 '1' => Array('showitem' => 'type;;;;1-1-1, title;;;;3-3-3, description, --div--,list;;;;5-5-5,csv'),
00388                 '2' => Array('showitem' => 'type;;;;1-1-1, title;;;;3-3-3, description, --div--,static_list;;;;5-5-5'),
00389                 '3' => Array('showitem' => 'type;;;;1-1-1, title;;;;3-3-3, description'),
00390                 '4' => Array('showitem' => 'type;;;;1-1-1, title;;;;3-3-3, description, --div--,mail_groups;;;;5-5-5')
00391         )
00392 );
00393 
00394 
00395 t3lib_extMgm::addLLrefForTCAdescr('sys_dmail','EXT:direct_mail/locallang_csh_sysdmail.php');
00396 t3lib_extMgm::addLLrefForTCAdescr('sys_dmail_group','EXT:direct_mail/locallang_csh_sysdmailg.php');
00397 
00398 ?>


Généré par Les experts TYPO3 avec  doxygen 1.4.6