Documentation TYPO3 par Ameos

tca.php

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' => 'Deactivated:',
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('Create Backend User', '1'),
00042                                         Array('SQL-query', '2'),
00043                                         Array('Record list', '3'),
00044                                         Array('Edit records', '4'),
00045                                         Array('New Record', '5')
00046                                 )
00047                         )
00048                 ),
00049                 'assign_to_groups' => Array (
00050                         'label' => 'Assign action 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' => '5',
00057                                 'minitems' => '0',
00058                                 'maxitems' => '200'
00059                         )
00060                 ),
00061                 't1_userprefix' => Array (
00062                         'label' =>  'User prefix:',
00063                         'config' => Array (
00064                                 'type' => 'input',
00065                                 'size' => '25',
00066                                 'max' => '10',
00067                                 'eval' => 'trim'
00068                         )
00069                 ),
00070                 't1_allowed_groups' => Array (
00071                         'label' => 'Groups which may be assigned through the action:',
00072                         'config' => Array (
00073                                 'type' => 'select',
00074                                 'foreign_table' => 'be_groups',
00075                                 'foreign_table_where' => 'ORDER BY be_groups.title',
00076                                 'size' => '2',
00077                                 'maxitems' => '20'
00078                         )
00079                 ),
00080                 't1_create_user_dir' => Array (
00081                         'label' => 'Create User Home Directory:',
00082                         'config' => Array (
00083                                 'type' => 'check'
00084                         )
00085                 ),
00086                 't1_copy_of_user' => Array (
00087                         'label' => 'Template user:',
00088                         'config' => Array (
00089                                 'type' => 'group',
00090                                 'internal_type' => 'db',
00091                                 'allowed' => 'be_users',
00092                                 'size' => '1',
00093                                 'maxitems' => '1',
00094                                 'minitems' => '1',
00095                                 'show_thumbs' => '1'
00096                         )
00097                 ),
00098                 't3_listPid' => Array (
00099                         'label' => 'List pid:',
00100                         'config' => Array (
00101                                 'type' => 'group',
00102                                 'internal_type' => 'db',
00103                                 'allowed' => 'pages',
00104                                 'size' => '1',
00105                                 'maxitems' => '1',
00106                                 'minitems' => '1',
00107                                 'show_thumbs' => '1'
00108                         )
00109                 ),
00110                 't3_tables' => Array (
00111                         'label' => 'List only table:',
00112                         'config' => Array (
00113                                 'type' => 'select',
00114                                 'special' => 'tables',
00115                                 'items' => Array (
00116                                         Array('','')
00117                                 )
00118                         )
00119                 ),
00120                 't4_recordsToEdit' => Array (
00121                         'label' => 'Records to edit:',
00122                         'config' => Array (
00123                                 'type' => 'group',
00124                                 'internal_type' => 'db',
00125                                 'allowed' => '*',
00126                                 'prepend_tname' => 1,
00127                                 'size' => '5',
00128                                 'maxitems' => '50',
00129                                 'minitems' => '1',
00130                                 'show_thumbs' => '1'
00131                         )
00132                 ),
00133 
00134         ),
00135         'types' => Array (
00136                 '0' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2'),
00137                 '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'),
00138                 '2' => Array('showitem' => 'hidden;;;;1-1-1,type,title;;;;2-2-2,description;;;;3-3-3,assign_to_groups,--div--,'),
00139                 '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;'),
00140                 '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'),
00141                 '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:'),
00142         )
00143 );
00144 ?>


Généré par Le spécialiste TYPO3 avec  doxygen 1.4.6