TYPO3 API  SVNRelease
tca.php
Go to the documentation of this file.
00001 <?php
00002 
00003 // ******************************************************************
00004 // sys_action
00005 // ******************************************************************
00006 $TCA['sys_action'] = array(
00007     'ctrl' => $TCA['sys_action']['ctrl'],
00008     'interface' => array(
00009         'showRecordFieldList' => 'hidden,title,type,description,assign_to_groups'
00010     ),
00011     'columns' => array(
00012         'title' => array(
00013             'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
00014             'config' => array(
00015                 'type' => 'input',
00016                 'size' => '25',
00017                 'max' => '256',
00018                 'eval' => 'trim,required'
00019             )
00020         ),
00021         'description' => array(
00022             'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
00023             'config' => array(
00024                 'type' => 'text',
00025                 'rows' => 10,
00026                 'cols' => 48
00027             )
00028         ),
00029         'hidden' => array(
00030             'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.hidden',
00031             'config' => array(
00032                 'type' => 'check'
00033             )
00034         ),
00035         'type' => array(
00036             'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
00037             'config' => array(
00038                 'type' => 'select',
00039                 'items' => array(
00040                     array('', '0'),
00041                     array('LLL:EXT:sys_action/locallang_tca.php:sys_action.type.1', '1'),
00042                     array('LLL:EXT:sys_action/locallang_tca.php:sys_action.type.2', '2'),
00043                     array('LLL:EXT:sys_action/locallang_tca.php:sys_action.type.3', '3'),
00044                     array('LLL:EXT:sys_action/locallang_tca.php:sys_action.type.4', '4'),
00045                     array('LLL:EXT:sys_action/locallang_tca.php:sys_action.type.5', '5')
00046                 )
00047             )
00048         ),
00049         'assign_to_groups' => array(
00050             'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.assign_to_groups',
00051             'config' => array(
00052                 'type' => 'select',
00053                 'foreign_table' => 'be_groups',
00054                 'foreign_table_where' => 'ORDER BY be_groups.title',
00055                 'MM' => 'sys_action_asgr_mm',
00056                 'size' => '10',
00057                 'minitems' => '0',
00058                 'maxitems' => '200',
00059                 'autoSizeMax' => '10'
00060             )
00061         ),
00062         't1_userprefix' => array(
00063             'label' =>  'LLL:EXT:sys_action/locallang_tca.php:sys_action.t1_userprefix',
00064             'config' => array(
00065                 'type' => 'input',
00066                 'size' => '25',
00067                 'max' => '10',
00068                 'eval' => 'trim'
00069             )
00070         ),
00071         't1_allowed_groups' => array(
00072             'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t1_allowed_groups',
00073             'config' => array(
00074                 'type' => 'select',
00075                 'foreign_table' => 'be_groups',
00076                 'foreign_table_where' => 'ORDER BY be_groups.title',
00077                 'size' => '10',
00078                 'maxitems' => '20',
00079                 'autoSizeMax' => '10'
00080             )
00081         ),
00082         't1_create_user_dir' => array(
00083             'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t1_create_user_dir',
00084             'config' => array(
00085                 'type' => 'check'
00086             )
00087         ),
00088         't1_copy_of_user' => array(
00089             'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t1_copy_of_user',
00090             'config' => array(
00091                 'type' => 'group',
00092                 'internal_type' => 'db',
00093                 'allowed' => 'be_users',
00094                 'size' => '1',
00095                 'maxitems' => '1',
00096                 'minitems' => '1',
00097                 'show_thumbs' => '1',
00098                 'wizards' => array(
00099                     'suggest' => array(
00100                         'type' => 'suggest',
00101                     )
00102                 )
00103             )
00104         ),
00105         't3_listPid' => array(
00106             'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t3_listPid',
00107             'config' => array(
00108                 'type' => 'group',
00109                 'internal_type' => 'db',
00110                 'allowed' => 'pages',
00111                 'size' => '1',
00112                 'maxitems' => '1',
00113                 'minitems' => '1',
00114                 'show_thumbs' => '1',
00115                 'wizards' => array(
00116                     'suggest' => array(
00117                         'type' => 'suggest',
00118                     )
00119                 )
00120             )
00121         ),
00122         't3_tables' => array(
00123             'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t3_tables',
00124             'config' => array(
00125                 'type' => 'select',
00126                 'special' => 'tables',
00127                 'items' => array(
00128                     array('','')
00129                 )
00130             )
00131         ),
00132         't4_recordsToEdit' => array(
00133             'label' => 'LLL:EXT:sys_action/locallang_tca.php:sys_action.t4_recordsToEdit',
00134             'config' => array(
00135                 'type' => 'group',
00136                 'internal_type' => 'db',
00137                 'allowed' => '*',
00138                 'prepend_tname' => 1,
00139                 'size' => '5',
00140                 'maxitems' => '50',
00141                 'minitems' => '1',
00142                 'show_thumbs' => '1',
00143                 'wizards' => array(
00144                     'suggest' => array(
00145                         'type' => 'suggest',
00146                     )
00147                 )
00148             )
00149         ),
00150 
00151     ),
00152     'types' => array(
00153         '0' => array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,'),
00154         '1' => array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t1_userprefix;;;;5-5-5,t1_copy_of_user,t1_allowed_groups,t1_create_user_dir'),
00155         '2' => array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,'),
00156         '3' => array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t3_listPid;;;;5-5-5,t3_tables;'),
00157         '4' => array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t4_recordsToEdit;;;;5-5-5'),
00158         '5' => array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,t3_listPid;Where to create records:;;;5-5-5,t3_tables;Create records in table:'),
00159     )
00160 );
00161 ?>