Documentation TYPO3 par Ameos

tca.php

00001 <?php
00002 
00003         
00004 // ******************************************************************
00005 // sys_workflows
00006 // ******************************************************************
00007 $TCA['sys_workflows'] = Array (
00008         'ctrl' => $TCA['sys_workflows']['ctrl'],
00009         'interface' => Array (
00010                 'showRecordFieldList' => 'title,description,tablename,working_area,allowed_groups,review_users,final_target,final_unhide,final_set_perms'
00011         ),
00012         'columns' => Array (    
00013                 'title' => Array (
00014                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.title',
00015                         'config' => Array (
00016                                 'type' => 'input',      
00017                                 'size' => '25',
00018                                 'max' => '256',
00019                                 'eval' => 'trim,required'
00020                         )
00021                 ),
00022                 'description' => Array (
00023                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.description',
00024                         'config' => Array (
00025                                 'type' => 'text',
00026                                 'rows' => 10,
00027                                 'cols' => 48
00028                         )
00029                 ),
00030                 'hidden' => Array (
00031                         'label' => 'Deactivated:',
00032                         'config' => Array (
00033                                 'type' => 'check'
00034                         )
00035                 ),
00036                 'tablename' => Array (
00037                         'label' => 'Table:',
00038                         'config' => Array (
00039                                 'type' => 'select',
00040                                 'special' => 'tables',
00041                                 'size' => '1',
00042                                 'items' => Array(
00043                                         Array('','')
00044                                 )
00045                         )
00046                 ),
00047                 'working_area' => Array (
00048                         'label' => 'Draft page:',
00049                         'config' => Array (
00050                                 'type' => 'group',
00051                                 'internal_type' => 'db',
00052                                 'allowed' => 'pages',
00053                                 'size' => '1',
00054                                 'maxitems' => '1',
00055                                 'minitems' => '1',
00056                                 'show_thumbs' => '1'
00057                         )
00058                 ),
00059                 'allowed_groups' => Array (
00060                         'label' => 'Groups allowed to assign workflow:',
00061                         'config' => Array (
00062                                 'type' => 'select',
00063                                 'foreign_table' => 'be_groups',
00064                                 'foreign_table_where' => 'ORDER BY be_groups.title',
00065                                 'MM' => 'sys_workflows_algr_mm',
00066                                 'size' => '3',
00067                                 'maxitems' => '20'
00068                         )
00069                 ),
00070                 'target_groups' => Array (
00071                         'label' => 'Target groups for workflow:',
00072                         'config' => Array (
00073                                 'type' => 'select',
00074                                 'foreign_table' => 'be_groups',
00075                                 'foreign_table_where' => 'ORDER BY be_groups.title',
00076                                 'size' => '3',
00077                                 'maxitems' => '20'
00078                         )
00079                 ),
00080                 'review_users' => Array (
00081                         'label' => 'Review users:',
00082                         'config' => Array (
00083                                 'type' => 'group',
00084                                 'internal_type' => 'db',
00085                                 'allowed' => 'be_users',
00086                                 'MM' => 'sys_workflows_rvuser_mm',
00087                                 'size' => '3',
00088                                 'maxitems' => '200',
00089                                 'minitems' => '0',
00090                                 'show_thumbs' => '1'
00091                         )
00092                 ),              
00093                 'final_unhide' => Array (
00094                         'label' => 'Unhide when finalizing:',
00095                         'config' => Array (
00096                                 'type' => 'check'
00097                         )
00098                 ),
00099                 'final_set_perms' => Array (
00100                         'label' => 'Set permissions when finalizing ("page" only):',
00101                         'config' => Array (
00102                                 'type' => 'check'
00103                         )
00104                 ),
00105                 'final_target' => Array (
00106                         'label' => 'Move to page when finalizing:',
00107                         'config' => Array (
00108                                 'type' => 'group',
00109                                 'internal_type' => 'db',
00110                                 'allowed' => 'pages',
00111                                 'size' => '3',
00112                                 'maxitems' => '1',
00113                                 'minitems' => '1',
00114                                 'show_thumbs' => '1'
00115                         )
00116                 ),
00117                 'final_perms_userid' => Array (
00118                         'label' => 'Owner User:',
00119                         'config' => Array (
00120                                 'type' => 'group',
00121                                 'internal_type' => 'db',
00122                                 'allowed' => 'be_users',
00123                                 'size' => '1',
00124                                 'maxitems' => '1',
00125                                 'minitems' => '0'
00126                         )
00127                 ),              
00128                 'final_perms_groupid' => Array (
00129                         'label' => 'Owner Group:',
00130                         'config' => Array (
00131                                 'type' => 'select',
00132                                 'foreign_table' => 'be_groups',
00133                                 'foreign_table_where' => 'ORDER BY be_groups.title',
00134                                 'items' => Array(
00135                                         Array('','')
00136                                 )
00137                         )
00138                 ),              
00139                 'final_perms_user' => Array (
00140                         'exclude' => 1,
00141                         'label' => 'Owner User Access:',
00142                         'config' => Array (
00143                                 'type' => 'check',
00144                                 'items' => Array (      
00145                                         Array('Show page', ''),
00146                                         Array('Edit page', ''),
00147                                         Array('Delete page', ''),
00148                                         Array('New pages', ''),
00149                                         Array('Edit content', '')
00150                                 ),
00151                                 'cols' => 5
00152                         )
00153                 ),
00154                 'final_perms_group' => Array (
00155                         'exclude' => 1,
00156                         'label' => 'Owner Group Access:',
00157                         'config' => Array (
00158                                 'type' => 'check',
00159                                 'items' => Array (      
00160                                         Array('Show page', ''),
00161                                         Array('Edit page', ''),
00162                                         Array('Delete page', ''),
00163                                         Array('New pages', ''),
00164                                         Array('Edit content', '')
00165                                 ),
00166                                 'cols' => 5
00167                         )
00168                 ),
00169                 'final_perms_everybody' => Array (
00170                         'exclude' => 1,
00171                         'label' => 'Everybody Access:',
00172                         'config' => Array (
00173                                 'type' => 'check',
00174                                 'items' => Array (      
00175                                         Array('Show page', ''),
00176                                         Array('Edit page', ''),
00177                                         Array('Delete page', ''),
00178                                         Array('New pages', ''),
00179                                         Array('Edit content', '')
00180                                 ),
00181                                 'cols' => 5
00182                         )
00183                 )
00184         ),
00185         'types' => Array (                                      
00186                 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,description,tablename;;;;3-3-3,working_area,allowed_groups,target_groups,review_users,--div--,final_target;;;;5-5-5,final_unhide,final_set_perms;;;;5-5-5'),
00187                 '1' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,description,tablename;;;;3-3-3,working_area,allowed_groups,target_groups,review_users,--div--,final_target;;;;5-5-5,final_unhide,final_set_perms;;;;5-5-5,final_perms_userid,final_perms_groupid,final_perms_user,final_perms_group,final_perms_everybody')
00188         )
00189 );
00190 
00191 
00192 
00193 
00194 
00195 ?>


Généré par L'expert TYPO3 avec  doxygen 1.4.6