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


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