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' => '0',
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                 'publishing_users' => Array (
00094                         'label' => 'Review users:',
00095                         'config' => Array (
00096                                 'type' => 'group',
00097                                 'internal_type' => 'db',
00098                                 'allowed' => 'be_users',
00099                                 'MM' => 'sys_workflows_pubuser_mm',
00100                                 'size' => '3',
00101                                 'maxitems' => '200',
00102                                 'minitems' => '0',
00103                                 'show_thumbs' => '1'
00104                         )
00105                 ),              
00106                 'final_unhide' => Array (
00107                         'label' => 'Unhide when finalizing:',
00108                         'config' => Array (
00109                                 'type' => 'check'
00110                         )
00111                 ),
00112                 'final_set_perms' => Array (
00113                         'label' => 'Set permissions when finalizing ("page" only):',
00114                         'config' => Array (
00115                                 'type' => 'check'
00116                         )
00117                 ),
00118                 'final_target' => Array (
00119                         'label' => 'Move to page when finalizing:',
00120                         'config' => Array (
00121                                 'type' => 'group',
00122                                 'internal_type' => 'db',
00123                                 'allowed' => 'pages',
00124                                 'size' => '3',
00125                                 'maxitems' => '1',
00126                                 'minitems' => '0',
00127                                 'show_thumbs' => '1'
00128                         )
00129                 ),
00130                 'final_perms_userid' => Array (
00131                         'label' => 'Owner User:',
00132                         'config' => Array (
00133                                 'type' => 'group',
00134                                 'internal_type' => 'db',
00135                                 'allowed' => 'be_users',
00136                                 'size' => '1',
00137                                 'maxitems' => '1',
00138                                 'minitems' => '0'
00139                         )
00140                 ),              
00141                 'final_perms_groupid' => Array (
00142                         'label' => 'Owner Group:',
00143                         'config' => Array (
00144                                 'type' => 'select',
00145                                 'foreign_table' => 'be_groups',
00146                                 'foreign_table_where' => 'ORDER BY be_groups.title',
00147                                 'items' => Array(
00148                                         Array('','')
00149                                 )
00150                         )
00151                 ),              
00152                 'final_perms_user' => Array (
00153                         'exclude' => 1,
00154                         'label' => 'Owner User Access:',
00155                         'config' => Array (
00156                                 'type' => 'check',
00157                                 'items' => Array (      
00158                                         Array('Show page', ''),
00159                                         Array('Edit page', ''),
00160                                         Array('Delete page', ''),
00161                                         Array('New pages', ''),
00162                                         Array('Edit content', '')
00163                                 ),
00164                                 'cols' => 5
00165                         )
00166                 ),
00167                 'final_perms_group' => Array (
00168                         'exclude' => 1,
00169                         'label' => 'Owner Group Access:',
00170                         'config' => Array (
00171                                 'type' => 'check',
00172                                 'items' => Array (      
00173                                         Array('Show page', ''),
00174                                         Array('Edit page', ''),
00175                                         Array('Delete page', ''),
00176                                         Array('New pages', ''),
00177                                         Array('Edit content', '')
00178                                 ),
00179                                 'cols' => 5
00180                         )
00181                 ),
00182                 'final_perms_everybody' => Array (
00183                         'exclude' => 1,
00184                         'label' => 'Everybody Access:',
00185                         'config' => Array (
00186                                 'type' => 'check',
00187                                 'items' => Array (      
00188                                         Array('Show page', ''),
00189                                         Array('Edit page', ''),
00190                                         Array('Delete page', ''),
00191                                         Array('New pages', ''),
00192                                         Array('Edit content', '')
00193                                 ),
00194                                 'cols' => 5
00195                         )
00196                         ),
00197                 "existing_record" => Array (        
00198                         "exclude" => 1,        
00199                         "label" => 'Existing record',        
00200                         "config" => Array (
00201         "type" => "group",    
00202                                 "internal_type" => "db",    
00203                                 "allowed" => "pages",    
00204                                 "size" => 1,    
00205                                 "minitems" => 0,
00206                                 "maxitems" => 1,
00207                                 )
00208                         ),
00209 
00210         ),
00211         'types' => Array (                                      
00212                                                                                 /*              '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,description,tablename;;;;3-3-3,working_area,existing_record,allowed_groups,target_groups,review_users,--div--,final_target;;;;5-5-5,final_unhide,final_set_perms;;;;5-5-5'),*/
00213                 '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,description,--div--;table,tablename;;;;3-3-3,working_area,existing_record,--div--;roles,allowed_groups,target_groups,review_users,publishing_users,--div--;misc,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')
00214         )
00215 );
00216 
00217 
00218 
00219 
00220 
00221 ?>


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