Documentation TYPO3 par Ameos

tables.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 1999-2004 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                 'versioning' => TRUE,
00144                 'delete' => 'deleted',
00145                 'crdate' => 'crdate',
00146                 'hideAtCopy' => 1,
00147                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00148                 'cruser_id' => 'cruser_id',
00149                 'editlock' => 'editlock',
00150                 'useColumnsForDefaultValues' => 'doktype'
00151         ),
00152         'interface' => Array (
00153                 'showRecordFieldList' => 'doktype,title',
00154                 'maxDBListItems' => 30,
00155                 'maxSingleDBListItems' => 50
00156         ),
00157         'columns' => Array (
00158                 'doktype' => Array (
00159                         'exclude' => 1,
00160                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
00161                         'config' => Array (
00162                                 'type' => 'select',
00163                                 'items' => Array (
00164                                         Array('LLL:EXT:lang/locallang_tca.php:doktype.I.0', '1'),
00165                                         Array('LLL:EXT:lang/locallang_tca.php:doktype.I.1', '254'),
00166                                         Array('LLL:EXT:lang/locallang_tca.php:doktype.I.2', '255')
00167                                 ),
00168                                 'default' => '1'
00169                         )
00170                 ),
00171                 'title' => Array (
00172                         'label' => 'LLL:EXT:lang/locallang_tca.php:title',
00173                         'config' => Array (
00174                                 'type' => 'input',
00175                                 'size' => '30',
00176                                 'max' => '256',
00177                                 'eval' => 'required'
00178                         )
00179                 ),
00180                 'TSconfig' => Array (
00181                         'exclude' => 1,
00182                         'label' => 'TSconfig:',
00183                         'config' => Array (
00184                                 'type' => 'text',
00185                                 'cols' => '40',
00186                                 'rows' => '5',
00187                                 'wizards' => Array(
00188                                         '_PADDING' => 4,
00189                                         '0' => Array(
00190                                                 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
00191                                                 'title' => 'TSconfig QuickReference',
00192                                                 'script' => 'wizard_tsconfig.php?mode=page',
00193                                                 'icon' => 'wizard_tsconfig.gif',
00194                                                 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
00195                                         )
00196                                 )
00197                         )
00198                 ),
00199                 'php_tree_stop' => Array (
00200                         'exclude' => 1,
00201                         'label' => 'LLL:EXT:lang/locallang_tca.php:php_tree_stop',
00202                         'config' => Array (
00203                                 'type' => 'check'
00204                         )
00205                 ),
00206                 'is_siteroot' => Array (
00207                         'exclude' => 1,
00208                         'label' => 'LLL:EXT:lang/locallang_tca.php:is_siteroot',
00209                         'config' => Array (
00210                                 'type' => 'check'
00211                         )
00212                 ),
00213                 'storage_pid' => Array (
00214                         'exclude' => 1,
00215                         'label' => 'LLL:EXT:lang/locallang_tca.php:storage_pid',
00216                         'config' => Array (
00217                                 'type' => 'group',
00218                                 'internal_type' => 'db',
00219                                 'allowed' => 'pages',
00220                                 'size' => '1',
00221                                 'maxitems' => '1',
00222                                 'minitems' => '0',
00223                                 'show_thumbs' => '1'
00224                         )
00225                 ),
00226                 'tx_impexp_origuid' => Array('config'=>array('type'=>'passthrough')),
00227                 't3ver_label' => Array (
00228                         'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
00229                         'config' => Array (
00230                                 'type' => 'input',
00231                                 'size' => '30',
00232                                 'max' => '30',
00233                         )
00234                 ),
00235                 'editlock' => Array (
00236                         'exclude' => 1,
00237                         'label' => 'LLL:EXT:lang/locallang_tca.php:editlock',
00238                         'config' => Array (
00239                                 'type' => 'check'
00240                         )
00241                 ),
00242         ),
00243         'types' => Array (
00244                 '1' => Array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7'),
00245                 '254' => Array('showitem' => 'doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title, TSconfig;;6;nowrap, storage_pid;;7'),
00246                 '255' => Array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7')
00247         ),
00248         'palettes' => Array (
00249                 '6' => Array('showitem' => 'php_tree_stop, editlock'),
00250                 '7' => Array('showitem' => 'is_siteroot')
00251         )
00252 );
00253 
00259 $TCA['be_users'] = Array (
00260         'ctrl' => Array (
00261                 'label' => 'username',
00262                 'tstamp' => 'tstamp',
00263                 'title' => 'LLL:EXT:lang/locallang_tca.php:be_users',
00264                 'crdate' => 'crdate',
00265                 'cruser_id' => 'cruser_id',
00266                 'delete' => 'deleted',
00267                 'adminOnly' => 1,       // Only admin users can edit
00268                 'rootLevel' => 1,
00269                 'default_sortby' => 'ORDER BY admin, username',
00270                 'enablecolumns' => Array (
00271                         'disabled' => 'disable',
00272                         'starttime' => 'starttime',
00273                         'endtime' => 'endtime'
00274                 ),
00275                 'type' => 'admin',
00276                 'typeicon_column' => 'admin',
00277                 'typeicons' => Array (
00278                         '0' => 'be_users.gif',
00279                         '1' => 'be_users_admin.gif'
00280                 ),
00281                 'mainpalette' => '1',
00282                 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,fileoper_perms,userMods',
00283                 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
00284         )
00285 );
00286 
00292 $TCA['be_groups'] = Array (
00293         'ctrl' => Array (
00294                 'label' => 'title',
00295                 'tstamp' => 'tstamp',
00296                 'crdate' => 'crdate',
00297                 'cruser_id' => 'cruser_id',
00298                 'delete' => 'deleted',
00299                 'default_sortby' => 'ORDER BY title',
00300                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00301                 'adminOnly' => 1,
00302                 'rootLevel' => 1,
00303                 'type' => 'inc_access_lists',
00304                 'typeicon_column' => 'inc_access_lists',
00305                 'typeicons' => Array (
00306                         '1' => 'be_groups_lists.gif'
00307                 ),
00308                 'enablecolumns' => Array (
00309                         'disabled' => 'hidden'
00310                 ),
00311                 'title' => 'LLL:EXT:lang/locallang_tca.php:be_groups',
00312                 'useColumnsForDefaultValues' => 'lockToDomain',
00313                 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
00314         )
00315 );
00316 
00322 $TCA['sys_filemounts'] = Array (
00323         'ctrl' => Array (
00324                 'label' => 'title',
00325                 'tstamp' => 'tstamp',
00326                 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
00327                 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_filemounts',
00328                 'adminOnly' => 1,
00329                 'rootLevel' => 1,
00330                 'delete' => 'deleted',
00331                 'enablecolumns' => Array (
00332                         'disabled' => 'hidden'
00333                 ),
00334                 'iconfile' => '_icon_ftp.gif',
00335                 'useColumnsForDefaultValues' => 'path,base',
00336                 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
00337         )
00338 );
00339 
00345 $TCA['sys_language'] = Array (
00346         'ctrl' => Array (
00347                 'label' => 'title',
00348                 'tstamp' => 'tstamp',
00349                 'default_sortby' => 'ORDER BY title',
00350                 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_language',
00351                 'adminOnly' => 1,
00352                 'rootLevel' => 1,
00353                 'enablecolumns' => Array (
00354                         'disabled' => 'hidden'
00355                 ),
00356                 'dynamicConfigFile' => 'T3LIB:tbl_be.php'
00357         )
00358 );
00359 
00360 
00361 
00362 
00363 
00364 
00365 
00366 
00367 
00368 
00369 
00370 
00376 $TBE_MODULES = Array (
00377         'web' => 'list,info,perm,func',
00378         'file' => 'list',
00379         'doc' => '',    // This should always be empty!
00380         'user' => '',
00381         'tools' => 'em',
00382         'help' => 'about,cshmanual'
00383 );
00384 
00385 
00390 $TBE_STYLES = array(
00391         'colorschemes' => Array (
00392                 '0' => '#E4E0DB,#CBC7C3,#EDE9E5',
00393         ),
00394         'borderschemes' => Array (
00395                 '0' => array('border:solid 1px black;',5)
00396         )
00397 );
00398 
00399 
00404 t3lib_extMgm::addLLrefForTCAdescr('pages','EXT:lang/locallang_csh_pages.xml');
00405 t3lib_extMgm::addLLrefForTCAdescr('be_users','EXT:lang/locallang_csh_be_users.xml');
00406 t3lib_extMgm::addLLrefForTCAdescr('be_groups','EXT:lang/locallang_csh_be_groups.xml');
00407 t3lib_extMgm::addLLrefForTCAdescr('sys_filemounts','EXT:lang/locallang_csh_sysfilem.xml');
00408 t3lib_extMgm::addLLrefForTCAdescr('sys_language','EXT:lang/locallang_csh_syslang.xml');
00409 t3lib_extMgm::addLLrefForTCAdescr('xMOD_csh_corebe','EXT:lang/locallang_csh_corebe.xml');       // General Core
00410 t3lib_extMgm::addLLrefForTCAdescr('_MOD_tools_em','EXT:lang/locallang_csh_em.xml');             // Extension manager
00411 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info','EXT:lang/locallang_csh_web_info.xml');               // Web > Info
00412 t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func','EXT:lang/locallang_csh_web_func.xml');               // Web > Func
00413 
00414 
00418 $FILEICONS = Array (
00419         'txt' => 'txt.gif',
00420         'pdf' => 'pdf.gif',
00421         'doc' => 'doc.gif',
00422         'ai' => 'ai.gif',
00423         'bmp' => 'bmp.gif',
00424         'tif' => 'tif.gif',
00425         'htm' => 'htm.gif',
00426         'html' => 'html.gif',
00427         'pcd' => 'pcd.gif',
00428         'gif' => 'gif.gif',
00429         'jpg' => 'jpg.gif',
00430         'jpeg' => 'jpg.gif',
00431         'mpg' => 'mpg.gif',
00432         'mpeg' => 'mpeg.gif',
00433         'exe' => 'exe.gif',
00434         'com' => 'exe.gif',
00435         'zip' => 'zip.gif',
00436         'tgz' => 'zip.gif',
00437         'gz' => 'zip.gif',
00438         'php3' => 'php3.gif',
00439         'php' => 'php3.gif',
00440         'ttf' => 'ttf.gif',
00441         'pcx' => 'pcx.gif',
00442         'png' => 'png.gif',
00443         'tga' => 'tga.gif',
00444         'class' => 'java.gif',
00445         'sxc' => 'sxc.gif',
00446         'sxw' => 'sxw.gif',
00447         'xls' => 'xls.gif',
00448         'swf' => 'swf.gif',
00449         'swa' => 'flash.gif',
00450         'dcr' => 'flash.gif',
00451         'wav' => 'wav.gif',
00452         'mp3' => 'wav.gif',
00453         'avi' => 'avi.gif',
00454         'au' => 'au.gif',
00455         'mov' => 'mov.gif',
00456         '3ds' => '3ds.gif',
00457         'csv' => 'csv.gif',
00458         'ico' => 'ico.gif',
00459         'max' => 'max.gif',
00460         'ps' => 'ps.gif',
00461         'tmpl' => 'tmpl.gif',
00462         'xls' => 'xls.gif',
00463         'fh3' => 'fh3.gif',
00464         'inc' => 'inc.gif',
00465         'mid' => 'mid.gif',
00466         'psd' => 'psd.gif',
00467         'xml' => 'xml.gif',
00468         'rtf' => 'rtf.gif',
00469         't3x' => 't3x.gif',
00470         't3d' => 't3d.gif',
00471         'cdr' => 'cdr.gif',
00472         'dtd' => 'dtd.gif',
00473         'sgml' => 'sgml.gif',
00474         'ani' => 'ani.gif',
00475         'css' => 'css.gif',
00476         'eps' => 'eps.gif',
00477         'js' => 'js.gif',
00478         'wrl' => 'wrl.gif',
00479         'default' => 'default.gif'
00480 );
00481 
00482 
00483 
00484 
00485 ?>


Généré par TYPO3 Ameos avec  doxygen 1.4.6