Documentation TYPO3 par Ameos

tables.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
00006 *  All rights reserved
00007 *
00008 *  This script is part of the TYPO3 project. The TYPO3 project is
00009 *  free software; you can redistribute it and/or modify
00010 *  it under the terms of the GNU General Public License as published by
00011 *  the Free Software Foundation; either version 2 of the License, or
00012 *  (at your option) any later version.
00013 *
00014 *  The GNU General Public License can be found at
00015 *  http://www.gnu.org/copyleft/gpl.html.
00016 *  A copy is found in the textfile GPL.txt and important notices to the license
00017 *  from the author is found in LICENSE.txt distributed with these scripts.
00018 *
00019 *
00020 *  This script is distributed in the hope that it will be useful,
00021 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023 *  GNU General Public License for more details.
00024 *
00025 *  This copyright notice MUST APPEAR in all copies of the script!
00026 ***************************************************************/
00058 $PAGES_TYPES = Array(
00059         '254' => Array(         //  Doktype 254 is a 'sysFolder' - a general purpose storage folder for whatever you like. In CMS context it's NOT a viewable page. Can contain any element.
00060                 'type' => 'sys',
00061                 'icon' => 'sysf.gif',
00062                 'allowedTables' => '*'
00063         ),
00064         '255' => Array(         // Doktype 255 is a recycle-bin.
00065                 'type' => 'sys',
00066                 'icon' => 'recycler.gif',
00067                 'allowedTables' => '*'
00068         ),
00069         'default' => Array(
00070                 'type' => 'web',
00071                 'icon' => 'pages.gif',
00072                 'allowedTables' => 'pages',
00073                 'onlyAllowedTables' => '0'
00074         )
00075 );
00076 
00077 
00085 $ICON_TYPES = Array();
00086 
00087 
00094 $LANG_GENERAL_LABELS = array(
00095         'endtime' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
00096         'hidden' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
00097         'starttime' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
00098         'fe_group' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',
00099         'hide_at_login' => 'LLL:EXT:lang/locallang_general.php:LGL.hide_at_login',
00100         'any_login' => 'LLL:EXT:lang/locallang_general.php:LGL.any_login',
00101         'usergroups' => 'LLL:EXT:lang/locallang_general.php:LGL.usergroups',
00102 );
00103 
00104 
00105 
00106 
00107 
00108 
00109 
00110 
00111 
00112 
00113 
00114 
00128 $TCA = array();
00129 
00136 $TCA['pages'] = Array (
00137         'ctrl' => Array (
00138                 'label' => 'title',
00139                 'tstamp' => 'tstamp',
00140                 'sortby' => 'sorting',
00141                 'title' => 'LLL:EXT:lang/locallang_tca.php:pages',
00142                 'type' => 'doktype',
00143                 'versioningWS' => TRUE,
00144                 'origUid' => 't3_origuid',
00145                 'delete' => 'deleted',
00146                 'crdate' => 'crdate',
00147                 'hideAtCopy' => 1,
00148                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00149                 'cruser_id' => 'cruser_id',
00150                 'editlock' => 'editlock',
00151                 'useColumnsForDefaultValues' => 'doktype'
00152         ),
00153         'interface' => Array (
00154                 'showRecordFieldList' => 'doktype,title',
00155                 'maxDBListItems' => 30,
00156                 'maxSingleDBListItems' => 50
00157         ),
00158         'columns' => Array (
00159                 'doktype' => Array (
00160                         'exclude' => 1,
00161                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
00162                         'config' => Array (
00163                                 'type' => 'select',
00164                                 'items' => Array (
00165                                         Array('LLL:EXT:lang/locallang_tca.php:doktype.I.0', '1'),
00166                                         Array('LLL:EXT:lang/locallang_tca.php:doktype.I.1', '254'),
00167                                         Array('LLL:EXT:lang/locallang_tca.php:doktype.I.2', '255')
00168                                 ),
00169                                 'default' => '1'
00170                         )
00171                 ),
00172                 'title' => Array (
00173                         'label' => 'LLL:EXT:lang/locallang_tca.php:title',
00174                         'config' => Array (
00175                                 'type' => 'input',
00176                                 'size' => '30',
00177                                 'max' => '256',
00178                                 'eval' => 'required'
00179                         )
00180                 ),
00181                 'TSconfig' => Array (
00182                         'exclude' => 1,
00183                         'label' => 'TSconfig:',
00184                         'config' => Array (
00185                                 'type' => 'text',
00186                                 'cols' => '40',
00187                                 'rows' => '5',
00188                                 'wizards' => Array(
00189                                         '_PADDING' => 4,
00190                                         '0' => Array(
00191                                                 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
00192                                                 'title' => 'TSconfig QuickReference',
00193                                                 'script' => 'wizard_tsconfig.php?mode=page',
00194                                                 'icon' => 'wizard_tsconfig.gif',
00195                                                 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
00196                                         )
00197                                 ),
00198                                 'softref' => 'TSconfig'
00199                         ),
00200                         'defaultExtras' => 'fixed-font : enable-tab',
00201                 ),
00202                 'php_tree_stop' => Array (
00203                         'exclude' => 1,
00204                         'label' => 'LLL:EXT:lang/locallang_tca.php:php_tree_stop',
00205                         'config' => Array (
00206                                 'type' => 'check'
00207                         )
00208                 ),
00209                 'is_siteroot' => Array (
00210                         'exclude' => 1,
00211                         'label' => 'LLL:EXT:lang/locallang_tca.php:is_siteroot',
00212                         'config' => Array (
00213                                 'type' => 'check'
00214                         )
00215                 ),
00216                 'storage_pid' => Array (
00217                         'exclude' => 1,
00218                         'label' => 'LLL:EXT:lang/locallang_tca.php:storage_pid',
00219                         'config' => Array (
00220                                 'type' => 'group',
00221                                 'internal_type' => 'db',
00222                                 'allowed' => 'pages',
00223                                 'size' => '1',
00224                                 'maxitems' => '1',
00225                                 'minitems' => '0',
00226                                 'show_thumbs' => '1'
00227                         )
00228                 ),
00229                 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
00230                 't3ver_label' => Array (
00231                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
00232                         'config' => Array (
00233                                 'type' => 'input',
00234                                 'size' => '30',
00235                                 'max' => '30',
00236                         )
00237                 ),
00238                 'editlock' => Array (
00239                         'exclude' => 1,
00240                         'label' => 'LLL:EXT:lang/locallang_tca.php:editlock',
00241                         'config' => Array (
00242                                 'type' => 'check'
00243                         )
00244                 ),
00245         ),
00246         'types' => Array (
00247                 '1' => Array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7'),
00248                 '254' => Array('showitem' => 'doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title, TSconfig;;6;nowrap, storage_pid;;7'),
00249                 '255' => Array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7')
00250         ),
00251         'palettes' => Array (
00252                 '6' => Array('showitem' => 'php_tree_stop, editlock'),
00253                 '7' => Array('showitem' => 'is_siteroot')
00254         )
00255 );
00256 
00262 $TCA['be_users'] = Array (
00263         'ctrl' => Array (
00264                 'label' => 'username',
00265                 'tstamp' => 'tstamp',
00266                 'title' => 'LLL:EXT:lang/locallang_tca.php:be_users',
00267                 'crdate' => 'crdate',
00268                 'cruser_id' => 'cruser_id',
00269                 'delete' => 'deleted',
00270                 'adminOnly' => 1,       // Only admin users can edit
00271                 'rootLevel' => 1,
00272                 'default_sortby' => 'ORDER BY admin, username',
00273                 'enablecolumns' => Array (
00274                         'disabled' => 'disable',
00275                         'starttime' => 'starttime',
00276                         'endtime' => 'endtime'
00277                 ),
00278                 'type' => 'admin',
00279                 'typeicon_column' => 'admin',
00280                 'typeicons' => Array (
00281                         '0' => 'be_users.gif',
00282                         '1' => 'be_users_admin.gif'
00283                 ),
00284                 'mainpalette' => '1',
00285                 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,fileoper_perms,userMods',
00286                 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
00287         )
00288 );
00289 
00295 $TCA['be_groups'] = Array (
00296         'ctrl' => Array (
00297                 'label' => 'title',
00298                 'tstamp' => 'tstamp',
00299                 'crdate' => 'crdate',
00300                 'cruser_id' => 'cruser_id',
00301                 'delete' => 'deleted',
00302                 'default_sortby' => 'ORDER BY title',
00303                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00304                 'adminOnly' => 1,
00305                 'rootLevel' => 1,
00306                 'type' => 'inc_access_lists',
00307                 'typeicon_column' => 'inc_access_lists',
00308                 'typeicons' => Array (
00309                         '1' => 'be_groups_lists.gif'
00310                 ),
00311                 'enablecolumns' => Array (
00312                         'disabled' => 'hidden'
00313                 ),
00314                 'title' => 'LLL:EXT:lang/locallang_tca.php:be_groups',
00315                 'useColumnsForDefaultValues' => 'lockToDomain',
00316                 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
00317         )
00318 );
00319 
00325 $TCA['sys_filemounts'] = Array (
00326         'ctrl' => Array (
00327                 'label' => 'title',
00328                 'tstamp' => 'tstamp',
00329                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00330                 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_filemounts',
00331                 'adminOnly' => 1,
00332                 'rootLevel' => 1,
00333                 'delete' => 'deleted',
00334                 'enablecolumns' => Array (
00335                         'disabled' => 'hidden'
00336                 ),
00337                 'iconfile' => '_icon_ftp.gif',
00338                 'useColumnsForDefaultValues' => 'path,base',
00339                 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
00340         )
00341 );
00342 
00348 $TCA['sys_workspace'] = Array (
00349         'ctrl' => Array (
00350                 'label' => 'title',
00351                 'tstamp' => 'tstamp',
00352                 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_workspace',
00353                 'adminOnly' => 1,
00354                 'rootLevel' => 1,
00355                 'delete' => 'deleted',
00356                 'iconfile' => 'sys_workspace.png',
00357                 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
00358         )
00359 );
00360 
00366 $TCA['sys_language'] = Array (
00367         'ctrl' => Array (
00368                 'label' => 'title',
00369                 'tstamp' => 'tstamp',
00370                 'default_sortby' => 'ORDER BY title',
00371                 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_language',
00372                 'adminOnly' => 1,
00373                 'rootLevel' => 1,
00374                 'enablecolumns' => Array (
00375                         'disabled' => 'hidden'
00376                 ),
00377                 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
00378         )
00379 );
00380 
00381 
00382 
00383 
00384 
00385 
00386 
00387 
00388 
00389 
00390 
00391 
00397 $TBE_MODULES = Array (
00398         'web' => 'list,info,perm,func',
00399         'file' => 'list',
00400         'doc' => '',    // This should always be empty!
00401         'user' => 'ws',
00402         'tools' => 'em',
00403         'help' => 'about,cshmanual'
00404 );
00405 
00406 
00411 $TBE_STYLES = array(
00412         'colorschemes' => Array (
00413                 '0' => '#E4E0DB,#CBC7C3,#EDE9E5',
00414         ),
00415         'borderschemes' => Array (
00416                 '0' => array('border:solid 1px black;',5)
00417         )
00418 );
00419 
00420 
00425 t3lib_extMgm::addLLrefForTCAdescr('pages','EXT:lang/locallang_csh_pages.xml');
00426 t3lib_extMgm::addLLrefForTCAdescr('be_users','EXT:lang/locallang_csh_be_users.xml');
00427 t3lib_extMgm::addLLrefForTCAdescr('be_groups','EXT:lang/locallang_csh_be_groups.xml');
00428 t3lib_extMgm::addLLrefForTCAdescr('sys_filemounts','EXT:lang/locallang_csh_sysfilem.xml');
00429 t3lib_extMgm::addLLrefForTCAdescr('sys_language','EXT:lang/locallang_csh_syslang.xml');
00430 t3lib_extMgm::addLLrefForTCAdescr('sys_workspace','EXT:lang/locallang_csh_sysws.xml');
00431 t3lib_extMgm::addLLrefForTCAdescr('xMOD_csh_corebe','EXT:lang/locallang_csh_corebe.xml');       // General Core
00432 t3lib_extMgm::addLLrefForTCAdescr('_MOD_tools_em','EXT:lang/locallang_csh_em.xml');             // Extension manager
00433 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info','EXT:lang/locallang_csh_web_info.xml');               // Web > Info
00434 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func','EXT:lang/locallang_csh_web_func.xml');               // Web > Func
00435 
00436 
00440 $FILEICONS = Array (
00441         'txt' => 'txt.gif',
00442         'pdf' => 'pdf.gif',
00443         'doc' => 'doc.gif',
00444         'ai' => 'ai.gif',
00445         'bmp' => 'bmp.gif',
00446         'tif' => 'tif.gif',
00447         'htm' => 'htm.gif',
00448         'html' => 'html.gif',
00449         'pcd' => 'pcd.gif',
00450         'gif' => 'gif.gif',
00451         'jpg' => 'jpg.gif',
00452         'jpeg' => 'jpg.gif',
00453         'mpg' => 'mpg.gif',
00454         'mpeg' => 'mpeg.gif',
00455         'exe' => 'exe.gif',
00456         'com' => 'exe.gif',
00457         'zip' => 'zip.gif',
00458         'tgz' => 'zip.gif',
00459         'gz' => 'zip.gif',
00460         'php3' => 'php3.gif',
00461         'php' => 'php3.gif',
00462         'ttf' => 'ttf.gif',
00463         'pcx' => 'pcx.gif',
00464         'png' => 'png.gif',
00465         'tga' => 'tga.gif',
00466         'class' => 'java.gif',
00467         'sxc' => 'sxc.gif',
00468         'sxw' => 'sxw.gif',
00469         'xls' => 'xls.gif',
00470         'swf' => 'swf.gif',
00471         'swa' => 'flash.gif',
00472         'dcr' => 'flash.gif',
00473         'wav' => 'wav.gif',
00474         'mp3' => 'wav.gif',
00475         'avi' => 'avi.gif',
00476         'au' => 'au.gif',
00477         'mov' => 'mov.gif',
00478         '3ds' => '3ds.gif',
00479         'csv' => 'csv.gif',
00480         'ico' => 'ico.gif',
00481         'max' => 'max.gif',
00482         'ps' => 'ps.gif',
00483         'tmpl' => 'tmpl.gif',
00484         'xls' => 'xls.gif',
00485         'fh3' => 'fh3.gif',
00486         'inc' => 'inc.gif',
00487         'mid' => 'mid.gif',
00488         'psd' => 'psd.gif',
00489         'xml' => 'xml.gif',
00490         'rtf' => 'rtf.gif',
00491         't3x' => 't3x.gif',
00492         't3d' => 't3d.gif',
00493         'cdr' => 'cdr.gif',
00494         'dtd' => 'dtd.gif',
00495         'sgml' => 'sgml.gif',
00496         'ani' => 'ani.gif',
00497         'css' => 'css.gif',
00498         'eps' => 'eps.gif',
00499         'js' => 'js.gif',
00500         'wrl' => 'wrl.gif',
00501         'default' => 'default.gif'
00502 );
00503 
00504 
00505 
00506 
00507 ?>


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