[ Index ]
 

Code source de Typo3 4.1.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/t3lib/stddb/ -> tbl_be.php (source)

   1  <?php
   2  /***************************************************************
   3  *  Copyright notice
   4  *
   5  *  (c) 1999-2005 Kasper Skaarhoj (kasperYYYY@typo3.com)
   6  *  All rights reserved
   7  *
   8  *  This script is part of the TYPO3 project. The TYPO3 project is
   9  *  free software; you can redistribute it and/or modify
  10  *  it under the terms of the GNU General Public License as published by
  11  *  the Free Software Foundation; either version 2 of the License, or
  12  *  (at your option) any later version.
  13  *
  14  *  The GNU General Public License can be found at
  15  *  http://www.gnu.org/copyleft/gpl.html.
  16  *  A copy is found in the textfile GPL.txt and important notices to the license
  17  *  from the author is found in LICENSE.txt distributed with these scripts.
  18  *
  19  *
  20  *  This script is distributed in the hope that it will be useful,
  21  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  22  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  23  *  GNU General Public License for more details.
  24  *
  25  *  This copyright notice MUST APPEAR in all copies of the script!
  26  ***************************************************************/
  27  /**
  28   * Contains the dynamic configuation of the fields in the core tables of TYPO3: be_users, be_groups and sys_filemounts
  29   *
  30   * $Id: tbl_be.php 2055 2007-02-20 18:19:44Z ohader $
  31   * Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj
  32   *
  33   * @author    Kasper Skaarhoj <kasperYYYY@typo3.com>
  34   * @see tables.php, tables.sql
  35   */
  36  
  37  
  38  
  39  
  40  
  41  
  42  /**
  43   * Backend users - Those who login into the TYPO3 administration backend
  44   */
  45  $TCA['be_users'] = Array (
  46      'ctrl' => $TCA['be_users']['ctrl'],
  47      'interface' => Array (
  48          'showRecordFieldList' => 'username,usergroup,db_mountpoints,file_mountpoints,admin,options,fileoper_perms,userMods,lockToDomain,realName,email,disable,starttime,endtime'
  49      ),
  50      'columns' => Array (
  51          'username' => Array (
  52              'label' => 'Username:',
  53              'config' => Array (
  54                  'type' => 'input',
  55                  'size' => '20',
  56                  'max' => '50',
  57                  'eval' => 'nospace,lower,unique,required'
  58              )
  59          ),
  60          'password' => Array (
  61              'label' => 'Password:',
  62              'config' => Array (
  63                  'type' => 'input',
  64                  'size' => '20',
  65                  'max' => '40',
  66                  'eval' => 'required,md5,password'
  67              )
  68          ),
  69          'usergroup' => Array (
  70              'label' => 'Group:',
  71              'config' => Array (
  72                  'type' => 'select',
  73                  'foreign_table' => 'be_groups',
  74                  'foreign_table_where' => 'ORDER BY be_groups.title',
  75                  'size' => '5',
  76                  'maxitems' => '20',
  77  #                'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
  78                  'iconsInOptionTags' => 1,
  79                  'wizards' => Array(
  80                      '_PADDING' => 1,
  81                      '_VERTICAL' => 1,
  82                      'edit' => Array(
  83                          'type' => 'popup',
  84                          'title' => 'Edit usergroup',
  85                          'script' => 'wizard_edit.php',
  86                          'popup_onlyOpenIfSelected' => 1,
  87                          'icon' => 'edit2.gif',
  88                          'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
  89                      ),
  90                      'add' => Array(
  91                          'type' => 'script',
  92                          'title' => 'Create new group',
  93                          'icon' => 'add.gif',
  94                          'params' => Array(
  95                              'table'=>'be_groups',
  96                              'pid' => '0',
  97                              'setValue' => 'prepend'
  98                          ),
  99                          'script' => 'wizard_add.php',
 100                      ),
 101                      'list' => Array(
 102                          'type' => 'script',
 103                          'title' => 'List groups',
 104                          'icon' => 'list.gif',
 105                          'params' => Array(
 106                              'table'=>'be_groups',
 107                              'pid' => '0',
 108                          ),
 109                          'script' => 'wizard_list.php',
 110                      )
 111                  )
 112              )
 113          ),
 114          'lockToDomain' => Array (
 115              'label' => 'Lock to domain:',
 116              'config' => Array (
 117                  'type' => 'input',
 118                  'size' => '20',
 119                  'eval' => 'trim',
 120                  'max' => '50',
 121                  'checkbox' => '',
 122                  'softref' => 'substitute'
 123              )
 124          ),
 125          'db_mountpoints' => Array (
 126              'label' => 'DB Mounts:',
 127              'config' => Array (
 128                  'type' => 'group',
 129                  'internal_type' => 'db',
 130                      'allowed' => 'pages',
 131                  'size' => '3',
 132                  'maxitems' => '10',
 133                  'autoSizeMax' => 10,
 134                  'show_thumbs' => '1'
 135              )
 136          ),
 137          'file_mountpoints' => Array (
 138              'label' => 'File Mounts:',
 139              'config' => Array (
 140                  'type' => 'select',
 141                  'foreign_table' => 'sys_filemounts',
 142                  'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
 143                  'size' => '3',
 144                  'maxitems' => '10',
 145                  'autoSizeMax' => 10,
 146                  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
 147                  'iconsInOptionTags' => 1,
 148                  'wizards' => Array(
 149                      '_PADDING' => 1,
 150                      '_VERTICAL' => 1,
 151                      'edit' => Array(
 152                          'type' => 'popup',
 153                          'title' => 'Edit filemount',
 154                          'script' => 'wizard_edit.php',
 155                          'icon' => 'edit2.gif',
 156                          'popup_onlyOpenIfSelected' => 1,
 157                          'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
 158                      ),
 159                      'add' => Array(
 160                          'type' => 'script',
 161                          'title' => 'Create new filemount',
 162                          'icon' => 'add.gif',
 163                          'params' => Array(
 164                              'table'=>'sys_filemounts',
 165                              'pid' => '0',
 166                              'setValue' => 'prepend'
 167                          ),
 168                          'script' => 'wizard_add.php',
 169                      ),
 170                      'list' => Array(
 171                          'type' => 'script',
 172                          'title' => 'List filemounts',
 173                          'icon' => 'list.gif',
 174                          'params' => Array(
 175                              'table'=>'sys_filemounts',
 176                              'pid' => '0',
 177                          ),
 178                          'script' => 'wizard_list.php',
 179                      )
 180                  )
 181              )
 182          ),
 183          'email' => Array (
 184              'label' => 'Email:',
 185              'config' => Array (
 186                  'type' => 'input',
 187                  'size' => '20',
 188                  'eval' => 'trim',
 189                  'max' => '80',
 190                  'softref' => 'email[subst]'
 191              )
 192          ),
 193          'realName' => Array (
 194              'label' => 'Name:',
 195              'config' => Array (
 196                  'type' => 'input',
 197                  'size' => '20',
 198                  'eval' => 'trim',
 199                  'max' => '80'
 200              )
 201          ),
 202          'disable' => Array (
 203              'label' => 'Disable:',
 204              'config' => Array (
 205                  'type' => 'check'
 206              )
 207          ),
 208          'disableIPlock' => Array (
 209              'label' => 'Disable IP lock for user:',
 210              'config' => Array (
 211                  'type' => 'check'
 212              )
 213          ),
 214          'admin' => Array (
 215              'label' => 'Admin(!):',
 216              'config' => Array (
 217                  'type' => 'check',
 218                  'default' => '0'
 219              )
 220          ),
 221          'options' => Array (
 222              'label' => 'Mount from groups:',
 223              'config' => Array (
 224                  'type' => 'check',
 225                  'items' => Array (
 226                      Array('DB Mounts', 0),
 227                      Array('File Mounts', 0)
 228                  ),
 229                  'default' => '3'
 230              )
 231          ),
 232          'fileoper_perms' => Array (
 233              'label' => 'Fileoperation permissions:',
 234              'config' => Array (
 235                  'type' => 'check',
 236                  'items' => Array (
 237                      Array('Files: Upload,Copy,Move,Delete,Rename,New,Edit', 0),
 238                      Array('Files: Unzip', 0),
 239                      Array('Directory: Move,Delete,Rename,New', 0),
 240                      Array('Directory: Copy', 0),
 241                      Array('Directory: Delete recursively (rm -Rf)', 0)
 242                  ),
 243                  'default' => '7'
 244              )
 245          ),
 246          'workspace_perms' => Array (
 247              'label' => 'Workspace permissions:',
 248              'config' => Array (
 249                  'type' => 'check',
 250                  'items' => Array (
 251                      Array('Edit Live (Online)', 0),
 252                      Array('Edit Draft (Offline)', 0),
 253                      Array('Create new workspace projects', 0),
 254                  ),
 255                  'default' => 3
 256              )
 257          ),
 258          'starttime' => Array (
 259              'label' => 'Start:',
 260              'config' => Array (
 261                  'type' => 'input',
 262                  'size' => '8',
 263                  'max' => '20',
 264                  'eval' => 'date',
 265                  'default' => '0',
 266                  'checkbox' => '0'
 267              )
 268          ),
 269          'endtime' => Array (
 270              'label' => 'Stop:',
 271              'config' => Array (
 272                  'type' => 'input',
 273                  'size' => '8',
 274                  'max' => '20',
 275                  'eval' => 'date',
 276                  'checkbox' => '0',
 277                  'default' => '0',
 278                  'range' => Array (
 279                      'upper' => mktime(0,0,0,12,31,2020),
 280                  )
 281              )
 282          ),
 283          'lang' => Array (
 284              'label' => 'Default Language:',
 285              'config' => Array (
 286                  'type' => 'select',
 287                  'items' => Array (
 288                      Array('English', ''),
 289                      Array('Arabic', 'ar'),
 290                      Array('Basque', 'eu'),
 291                      Array('Bosnian', 'ba'),
 292                      Array('Brazilian Portuguese', 'br'),
 293                      Array('Bulgarian', 'bg'),
 294                      Array('Catalan', 'ca'),
 295                      Array('Chinese (Simpl.)', 'ch'),
 296                      Array('Chinese (Trad.)', 'hk'),
 297                      Array('Croatian', 'hr'),
 298                      Array('Czech', 'cz'),
 299                      Array('Danish', 'dk'),
 300                      Array('Dutch', 'nl'),
 301                      Array('Esperanto', 'eo'),
 302                      Array('Estonian', 'et'),
 303                      Array('Faroese', 'fo'),
 304                      Array('Finnish', 'fi'),
 305                      Array('French', 'fr'),
 306                      Array('German', 'de'),
 307                      Array('Greek', 'gr'),
 308                      Array('Greenlandic', 'gl'),
 309                      Array('Hebrew', 'he'),
 310                      Array('Hindi', 'hi'),
 311                      Array('Hungarian', 'hu'),
 312                      Array('Icelandic', 'is'),
 313                      Array('Italian', 'it'),
 314                      Array('Japanese', 'jp'),
 315                      Array('Korean', 'kr'),
 316                      Array('Latvian', 'lv'),
 317                      Array('Lithuanian', 'lt'),
 318                      Array('Malay', 'my'),
 319                      Array('Norwegian', 'no'),
 320                      Array('Persian', 'fa'),
 321                      Array('Polish', 'pl'),
 322                      Array('Portuguese', 'pt'),
 323                      Array('Romanian', 'ro'),
 324                      Array('Russian', 'ru'),
 325                      Array('Serbian', 'sr'),    
 326                      Array('Slovak', 'sk'),
 327                      Array('Slovenian', 'si'),
 328                      Array('Spanish', 'es'),
 329                      Array('Swedish', 'se'),
 330                      Array('Thai', 'th'),
 331                      Array('Turkish', 'tr'),
 332                      Array('Ukrainian', 'ua'),
 333                      Array('Vietnamese', 'vn'),
 334                  )
 335              )
 336          ),
 337          'userMods' => Array (
 338              'label' => 'Modules:',
 339              'config' => Array (
 340                  'type' => 'select',
 341                  'special' => 'modListUser',
 342                  'size' => '5',
 343                  'autoSizeMax' => 50,
 344                  'maxitems' => '100',
 345                  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
 346                  'iconsInOptionTags' => 1,
 347              )
 348          ),
 349          'allowed_languages' => Array (
 350              'label' => 'Limit to languages:',
 351              'config' => Array (
 352                  'type' => 'select',
 353                  'special' => 'languages',
 354                  'maxitems' => '1000',
 355                  'renderMode' => 'checkbox',
 356              )
 357          ),
 358          'TSconfig' => Array (
 359              'label' => 'TSconfig:',
 360              'config' => Array (
 361                  'type' => 'text',
 362                  'cols' => '40',
 363                  'rows' => '5',
 364                  'wizards' => Array(
 365                      '_PADDING' => 4,
 366                      '0' => Array(
 367                          'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
 368                          'title' => 'TSconfig QuickReference',
 369                          'script' => 'wizard_tsconfig.php?mode=beuser',
 370                          'icon' => 'wizard_tsconfig.gif',
 371                          'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
 372                      )
 373                  ),
 374                  'softref' => 'TSconfig'
 375              ),
 376              'defaultExtras' => 'fixed-font : enable-tab',
 377          ),
 378          'createdByAction' => Array('config'=>array('type'=>'passthrough'))
 379      ),
 380      'types' => Array (
 381          '0' => Array('showitem' => 'username;;;;2-2-2, password, usergroup, lockToDomain, disableIPlock, admin;;;;5-5-5, realName;;;;3-3-3, email, lang, userMods;;;;4-4-4, allowed_languages, workspace_perms, options, db_mountpoints, file_mountpoints, fileoper_perms, --div--, TSconfig;;;;5-5-5'),
 382          '1' => Array('showitem' => 'username;;;;2-2-2, password, usergroup, disableIPlock, admin;;;;5-5-5, realName;;;;3-3-3, email, lang, options;;;;4-4-4, db_mountpoints, file_mountpoints, fileoper_perms, --div--, TSconfig;;;;5-5-5')
 383      ),
 384      'palettes' => Array (
 385          '1' => Array('showitem' => 'disable, starttime, endtime')
 386      )
 387  );
 388  
 389  
 390  
 391  /**
 392   * Backend usergroups - Much permission criterias are based on membership of backend groups.
 393   */
 394  $TCA['be_groups'] = Array (
 395      'ctrl' => $TCA['be_groups']['ctrl'],
 396      'interface' => Array (
 397          'showRecordFieldList' => 'title,db_mountpoints,file_mountpoints,inc_access_lists,tables_select,tables_modify,pagetypes_select,non_exclude_fields,groupMods,lockToDomain,description'
 398      ),
 399      'columns' => Array (
 400          'title' => Array (
 401              'label' => 'Grouptitle:',
 402              'config' => Array (
 403                  'type' => 'input',
 404                  'size' => '25',
 405                  'max' => '50',
 406                  'eval' => 'trim,required'
 407              )
 408          ),
 409          'db_mountpoints' => Array (
 410              'label' => 'DB Mounts:',
 411              'config' => Array (
 412                  'type' => 'group',
 413                  'internal_type' => 'db',
 414                      'allowed' => 'pages',
 415                  'size' => '3',
 416                  'maxitems' => 20,
 417                  'autoSizeMax' => 10,
 418                  'show_thumbs' => '1'
 419              )
 420          ),
 421          'file_mountpoints' => Array (
 422              'label' => 'File Mounts:',
 423              'config' => Array (
 424                  'type' => 'select',
 425                  'foreign_table' => 'sys_filemounts',
 426                  'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
 427                  'size' => '3',
 428                  'maxitems' => 20,
 429                  'autoSizeMax' => 10,
 430                  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
 431                  'iconsInOptionTags' => 1,
 432                  'wizards' => Array(
 433                      '_PADDING' => 1,
 434                      '_VERTICAL' => 1,
 435                      'edit' => Array(
 436                          'type' => 'popup',
 437                          'title' => 'Edit filemount',
 438                          'script' => 'wizard_edit.php',
 439                          'popup_onlyOpenIfSelected' => 1,
 440                          'icon' => 'edit2.gif',
 441                          'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
 442                      ),
 443                      'add' => Array(
 444                          'type' => 'script',
 445                          'title' => 'Create new filemount',
 446                          'icon' => 'add.gif',
 447                          'params' => Array(
 448                              'table'=>'sys_filemounts',
 449                              'pid' => '0',
 450                              'setValue' => 'prepend'
 451                          ),
 452                          'script' => 'wizard_add.php',
 453                      ),
 454                      'list' => Array(
 455                          'type' => 'script',
 456                          'title' => 'List filemounts',
 457                          'icon' => 'list.gif',
 458                          'params' => Array(
 459                              'table'=>'sys_filemounts',
 460                              'pid' => '0',
 461                          ),
 462                          'script' => 'wizard_list.php',
 463                      )
 464                  )
 465              )
 466          ),
 467          'workspace_perms' => Array (
 468              'label' => 'Workspace permissions:',
 469              'config' => Array (
 470                  'type' => 'check',
 471                  'items' => Array (
 472                      Array('Edit Live (Online)', 0),
 473                      Array('Edit Draft (Offline)', 0),
 474                      Array('Create new workspace projects', 0),
 475                  ),
 476                  'default' => 0
 477              )
 478          ),
 479          'pagetypes_select' => Array (
 480              'label' => 'Page types:',
 481              'config' => Array (
 482                  'type' => 'select',
 483                  'special' => 'pagetypes',
 484                  'size' => '5',
 485                  'autoSizeMax' => 50,
 486                  'maxitems' => 20,
 487                  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
 488                  'iconsInOptionTags' => 1,
 489              )
 490          ),
 491          'tables_modify' => Array (
 492              'label' => 'Tables (modify):',
 493              'config' => Array (
 494                  'type' => 'select',
 495                  'special' => 'tables',
 496                  'size' => '5',
 497                  'autoSizeMax' => 50,
 498                  'maxitems' => 100,
 499                  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
 500                  'iconsInOptionTags' => 1,
 501              )
 502          ),
 503          'tables_select' => Array (
 504              'label' => 'Tables (listing):',
 505              'config' => Array (
 506                  'type' => 'select',
 507                  'special' => 'tables',
 508                  'size' => '5',
 509                  'autoSizeMax' => 50,
 510                  'maxitems' => 100,
 511                  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
 512                  'iconsInOptionTags' => 1,
 513              )
 514          ),
 515          'non_exclude_fields' => Array (
 516              'label' => 'Allowed excludefields:',
 517              'config' => Array (
 518                  'type' => 'select',
 519                  'special' => 'exclude',
 520                  'size' => '25',
 521                  'maxitems' => 1000,
 522                  'autoSizeMax' => 50,
 523                  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
 524              )
 525          ),
 526          'explicit_allowdeny' => Array (
 527              'label' => 'Explicitly allow/deny field values:',
 528              'config' => Array (
 529                  'type' => 'select',
 530                  'special' => 'explicitValues',
 531                  'maxitems' => 1000,
 532                  'renderMode' => 'checkbox',
 533              )
 534          ),
 535          'allowed_languages' => Array (
 536              'label' => 'Limit to languages:',
 537              'config' => Array (
 538                  'type' => 'select',
 539                  'special' => 'languages',
 540                  'maxitems' => 1000,
 541                  'renderMode' => 'checkbox',
 542              )
 543          ),
 544          'custom_options' => Array (
 545              'label' => 'Custom module options:',
 546              'config' => Array (
 547                  'type' => 'select',
 548                  'special' => 'custom',
 549                  'maxitems' => 1000,
 550                  'renderMode' => 'checkbox',
 551              )
 552          ),
 553          'hidden' => Array (
 554              'label' => 'Disable:',
 555              'config' => Array (
 556                  'type' => 'check',
 557                  'default' => '0'
 558              )
 559          ),
 560          'lockToDomain' => Array (
 561              'label' => 'Lock to domain:',
 562              'config' => Array (
 563                  'type' => 'input',
 564                  'size' => '20',
 565                  'eval' => 'trim',
 566                  'max' => '50',
 567                  'checkbox' => '',
 568                  'softref' => 'substitute'
 569              )
 570          ),
 571          'groupMods' => Array (
 572              'label' => 'Modules:',
 573              'config' => Array (
 574                  'type' => 'select',
 575                  'special' => 'modListGroup',
 576                  'size' => '5',
 577                  'autoSizeMax' => 50,
 578                  'maxitems' => 100,
 579                  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
 580                  'iconsInOptionTags' => 1,
 581              )
 582          ),
 583          'inc_access_lists' => Array (
 584              'label' => 'Include Access Lists:',
 585              'config' => Array (
 586                  'type' => 'check',
 587                  'default' => '0'
 588              )
 589          ),
 590          'description' => Array (
 591              'label' => 'Description:',
 592              'config' => Array (
 593                  'type' => 'text',
 594                  'rows' => 5,
 595                  'cols' => 30
 596              )
 597          ),
 598          'TSconfig' => Array (
 599              'label' => 'TSconfig:',
 600              'config' => Array (
 601                  'type' => 'text',
 602                  'cols' => '40',
 603                  'rows' => '5',
 604                  'wizards' => Array(
 605                      '_PADDING' => 4,
 606                      '0' => Array(
 607                          'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
 608                          'title' => 'TSconfig QuickReference',
 609                          'script' => 'wizard_tsconfig.php?mode=beuser',
 610                          'icon' => 'wizard_tsconfig.gif',
 611                          'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
 612                      )
 613                  ),
 614                  'softref' => 'TSconfig'
 615              ),
 616              'defaultExtras' => 'fixed-font : enable-tab',
 617          ),
 618          'hide_in_lists' => Array (
 619              'label' => 'Hide in lists:',
 620              'config' => Array (
 621                  'type' => 'check',
 622                  'default' => 0
 623              )
 624          ),
 625          'subgroup' => Array (
 626              'label' => 'Sub Groups:',
 627              'config' => Array (
 628                  'type' => 'select',
 629                  'foreign_table' => 'be_groups',
 630                  'foreign_table_where' => 'AND NOT(be_groups.uid = ###THIS_UID###) AND be_groups.hidden=0 ORDER BY be_groups.title',
 631                  'size' => '5',
 632                  'autoSizeMax' => 50,
 633                  'maxitems' => 20,
 634                  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
 635                  'iconsInOptionTags' => 1,
 636              )
 637          )
 638      ),
 639      'types' => Array (
 640          '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2, lockToDomain, --div--, inc_access_lists;;;;3-3-3, db_mountpoints;;;;4-4-4,file_mountpoints,workspace_perms,hide_in_lists,subgroup,description, --div--, TSconfig;;;;5-5-5'),
 641          '1' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2, lockToDomain, --div--, inc_access_lists;;;;3-3-3, groupMods, tables_select, tables_modify, pagetypes_select, non_exclude_fields, explicit_allowdeny, allowed_languages, custom_options, --div--, db_mountpoints;;;;4-4-4,file_mountpoints,workspace_perms,hide_in_lists,subgroup,description, --div--, TSconfig;;;;5-5-5')
 642      )
 643  );
 644  
 645  
 646  
 647  /**
 648   * System filemounts - Defines filepaths on the server which can be mounted for users so they can upload and manage files online by eg. the Filelist module
 649   */
 650  $TCA['sys_filemounts'] = Array (
 651      'ctrl' => $TCA['sys_filemounts']['ctrl'],
 652      'interface' => Array (
 653          'showRecordFieldList' => 'title,hidden,path,base'
 654      ),
 655      'columns' => Array (
 656          'title' => Array (
 657              'label' => 'LABEL:',
 658              'config' => Array (
 659                  'type' => 'input',
 660                  'size' => '20',
 661                  'max' => '30',
 662                  'eval' => 'required,trim'
 663              )
 664          ),
 665          'path' => Array (
 666              'label' => 'PATH:',
 667              'config' => Array (
 668                  'type' => 'input',
 669                  'size' => '40',
 670                  'max' => '120',
 671                  'eval' => 'required,trim',
 672                  'softref' => 'substitute'
 673              )
 674          ),
 675          'hidden' => Array (
 676              'label' => 'Disable:',
 677              'config' => Array (
 678                  'type' => 'check'
 679              )
 680          ),
 681          'base' => Array (
 682              'label' => 'BASE',
 683              'config' => Array (
 684                  'type' => 'radio',
 685                  'items' => Array (
 686                      Array('absolute (root) / ', 0),
 687                      Array('relative ../fileadmin/', 1)
 688                  ),
 689                  'default' => 0
 690              )
 691          )
 692      ),
 693      'types' => Array (
 694          '0' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;3-3-3,path,base')
 695      )
 696  );
 697  
 698  
 699  
 700  /**
 701   * System workspaces - Defines the offline workspaces available to users in TYPO3.
 702   */
 703  $TCA['sys_workspace'] = Array (
 704      'ctrl' => $TCA['sys_workspace']['ctrl'],
 705      'columns' => Array (
 706          'title' => Array (
 707              'label' => 'Title:',
 708              'config' => Array (
 709                  'type' => 'input',
 710                  'size' => '20',
 711                  'max' => '30',
 712                  'eval' => 'required,trim'
 713              )
 714          ),
 715          'description' => Array (
 716              'label' => 'Description:',
 717              'config' => Array (
 718                  'type' => 'text',
 719                  'rows' => 5,
 720                  'cols' => 30
 721              )
 722          ),
 723          'adminusers' => Array (
 724              'label' => 'Owners:',
 725              'config' => Array (
 726                  'type' => 'group',
 727                  'internal_type' => 'db',
 728                  'allowed' => 'be_users',
 729                  'size' => '3',
 730                  'maxitems' => '10',
 731                  'autoSizeMax' => 10,
 732                  'show_thumbs' => '1'
 733              )
 734          ),
 735          'members' => Array (
 736              'label' => 'Members:',
 737              'config' => Array (
 738                  'type' => 'group',
 739                  'internal_type' => 'db',
 740                  'allowed' => 'be_users,be_groups',
 741                  'prepend_tname' => 1,
 742                  'size' => '3',
 743                  'maxitems' => '100',
 744                  'autoSizeMax' => 10,
 745                  'show_thumbs' => '1'
 746              )
 747          ),
 748          'reviewers' => Array (
 749              'label' => 'Reviewers:',
 750              'config' => Array (
 751                  'type' => 'group',
 752                  'internal_type' => 'db',
 753                  'allowed' => 'be_users,be_groups',
 754                  'prepend_tname' => 1,
 755                  'size' => '3',
 756                  'maxitems' => '100',
 757                  'autoSizeMax' => 10,
 758                  'show_thumbs' => '1'
 759              )
 760          ),
 761          'db_mountpoints' => Array (
 762              'label' => 'DB Mounts:',
 763              'config' => Array (
 764                  'type' => 'group',
 765                  'internal_type' => 'db',
 766                      'allowed' => 'pages',
 767                  'size' => '3',
 768                  'maxitems' => '10',
 769                  'autoSizeMax' => 10,
 770                  'show_thumbs' => '1'
 771              )
 772          ),
 773          'file_mountpoints' => Array (
 774              'label' => 'File Mounts:',
 775              'config' => Array (
 776                  'type' => 'select',
 777                  'foreign_table' => 'sys_filemounts',
 778                  'foreign_table_where' => ' AND sys_filemounts.pid=0 ORDER BY sys_filemounts.title',
 779                  'size' => '3',
 780                  'maxitems' => '10',
 781                  'autoSizeMax' => 10,
 782                  'renderMode' => $GLOBALS['TYPO3_CONF_VARS']['BE']['accessListRenderMode'],
 783                  'iconsInOptionTags' => 1,
 784              )
 785          ),
 786          'publish_time' => Array (
 787              'label' => 'Publish:',
 788              'config' => Array (
 789                  'type' => 'input',
 790                  'size' => '8',
 791                  'max' => '20',
 792                  'eval' => 'datetime',
 793                  'default' => '0',
 794                  'checkbox' => '0'
 795              )
 796          ),
 797          'unpublish_time' => Array (
 798              'label' => 'Un-publish:',
 799              'config' => Array (
 800                  'type' => 'input',
 801                  'size' => '8',
 802                  'max' => '20',
 803                  'eval' => 'datetime',
 804                  'checkbox' => '0',
 805                  'default' => '0',
 806                  'range' => Array (
 807                      'upper' => mktime(0,0,0,12,31,2020),
 808                  )
 809              )
 810          ),
 811          'freeze' => Array (
 812              'label' => 'Freeze Editing',
 813              'config' => Array (
 814                  'type' => 'check',
 815                  'default' => '0'
 816              )
 817          ),
 818          'live_edit' => Array (
 819              'label' => 'Allow "live" editing of records from tables without versioning',
 820              'config' => Array (
 821                  'type' => 'check',
 822                  'default' => '0'
 823              )
 824          ),
 825          'review_stage_edit' => Array (
 826              'label' => 'Allow members to edit records in "Review" stage',
 827              'config' => Array (
 828                  'type' => 'check',
 829                  'default' => '0'
 830              )
 831          ),
 832          'disable_autocreate' => Array (
 833              'label' => 'Disable auto-versioning when editing',
 834              'config' => Array (
 835                  'type' => 'check',
 836                  'default' => '0'
 837              )
 838          ),
 839          'swap_modes' => Array (
 840              'label' => 'Swap modes',
 841              'config' => Array (
 842                  'type' => 'select',
 843                  'items' => Array (
 844                      Array('',0),
 845                      Array('Swap-Into-Workspace on Auto-publish',1),
 846                      Array('Disable Swap-Into-Workspace',2)
 847                  ),
 848              )
 849          ),
 850          'vtypes' => Array (
 851              'label' => 'Disable Versioning Types for members and reviewers:',
 852              'config' => Array (
 853                  'type' => 'check',
 854                  'items' => Array (
 855                      Array('Element',0),
 856                      Array('Page',0),
 857                      Array('Branch',0)
 858                  ),
 859              )
 860          ),
 861          'publish_access' => Array (
 862              'label' => 'Publish access:',
 863              'config' => Array (
 864                  'type' => 'check',
 865                  'items' => Array (
 866                      Array('Publish only content in publish stage',0),
 867                      Array('Only workspace owner can publish',0),
 868                  ),
 869              )
 870          ),
 871          'stagechg_notification' => Array (
 872              'label' => 'Stage change notification by email:',
 873              'config' => Array (
 874                  'type' => 'select',
 875                  'items' => Array (
 876                      Array('',0),
 877                      Array('Notify users on next stage only',1),
 878                      Array('Notify all users on any change',10)
 879                  ),
 880              )
 881          ),
 882      ),
 883      'types' => Array (
 884          '0' => Array('showitem' => 'title,description,--div--;Users,adminusers,members,reviewers,stagechg_notification,--div--;Mountpoints,db_mountpoints,file_mountpoints,--div--;Publishing,publish_time,unpublish_time,--div--;Other,freeze,live_edit,review_stage_edit,disable_autocreate,swap_modes,vtypes,publish_access')
 885      )
 886  );
 887  
 888  
 889  
 890  /**
 891   * System languages - Defines possible languages used for translation of records in the system
 892   */
 893  $TCA['sys_language'] = Array (
 894      'ctrl' => $TCA['sys_language']['ctrl'],
 895      'interface' => Array (
 896          'showRecordFieldList' => 'hidden,title'
 897      ),
 898      'columns' => Array (
 899          'title' => Array (
 900              'label' => 'LLL:EXT:lang/locallang_general.php:LGL.language',
 901              'config' => Array (
 902                  'type' => 'input',
 903                  'size' => '35',
 904                  'max' => '80',
 905                  'eval' => 'trim,required'
 906              )
 907          ),
 908          'hidden' => Array (
 909              'label' => 'LLL:EXT:lang/locallang_general.php:LGL.disable',
 910              'exclude' => 1,
 911              'config' => Array (
 912                  'type' => 'check',
 913                  'default' => '0'
 914              )
 915          ),
 916          'static_lang_isocode' => Array (
 917              'exclude' => 1,
 918              'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.isocode',
 919              'displayCond' => 'EXT:static_info_tables:LOADED:true',
 920              'config' => Array (
 921                  'type' => 'select',
 922                  'items' => Array (
 923                      Array('',0),
 924                  ),
 925                  'foreign_table' => 'static_languages',
 926                  'foreign_table_where' => 'AND static_languages.pid=0 ORDER BY static_languages.lg_name_en',
 927                  'size' => 1,
 928                  'minitems' => 0,
 929                  'maxitems' => 1,
 930              )
 931          ),
 932          'flag' => array(
 933              'label' => 'LLL:EXT:lang/locallang_tca.php:sys_language.flag',
 934              'config' => Array (
 935                  'type' => 'select',
 936                  'items' => Array (
 937                      Array('',0),
 938                  ),
 939                  'fileFolder' => 'typo3/gfx/flags/',    // Only shows if "t3lib/" is in the PATH_site...
 940                  'fileFolder_extList' => 'png,jpg,jpeg,gif',
 941                  'fileFolder_recursions' => 0,
 942                  'selicon_cols' => 8,
 943                  'size' => 1,
 944                  'minitems' => 0,
 945                  'maxitems' => 1,
 946              )
 947          )
 948      ),
 949      'types' => Array (
 950          '1' => Array('showitem' => 'hidden;;;;1-1-1,title;;;;2-2-2,static_lang_isocode,flag')
 951      )
 952  );
 953  
 954  ?>


Généré le : Sun Nov 25 17:13:16 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics