Documentation TYPO3 par Ameos

tca.php

00001 <?php
00002 
00003 
00004 // ******************************************************************
00005 // This is the standard TypoScript calendar table, tt_calender
00006 // ******************************************************************
00007 $TCA['tt_calender'] = Array (
00008         'ctrl' => $TCA['tt_calender']['ctrl'],
00009         'interface' => Array (
00010                 'showRecordFieldList' => 'type,date,title,note,category,responsible,workgroup,time,week,hidden,starttime,endtime'
00011         ),
00012         'columns' => Array (
00013                 'starttime' => Array (
00014                         'exclude' => 1,
00015                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
00016                         'config' => Array (
00017                                 'type' => 'input',
00018                                 'size' => '8',
00019                                 'max' => '20',
00020                                 'eval' => 'date',
00021                                 'checkbox' => '0',
00022                                 'default' => '0'
00023                         )
00024                 ),
00025                 'endtime' => Array (
00026                         'exclude' => 1,
00027                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
00028                         'config' => Array (
00029                                 'type' => 'input',
00030                                 'size' => '8',
00031                                 'max' => '20',
00032                                 'eval' => 'date',
00033                                 'checkbox' => '0',
00034                                 'default' => '0',
00035                                 'range' => Array (
00036                                         'upper' => mktime(0,0,0,12,31,2020),
00037                                 )
00038                         )
00039                 ),
00040                 'hidden' => Array (
00041                         'exclude' => 1,
00042                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
00043                         'config' => Array (
00044                                 'type' => 'check',
00045                                 'default' => '1'
00046                         )
00047                 ),
00048                 'title' => Array (
00049                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
00050                         'config' => Array (
00051                                 'type' => 'input',
00052                                 'size' => '40',
00053                                 'max' => '256'
00054                         )
00055                 ),
00056                 'note' => Array (
00057                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.note',
00058                         'config' => Array (
00059                                 'type' => 'text',
00060                                 'cols' => '40',
00061                                 'rows' => '5'
00062                         )
00063                 ),
00064                 'type' => Array (
00065                         'exclude' => 1,
00066                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
00067                         'config' => Array (
00068                                 'type' => 'select',
00069                                 'items' => Array (
00070                                         Array('LLL:EXT:tt_calender/locallang_tca.php:tt_calender.type.I.0', 0),
00071                                         Array('LLL:EXT:tt_calender/locallang_tca.php:tt_calender.type.I.1', 1)
00072                                 ),
00073                                 'default' => 0
00074                         )
00075                 ),
00076                 'date' => Array (
00077                         'exclude' => 1,
00078                         'label' => 'LLL:EXT:tt_calender/locallang_tca.php:tt_calender.date',
00079                         'config' => Array (
00080                                 'type' => 'input',
00081                                 'size' => '10',
00082                                 'max' => '20',
00083                                 'eval' => 'date',
00084                                 'default' => '0'
00085                         )
00086                 ),
00087                 'time' => Array (
00088                         'exclude' => 1,
00089                         'label' => 'LLL:EXT:tt_calender/locallang_tca.php:tt_calender.time',
00090                         'config' => Array (
00091                                 'type' => 'input',
00092                                 'size' => '10',
00093                                 'max' => '20',
00094                                 'eval' => 'time',
00095                                 'default' => '0'
00096                         )
00097                 ),
00098                 'week' => Array (
00099                         'exclude' => 1,
00100                         'label' => 'LLL:EXT:tt_calender/locallang_tca.php:tt_calender.week',
00101                         'config' => Array (
00102                                 'type' => 'input',
00103                                 'size' => '6',
00104                                 'max' => '6',
00105                                 'eval' => 'int',
00106                                 'range' => Array (
00107                                         'upper' => 52,
00108                                         'lower' => 1
00109                                 ),
00110                                 'default' => '0'
00111                         )
00112                 ),
00113                 'datetext' => Array (
00114                         'exclude' => 1,
00115                         'label' => 'LLL:EXT:tt_calender/locallang_tca.php:tt_calender.datetext',
00116                         'config' => Array (
00117                                 'type' => 'input',
00118                                 'size' => '40',
00119                                 'eval' => 'trim',
00120                                 'max' => '80'
00121                         )
00122                 ),
00123                 'complete' => Array (
00124                         'exclude' => 1,
00125                         'label' => 'LLL:EXT:tt_calender/locallang_tca.php:tt_calender.complete',
00126                         'config' => Array (
00127                                 'type' => 'check',
00128                                 'default' => '0'
00129                         )
00130                 ),
00131                 'workgroup' => Array (
00132                         'exclude' => 1,
00133                         'label' => 'LLL:EXT:tt_calender/locallang_tca.php:tt_calender.workgroup',
00134                         'config' => Array (
00135                                 'type' => 'input',
00136                                 'size' => '40',
00137                                 'eval' => 'trim',
00138                                 'max' => '80'
00139                         )
00140                 ),
00141                 'priority' => Array (
00142                         'label' => 'LLL:EXT:tt_calender/locallang_tca.php:tt_calender.priority',
00143                         'config' => Array (
00144                                 'type' => 'select',
00145                                 'items' => Array (
00146                                         Array('LLL:EXT:tt_calender/locallang_tca.php:tt_calender.priority.I.0', 1),
00147                                         Array('LLL:EXT:tt_calender/locallang_tca.php:tt_calender.priority.I.1', 3),
00148                                         Array('LLL:EXT:tt_calender/locallang_tca.php:tt_calender.priority.I.2', 5)
00149                                 ),
00150                                 'default' => 3
00151                         )
00152                 ),
00153                 'responsible' => Array (
00154                         'exclude' => 1,
00155                         'label' => 'LLL:EXT:tt_calender/locallang_tca.php:tt_calender.responsible',
00156                         'config' => Array (
00157                                 'type' => 'group',
00158                                 'internal_type' => 'db',
00159                                         'allowed' => 'tt_address',
00160                                 'size' => '3',
00161                                 'eval' => 'trim',
00162                                 'maxitems' => '6',
00163                                 'minitems' => '0',
00164                                 'show_thumbs' => '1'
00165                         )
00166                 ),
00167                 'category' => Array (
00168                         'exclude' => 1,
00169                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.category',
00170                         'config' => Array (
00171                                 'type' => 'select',
00172                                 'items' => Array (
00173                                         Array('', 0)
00174                                 ),
00175                                 'foreign_table' => 'tt_calender_cat'
00176                         )
00177                 ),
00178                 'link' => Array (
00179                         'exclude' => 1,
00180                         'label' => 'LLL:EXT:tt_calender/locallang_tca.php:tt_calender.link',
00181                         'config' => Array (
00182                                 'type' => 'group',
00183                                 'internal_type' => 'db',
00184                                         'allowed' => 'pages',
00185                                 'size' => '3',
00186                                 'maxitems' => '5',
00187                                 'minitems' => '0',
00188                                 'show_thumbs' => '1'
00189                         )
00190                 )
00191         ),
00192         'types' => Array (
00193                 '0' => Array('showitem' => 'type;;;;1-1-1, hidden, date;;2;;3-3-3, title, note, category, --div--, datetext;;;;5-5-5, link'),
00194                 '1' => Array('showitem' => 'type;;;;1-1-1, hidden, date;;2;;3-3-3, title, note, category, --div--, complete;;;;5-5-5, priority, workgroup, responsible, link')
00195         ),
00196         'palettes' => Array (
00197                 '1' => Array('showitem' => 'starttime, endtime'),
00198                 '2' => Array('showitem' => 'week,time') //, month
00199         )
00200 );
00201 
00202 
00203 
00204 
00205 // ******************************************************************
00206 // This is the standard TypoScript calendar category table, tt_calender_cat
00207 // ******************************************************************
00208 $TCA['tt_calender_cat'] = Array (
00209         'ctrl' => $TCA['tt_calender_cat']['ctrl'],
00210         'interface' => Array (
00211                 'showRecordFieldList' => 'title'
00212         ),
00213         'columns' => Array (
00214                 'title' => Array (
00215                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
00216                         'config' => Array (
00217                                 'type' => 'input',
00218                                 'size' => '40',
00219                                 'max' => '256'
00220                         )
00221                 )
00222         ),
00223         'types' => Array (
00224                 '0' => Array('showitem' => 'title;;;;3-3-3')
00225         )
00226 );
00227 
00228 
00229 
00230 
00231 
00232 ?>


Généré par Les spécialistes TYPO3 avec  doxygen 1.4.6