PageRenderTime 33ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/t3lib/stddb/tables.php

https://github.com/foxsoft/typo3v4core
PHP | 852 lines | 682 code | 46 blank | 124 comment | 0 complexity | 14163a34d3b2f1311ef6c2bd7b7069bc MD5 | raw file
Possible License(s): Apache-2.0
  1. <?php
  2. /***************************************************************
  3. * Copyright notice
  4. *
  5. * (c) 1999-2010 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 initialization of global TYPO3 variables among which $TCA is the most significant.
  29. *
  30. * The list in order of apperance is: $PAGES_TYPES, $ICON_TYPES, $LANG_GENERAL_LABELS, $TCA, $TBE_MODULES, $TBE_STYLES, $FILEICONS
  31. * These variables are first of all used in the backend but to some degree in the frontend as well. (See references)
  32. * See the document "Inside TYPO3" for a description of each variable in addition to the comment associated with each.
  33. *
  34. * This file is included from "typo3/init.php" (backend) and "index_ts.php" (frontend) as the first file of a three-fold inclusion session (see references):
  35. * 1) First this script is included (unless the constant "TYPO3_tables_script" instructs another filename to substitute it, see t3lib/config_default.php); This should initialize the variables shown above.
  36. * 2) Then either the "typo3conf/temp_CACHED_??????_ext_tables.php" cache file OR "stddb/load_ext_tables.php" is included in order to let extensions add/modify these variables as they desire.
  37. * 3) Finally if the constant "TYPO3_extTableDef_script" defines a file name from typo3conf/ it is included, also for overriding values (the old-school way before extensions came in). See config_default.php
  38. *
  39. * Configuration in this file should NOT be edited directly. If you would like to alter
  40. * or extend this information, please make an extension which does so.
  41. * Thus you preserve backwards compatibility.
  42. *
  43. *
  44. * $Id$
  45. * Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj
  46. *
  47. * @author Kasper Skaarhoj <kasperYYYY@typo3.com>
  48. * @see tslib_fe::includeTCA(), typo3/init.php, t3lib/stddb/load_ext_tables.php
  49. * @link http://typo3.org/doc.0.html?&tx_extrepmgm_pi1[extUid]=262&cHash=4f12caa011
  50. */
  51. /**
  52. * $PAGES_TYPES defines the various types of pages (field: doktype) the system can handle and what restrictions may apply to them.
  53. * Here you can set the icon and especially you can define which tables are allowed on a certain pagetype (doktype)
  54. * NOTE: The 'default' entry in the $PAGES_TYPES-array is the 'base' for all types, and for every type the entries simply overrides the entries in the 'default' type!
  55. */
  56. $PAGES_TYPES = array(
  57. '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.
  58. 'type' => 'sys',
  59. 'icon' => 'sysf.gif',
  60. 'allowedTables' => '*'
  61. ),
  62. '255' => array( // Doktype 255 is a recycle-bin.
  63. 'type' => 'sys',
  64. 'icon' => 'recycler.gif',
  65. 'allowedTables' => '*'
  66. ),
  67. 'default' => array(
  68. 'type' => 'web',
  69. 'icon' => 'pages.gif',
  70. 'allowedTables' => 'pages',
  71. 'onlyAllowedTables' => '0'
  72. )
  73. );
  74. /**
  75. * With $ICON_TYPES you can assign alternative icons to pages records based on another field than 'doktype'
  76. * Each key is a value from the "module" field of page records and the value is an array with a key/value pair, eg. "icon" => "modules_shop.gif"
  77. *
  78. * @see t3lib_iconWorks::getIcon(), typo3/sysext/cms/ext_tables.php
  79. */
  80. $ICON_TYPES = array();
  81. /**
  82. * Commonly used language labels which can be used in the $TCA array and elsewhere.
  83. * Obsolete - just use the values of each entry directly.
  84. * @todo turn into an object with magic getters and setter so we can make use of the deprecation logging
  85. * @deprecated since TYPO3 3.6
  86. */
  87. $LANG_GENERAL_LABELS = array(
  88. 'endtime' => 'LLL:EXT:lang/locallang_general.php:LGL.endtime',
  89. 'hidden' => 'LLL:EXT:lang/locallang_general.php:LGL.hidden',
  90. 'starttime' => 'LLL:EXT:lang/locallang_general.php:LGL.starttime',
  91. 'fe_group' => 'LLL:EXT:lang/locallang_general.php:LGL.fe_group',
  92. 'hide_at_login' => 'LLL:EXT:lang/locallang_general.php:LGL.hide_at_login',
  93. 'any_login' => 'LLL:EXT:lang/locallang_general.php:LGL.any_login',
  94. 'usergroups' => 'LLL:EXT:lang/locallang_general.php:LGL.usergroups',
  95. );
  96. /**
  97. * $TCA:
  98. * This array configures TYPO3 to work with the tables from the database by assigning meta information about data types, relations etc.
  99. * The global variable $TCA will contain the information needed to recognize and render each table in the backend
  100. * See documentation 'Inside TYPO3' for the syntax and list of required tables/fields!
  101. *
  102. * The tables configured in this document (and backed up by "tbl_be.php") is the required minimum set of tables/field that any TYPO3 system MUST have. These tables are therefore a part of the TYPO3 core.
  103. * The SQL definitions of these tables (and some more which are not defined in $TCA) is found in the file "tables.sql"
  104. * Only the "pages" table is defined fully in this file - the others are only defined for the "ctrl" part and the columns are defined in detail in the associated file, "tbl_be.php"
  105. *
  106. * NOTE: The (default) icon for a table is defined 1) as a giffile named 'gfx/i/[tablename].gif' or 2) as the value of [table][ctrl][iconfile]
  107. * NOTE: [table][ctrl][rootLevel] goes NOT for pages. Apart from that if rootLevel is true, records can ONLY be created on rootLevel. If it's false records can ONLY be created OUTSIDE rootLevel
  108. */
  109. $TCA = array();
  110. /**
  111. * Table "pages":
  112. * The mandatory pages table. The backbone of the TYPO3 page tree structure.
  113. * All other records configured in $TCA must have a field, "pid", which relates the record to a page record's "uid" field.
  114. * Must be COMPLETELY configured in tables.php
  115. */
  116. $TCA['pages'] = array(
  117. 'ctrl' => array(
  118. 'label' => 'title',
  119. 'tstamp' => 'tstamp',
  120. 'sortby' => 'sorting',
  121. 'title' => 'LLL:EXT:lang/locallang_tca.php:pages',
  122. 'type' => 'doktype',
  123. 'versioningWS' => 2,
  124. 'origUid' => 't3_origuid',
  125. 'delete' => 'deleted',
  126. 'crdate' => 'crdate',
  127. 'hideAtCopy' => 1,
  128. 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
  129. 'cruser_id' => 'cruser_id',
  130. 'editlock' => 'editlock',
  131. 'useColumnsForDefaultValues' => 'doktype',
  132. 'typeicon_column' => 'doktype',
  133. 'typeicon_classes' => array(
  134. '1' => 'apps-pagetree-page-default',
  135. '1-hideinmenu' => 'apps-pagetree-page-not-in-menu',
  136. '1-root' => 'apps-pagetree-page-domain',
  137. '3' => 'apps-pagetree-page-shortcut-external',
  138. '3-hideinmenu' => 'apps-pagetree-page-shortcut-external-hideinmenu',
  139. '3-root' => 'apps-pagetree-page-shortcut-external-root',
  140. '4' => 'apps-pagetree-page-shortcut',
  141. '4-hideinmenu' => 'apps-pagetree-page-shortcut-hideinmenu',
  142. '4-root' => 'apps-pagetree-page-shortcut-root',
  143. '6' => 'apps-pagetree-page-backend-users',
  144. '6-hideinmenu' => 'apps-pagetree-page-backend-users-hideinmenu',
  145. '6-root' => 'apps-pagetree-page-backend-users-root',
  146. '7' => 'apps-pagetree-page-mountpoint',
  147. '7-hideinmenu' => 'apps-pagetree-page-mountpoint-hideinmenu',
  148. '7-root' => 'apps-pagetree-page-mountpoint-root',
  149. '199' => 'apps-pagetree-spacer',
  150. '199-hideinmenu' => 'apps-pagetree-spacer',
  151. '199-root' => 'apps-pagetree-page-domain',
  152. '254' => 'apps-pagetree-folder-default',
  153. '254-hideinmenu' => 'apps-pagetree-folder-default',
  154. '254-root' => 'apps-pagetree-page-domain',
  155. '255' => 'apps-pagetree-page-recycler',
  156. '255-hideinmenu' => 'apps-pagetree-page-recycler',
  157. 'contains-shop' => 'apps-pagetree-folder-contains-shop',
  158. 'contains-approve' => 'apps-pagetree-folder-contains-approve',
  159. 'contains-fe_users' => 'apps-pagetree-folder-contains-fe_users',
  160. 'contains-board' => 'apps-pagetree-folder-contains-board',
  161. 'contains-news' => 'apps-pagetree-folder-contains-news',
  162. 'default' => 'apps-pagetree-page-default',
  163. ),
  164. 'typeicons' => array(
  165. '1' => 'pages.gif',
  166. '254' => 'sysf.gif',
  167. '255' => 'recycler.gif',
  168. )
  169. ),
  170. 'interface' => array(
  171. 'showRecordFieldList' => 'doktype,title',
  172. 'maxDBListItems' => 30,
  173. 'maxSingleDBListItems' => 50
  174. ),
  175. 'columns' => array(
  176. 'doktype' => array(
  177. 'exclude' => 1,
  178. 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.type',
  179. 'config' => array(
  180. 'type' => 'select',
  181. 'items' => array(
  182. array('LLL:EXT:lang/locallang_tca.php:doktype.I.0', '1', 'i/pages.gif'),
  183. array('LLL:EXT:lang/locallang_tca.php:doktype.I.1', '254', 'i/sysf.gif'),
  184. array('LLL:EXT:lang/locallang_tca.php:doktype.I.2', '255', 'i/recycler.gif')
  185. ),
  186. 'default' => '1',
  187. 'iconsInOptionTags' => 1,
  188. 'noIconsBelowSelect' => 1,
  189. )
  190. ),
  191. 'title' => array(
  192. 'label' => 'LLL:EXT:lang/locallang_tca.php:title',
  193. 'config' => array(
  194. 'type' => 'input',
  195. 'size' => '30',
  196. 'max' => '255',
  197. 'eval' => 'required'
  198. )
  199. ),
  200. 'TSconfig' => array(
  201. 'exclude' => 1,
  202. 'label' => 'TSconfig:',
  203. 'config' => array(
  204. 'type' => 'text',
  205. 'cols' => '40',
  206. 'rows' => '5',
  207. 'wizards' => array(
  208. '_PADDING' => 4,
  209. '0' => array(
  210. 'type' => t3lib_extMgm::isLoaded('tsconfig_help')?'popup':'',
  211. 'title' => 'TSconfig QuickReference',
  212. 'script' => 'wizard_tsconfig.php?mode=page',
  213. 'icon' => 'wizard_tsconfig.gif',
  214. 'JSopenParams' => 'height=500,width=780,status=0,menubar=0,scrollbars=1',
  215. )
  216. ),
  217. 'softref' => 'TSconfig'
  218. ),
  219. 'defaultExtras' => 'fixed-font : enable-tab',
  220. ),
  221. 'php_tree_stop' => array(
  222. 'exclude' => 1,
  223. 'label' => 'LLL:EXT:lang/locallang_tca.php:php_tree_stop',
  224. 'config' => array(
  225. 'type' => 'check'
  226. )
  227. ),
  228. 'is_siteroot' => array(
  229. 'exclude' => 1,
  230. 'label' => 'LLL:EXT:lang/locallang_tca.php:is_siteroot',
  231. 'config' => array(
  232. 'type' => 'check'
  233. )
  234. ),
  235. 'storage_pid' => array(
  236. 'exclude' => 1,
  237. 'label' => 'LLL:EXT:lang/locallang_tca.php:storage_pid',
  238. 'config' => array(
  239. 'type' => 'group',
  240. 'internal_type' => 'db',
  241. 'allowed' => 'pages',
  242. 'size' => '1',
  243. 'maxitems' => '1',
  244. 'minitems' => '0',
  245. 'show_thumbs' => '1',
  246. 'wizards' => array(
  247. 'suggest' => array(
  248. 'type' => 'suggest',
  249. ),
  250. ),
  251. )
  252. ),
  253. 'tx_impexp_origuid' => array('config'=>array('type'=>'passthrough')),
  254. 't3ver_label' => array(
  255. 'label' => 'LLL:EXT:lang/locallang_general.php:LGL.versionLabel',
  256. 'config' => array(
  257. 'type' => 'input',
  258. 'size' => '30',
  259. 'max' => '255',
  260. )
  261. ),
  262. 'editlock' => array(
  263. 'exclude' => 1,
  264. 'label' => 'LLL:EXT:lang/locallang_tca.php:editlock',
  265. 'config' => array(
  266. 'type' => 'check'
  267. )
  268. ),
  269. ),
  270. 'types' => array(
  271. '1' => array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7'),
  272. '254' => array('showitem' => 'doktype, title;LLL:EXT:lang/locallang_general.php:LGL.title, TSconfig;;6;nowrap, storage_pid;;7'),
  273. '255' => array('showitem' => 'doktype, title, TSconfig;;6;nowrap, storage_pid;;7')
  274. ),
  275. 'palettes' => array(
  276. '6' => array('showitem' => 'php_tree_stop, editlock'),
  277. '7' => array('showitem' => 'is_siteroot')
  278. )
  279. );
  280. /**
  281. * Table "be_users":
  282. * Backend Users for TYPO3.
  283. * This is only the 'header' part (ctrl). The full configuration is found in t3lib/stddb/tbl_be.php
  284. */
  285. $TCA['be_users'] = array(
  286. 'ctrl' => array(
  287. 'label' => 'username',
  288. 'tstamp' => 'tstamp',
  289. 'title' => 'LLL:EXT:lang/locallang_tca.php:be_users',
  290. 'crdate' => 'crdate',
  291. 'cruser_id' => 'cruser_id',
  292. 'delete' => 'deleted',
  293. 'adminOnly' => 1, // Only admin users can edit
  294. 'rootLevel' => 1,
  295. 'default_sortby' => 'ORDER BY admin, username',
  296. 'enablecolumns' => array(
  297. 'disabled' => 'disable',
  298. 'starttime' => 'starttime',
  299. 'endtime' => 'endtime'
  300. ),
  301. 'type' => 'admin',
  302. 'typeicon_column' => 'admin',
  303. 'typeicons' => array(
  304. '0' => 'be_users.gif',
  305. '1' => 'be_users_admin.gif'
  306. ),
  307. 'typeicon_classes' => array(
  308. '0' => 'status-user-backend',
  309. '1' => 'status-user-admin',
  310. 'default' => 'status-user-backend',
  311. ),
  312. 'mainpalette' => '1',
  313. 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,options,db_mountpoints,file_mountpoints,fileoper_perms,userMods',
  314. 'dividers2tabs' => true,
  315. 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
  316. 'versioningWS_alwaysAllowLiveEdit' => TRUE
  317. )
  318. );
  319. /**
  320. * Table "be_groups":
  321. * Backend Usergroups for TYPO3.
  322. * This is only the 'header' part (ctrl). The full configuration is found in t3lib/stddb/tbl_be.php
  323. */
  324. $TCA['be_groups'] = array(
  325. 'ctrl' => array(
  326. 'label' => 'title',
  327. 'tstamp' => 'tstamp',
  328. 'crdate' => 'crdate',
  329. 'cruser_id' => 'cruser_id',
  330. 'delete' => 'deleted',
  331. 'default_sortby' => 'ORDER BY title',
  332. 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
  333. 'adminOnly' => 1,
  334. 'rootLevel' => 1,
  335. 'type' => 'inc_access_lists',
  336. 'typeicon_column' => 'inc_access_lists',
  337. 'typeicons' => array(
  338. '1' => 'be_groups_lists.gif'
  339. ),
  340. 'typeicon_classes' => array(
  341. 'default' => 'status-user-group-backend',
  342. ),
  343. 'enablecolumns' => array(
  344. 'disabled' => 'hidden'
  345. ),
  346. 'title' => 'LLL:EXT:lang/locallang_tca.php:be_groups',
  347. 'useColumnsForDefaultValues' => 'lockToDomain, fileoper_perms',
  348. 'dividers2tabs' => true,
  349. 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
  350. 'versioningWS_alwaysAllowLiveEdit' => TRUE
  351. )
  352. );
  353. /**
  354. * Table "sys_filemounts":
  355. * Defines filepaths on the server which can be mounted for users so they can upload and manage files online by eg. the Filelist module
  356. * This is only the 'header' part (ctrl). The full configuration is found in t3lib/stddb/tbl_be.php
  357. */
  358. $TCA['sys_filemounts'] = array(
  359. 'ctrl' => array(
  360. 'label' => 'title',
  361. 'tstamp' => 'tstamp',
  362. 'sortby' => 'sorting',
  363. 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.php:LGL.prependAtCopy',
  364. 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_filemounts',
  365. 'adminOnly' => 1,
  366. 'rootLevel' => 1,
  367. 'delete' => 'deleted',
  368. 'enablecolumns' => array(
  369. 'disabled' => 'hidden'
  370. ),
  371. 'iconfile' => '_icon_ftp.gif',
  372. 'useColumnsForDefaultValues' => 'path,base',
  373. 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
  374. 'versioningWS_alwaysAllowLiveEdit' => TRUE
  375. )
  376. );
  377. /**
  378. * Table "sys_languages":
  379. * Defines possible languages used for translation of records in the system
  380. * This is only the 'header' part (ctrl). The full configuration is found in t3lib/stddb/tbl_be.php
  381. */
  382. $TCA['sys_language'] = array(
  383. 'ctrl' => array(
  384. 'label' => 'title',
  385. 'tstamp' => 'tstamp',
  386. 'default_sortby' => 'ORDER BY title',
  387. 'title' => 'LLL:EXT:lang/locallang_tca.php:sys_language',
  388. 'adminOnly' => 1,
  389. 'rootLevel' => 1,
  390. 'enablecolumns' => array(
  391. 'disabled' => 'hidden'
  392. ),
  393. 'typeicon_classes' => array(
  394. 'default' => 'mimetypes-x-sys_language',
  395. ),
  396. 'dynamicConfigFile' => 'T3LIB:tbl_be.php',
  397. 'versioningWS_alwaysAllowLiveEdit' => TRUE
  398. )
  399. );
  400. /**
  401. * $TBE_MODULES contains the structure of the backend modules as they are arranged in main- and sub-modules.
  402. * Every entry in this array represents a menu item on either first (key) or second level (value from list) in the left menu in the TYPO3 backend
  403. * For information about adding modules to TYPO3 you should consult the documentation found in "Inside TYPO3"
  404. */
  405. $TBE_MODULES = array(
  406. 'web' => 'list,info,perm,func',
  407. 'file' => 'list',
  408. 'user' => 'ws',
  409. 'tools' => 'em',
  410. 'help' => 'about,cshmanual'
  411. );
  412. /**
  413. * $TBE_STYLES configures backend styles and colors; Basically this contains all the values that can be used to create new skins for TYPO3.
  414. * For information about making skins to TYPO3 you should consult the documentation found in "Inside TYPO3"
  415. */
  416. $TBE_STYLES = array(
  417. 'colorschemes' => array(
  418. '0' => '#E4E0DB,#CBC7C3,#EDE9E5',
  419. ),
  420. 'borderschemes' => array(
  421. '0' => array('border:solid 1px black;',5)
  422. )
  423. );
  424. /**
  425. * Setting up $TCA_DESCR - Context Sensitive Help (CSH)
  426. * For information about using the CSH API in TYPO3 you should consult the documentation found in "Inside TYPO3"
  427. */
  428. t3lib_extMgm::addLLrefForTCAdescr('pages','EXT:lang/locallang_csh_pages.xml');
  429. t3lib_extMgm::addLLrefForTCAdescr('be_users','EXT:lang/locallang_csh_be_users.xml');
  430. t3lib_extMgm::addLLrefForTCAdescr('be_groups','EXT:lang/locallang_csh_be_groups.xml');
  431. t3lib_extMgm::addLLrefForTCAdescr('sys_filemounts','EXT:lang/locallang_csh_sysfilem.xml');
  432. t3lib_extMgm::addLLrefForTCAdescr('sys_language','EXT:lang/locallang_csh_syslang.xml');
  433. t3lib_extMgm::addLLrefForTCAdescr('sys_workspace','EXT:lang/locallang_csh_sysws.xml');
  434. t3lib_extMgm::addLLrefForTCAdescr('xMOD_csh_corebe','EXT:lang/locallang_csh_corebe.xml'); // General Core
  435. t3lib_extMgm::addLLrefForTCAdescr('_MOD_tools_em','EXT:lang/locallang_csh_em.xml'); // Extension manager
  436. t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info','EXT:lang/locallang_csh_web_info.xml'); // Web > Info
  437. t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func','EXT:lang/locallang_csh_web_func.xml'); // Web > Func
  438. /**
  439. * $FILEICONS defines icons for the various file-formats
  440. */
  441. $FILEICONS = array(
  442. 'txt' => 'txt.gif',
  443. 'pdf' => 'pdf.gif',
  444. 'doc' => 'doc.gif',
  445. 'ai' => 'ai.gif',
  446. 'bmp' => 'bmp.gif',
  447. 'tif' => 'tif.gif',
  448. 'htm' => 'htm.gif',
  449. 'html' => 'html.gif',
  450. 'pcd' => 'pcd.gif',
  451. 'gif' => 'gif.gif',
  452. 'jpg' => 'jpg.gif',
  453. 'jpeg' => 'jpg.gif',
  454. 'mpg' => 'mpg.gif',
  455. 'mpeg' => 'mpeg.gif',
  456. 'exe' => 'exe.gif',
  457. 'com' => 'exe.gif',
  458. 'zip' => 'zip.gif',
  459. 'tgz' => 'zip.gif',
  460. 'gz' => 'zip.gif',
  461. 'php3' => 'php3.gif',
  462. 'php4' => 'php3.gif',
  463. 'php5' => 'php3.gif',
  464. 'php6' => 'php3.gif',
  465. 'php' => 'php3.gif',
  466. 'ppt' => 'ppt.gif',
  467. 'ttf' => 'ttf.gif',
  468. 'pcx' => 'pcx.gif',
  469. 'png' => 'png.gif',
  470. 'tga' => 'tga.gif',
  471. 'class' => 'java.gif',
  472. 'sxc' => 'sxc.gif',
  473. 'sxw' => 'sxw.gif',
  474. 'xls' => 'xls.gif',
  475. 'swf' => 'swf.gif',
  476. 'swa' => 'flash.gif',
  477. 'dcr' => 'flash.gif',
  478. 'wav' => 'wav.gif',
  479. 'mp3' => 'mp3.gif',
  480. 'avi' => 'avi.gif',
  481. 'au' => 'au.gif',
  482. 'mov' => 'mov.gif',
  483. '3ds' => '3ds.gif',
  484. 'csv' => 'csv.gif',
  485. 'ico' => 'ico.gif',
  486. 'max' => 'max.gif',
  487. 'ps' => 'ps.gif',
  488. 'tmpl' => 'tmpl.gif',
  489. 'xls' => 'xls.gif',
  490. 'fh3' => 'fh3.gif',
  491. 'inc' => 'inc.gif',
  492. 'mid' => 'mid.gif',
  493. 'psd' => 'psd.gif',
  494. 'xml' => 'xml.gif',
  495. 'rtf' => 'rtf.gif',
  496. 't3x' => 't3x.gif',
  497. 't3d' => 't3d.gif',
  498. 'cdr' => 'cdr.gif',
  499. 'dtd' => 'dtd.gif',
  500. 'sgml' => 'sgml.gif',
  501. 'ani' => 'ani.gif',
  502. 'css' => 'css.gif',
  503. 'eps' => 'eps.gif',
  504. 'js' => 'js.gif',
  505. 'wrl' => 'wrl.gif',
  506. 'default' => 'default.gif'
  507. );
  508. /**
  509. * backend sprite icon-names
  510. */
  511. $GLOBALS['TBE_STYLES']['spriteIconApi']['coreSpriteImageNames'] = array(
  512. 'actions-document-close',
  513. 'actions-document-duplicates-select',
  514. 'actions-document-edit-access',
  515. 'actions-document-export-csv',
  516. 'actions-document-export-t3d',
  517. 'actions-document-history-open',
  518. 'actions-document-import-t3d',
  519. 'actions-document-info',
  520. 'actions-document-localize',
  521. 'actions-document-move',
  522. 'actions-document-new',
  523. 'actions-document-open',
  524. 'actions-document-open-read-only',
  525. 'actions-document-paste-after',
  526. 'actions-document-paste-into',
  527. 'actions-document-save',
  528. 'actions-document-save-close',
  529. 'actions-document-save-new',
  530. 'actions-document-save-view',
  531. 'actions-document-select',
  532. 'actions-document-view',
  533. 'actions-edit-add',
  534. 'actions-edit-copy',
  535. 'actions-edit-copy-release',
  536. 'actions-edit-cut',
  537. 'actions-edit-cut-release',
  538. 'actions-edit-delete',
  539. 'actions-edit-hide',
  540. 'actions-edit-insert-default',
  541. 'actions-edit-localize-status-high',
  542. 'actions-edit-localize-status-low',
  543. 'actions-edit-pick-date',
  544. 'actions-edit-rename',
  545. 'actions-edit-restore',
  546. 'actions-edit-undelete-edit',
  547. 'actions-edit-undo',
  548. 'actions-edit-unhide',
  549. 'actions-edit-upload',
  550. 'actions-insert-record',
  551. 'actions-insert-reference',
  552. 'actions-move-down',
  553. 'actions-move-left',
  554. 'actions-move-move',
  555. 'actions-move-right',
  556. 'actions-move-to-bottom',
  557. 'actions-move-to-top',
  558. 'actions-move-up',
  559. 'actions-page-move',
  560. 'actions-page-new',
  561. 'actions-page-open',
  562. 'actions-selection-delete',
  563. 'actions-system-backend-user-emulate',
  564. 'actions-system-backend-user-switch',
  565. 'actions-system-cache-clear',
  566. 'actions-system-cache-clear-impact-high',
  567. 'actions-system-cache-clear-impact-low',
  568. 'actions-system-cache-clear-impact-medium',
  569. 'actions-system-cache-clear-rte',
  570. 'actions-system-extension-documentation',
  571. 'actions-system-extension-download',
  572. 'actions-system-extension-import',
  573. 'actions-system-extension-install',
  574. 'actions-system-extension-uninstall',
  575. 'actions-system-extension-update',
  576. 'actions-system-help-open',
  577. 'actions-system-list-open',
  578. 'actions-system-options-view',
  579. 'actions-system-refresh',
  580. 'actions-system-shortcut-new',
  581. 'actions-system-tree-search-open',
  582. 'actions-system-typoscript-documentation',
  583. 'actions-system-typoscript-documentation-open',
  584. 'actions-template-new',
  585. 'actions-version-document-remove',
  586. 'actions-version-page-open',
  587. 'actions-version-swap-version',
  588. 'actions-version-swap-workspace',
  589. 'actions-view-go-back',
  590. 'actions-view-go-down',
  591. 'actions-view-go-forward',
  592. 'actions-view-go-up',
  593. 'actions-view-list-collapse',
  594. 'actions-view-list-expand',
  595. 'actions-view-paging-first',
  596. 'actions-view-paging-first-disabled',
  597. 'actions-view-paging-last',
  598. 'actions-view-paging-last-disabled',
  599. 'actions-view-paging-next',
  600. 'actions-view-paging-next-disabled',
  601. 'actions-view-paging-previous',
  602. 'actions-view-paging-previous-disabled',
  603. 'actions-view-table-collapse',
  604. 'actions-view-table-expand',
  605. 'actions-window-open',
  606. 'apps-clipboard-images',
  607. 'apps-clipboard-list',
  608. 'apps-filetree-folder-add',
  609. 'apps-filetree-folder-default',
  610. 'apps-filetree-folder-list',
  611. 'apps-filetree-folder-locked',
  612. 'apps-filetree-folder-media',
  613. 'apps-filetree-folder-news',
  614. 'apps-filetree-folder-temp',
  615. 'apps-filetree-folder-user',
  616. 'apps-filetree-mount',
  617. 'apps-filetree-root',
  618. 'apps-pagetree-backend-user',
  619. 'apps-pagetree-backend-user-hideinmenu',
  620. 'apps-pagetree-drag-move-between',
  621. 'apps-pagetree-drag-move-into',
  622. 'apps-pagetree-drag-new-between',
  623. 'apps-pagetree-drag-new-inside',
  624. 'apps-pagetree-drag-place-denied',
  625. 'apps-pagetree-folder-contains-approve',
  626. 'apps-pagetree-folder-contains-board',
  627. 'apps-pagetree-folder-contains-fe_users',
  628. 'apps-pagetree-folder-contains-news',
  629. 'apps-pagetree-folder-contains-shop',
  630. 'apps-pagetree-folder-default',
  631. 'apps-pagetree-page-advanced',
  632. 'apps-pagetree-page-advanced-hideinmenu',
  633. 'apps-pagetree-page-advanced-root',
  634. 'apps-pagetree-page-backend-users',
  635. 'apps-pagetree-page-backend-users-hideinmenu',
  636. 'apps-pagetree-page-backend-users-root',
  637. 'apps-pagetree-page-default',
  638. 'apps-pagetree-page-domain',
  639. 'apps-pagetree-page-frontend-user',
  640. 'apps-pagetree-page-frontend-user-hideinmenu',
  641. 'apps-pagetree-page-frontend-user-root',
  642. 'apps-pagetree-page-frontend-users',
  643. 'apps-pagetree-page-frontend-users-hideinmenu',
  644. 'apps-pagetree-page-frontend-users-root',
  645. 'apps-pagetree-page-mountpoint',
  646. 'apps-pagetree-page-mountpoint-hideinmenu',
  647. 'apps-pagetree-page-mountpoint-root',
  648. 'apps-pagetree-page-no-icon-found',
  649. 'apps-pagetree-page-no-icon-found-hideinmenu',
  650. 'apps-pagetree-page-no-icon-found-root',
  651. 'apps-pagetree-page-not-in-menu',
  652. 'apps-pagetree-page-recycler',
  653. 'apps-pagetree-page-shortcut',
  654. 'apps-pagetree-page-shortcut-external',
  655. 'apps-pagetree-page-shortcut-external-hideinmenu',
  656. 'apps-pagetree-page-shortcut-external-root',
  657. 'apps-pagetree-page-shortcut-hideinmenu',
  658. 'apps-pagetree-page-shortcut-root',
  659. 'apps-pagetree-root',
  660. 'apps-pagetree-spacer',
  661. 'apps-toolbar-menu-actions',
  662. 'apps-toolbar-menu-cache',
  663. 'apps-toolbar-menu-opendocs',
  664. 'apps-toolbar-menu-search',
  665. 'apps-toolbar-menu-shortcut',
  666. 'apps-toolbar-menu-workspace',
  667. 'mimetypes-compressed',
  668. 'mimetypes-excel',
  669. 'mimetypes-media-audio',
  670. 'mimetypes-media-flash',
  671. 'mimetypes-media-image',
  672. 'mimetypes-media-video',
  673. 'mimetypes-other-other',
  674. 'mimetypes-pdf',
  675. 'mimetypes-powerpoint',
  676. 'mimetypes-text-css',
  677. 'mimetypes-text-csv',
  678. 'mimetypes-text-html',
  679. 'mimetypes-text-js',
  680. 'mimetypes-text-php',
  681. 'mimetypes-text-text',
  682. 'mimetypes-x-content-divider',
  683. 'mimetypes-x-content-domain',
  684. 'mimetypes-x-content-form',
  685. 'mimetypes-x-content-form-search',
  686. 'mimetypes-x-content-header',
  687. 'mimetypes-x-content-html',
  688. 'mimetypes-x-content-image',
  689. 'mimetypes-x-content-link',
  690. 'mimetypes-x-content-list-bullets',
  691. 'mimetypes-x-content-list-files',
  692. 'mimetypes-x-content-login',
  693. 'mimetypes-x-content-menu',
  694. 'mimetypes-x-content-multimedia',
  695. 'mimetypes-x-content-page-language-overlay',
  696. 'mimetypes-x-content-plugin',
  697. 'mimetypes-x-content-script',
  698. 'mimetypes-x-content-table',
  699. 'mimetypes-x-content-template',
  700. 'mimetypes-x-content-template-extension',
  701. 'mimetypes-x-content-template-static',
  702. 'mimetypes-x-content-text',
  703. 'mimetypes-x-content-text-picture',
  704. 'mimetypes-x-sys_action',
  705. 'mimetypes-x-sys_language',
  706. 'mimetypes-x-sys_workspace',
  707. 'places-folder-closed',
  708. 'places-folder-opened',
  709. 'status-dialog-error',
  710. 'status-dialog-information',
  711. 'status-dialog-notification',
  712. 'status-dialog-ok',
  713. 'status-dialog-warning',
  714. 'status-overlay-access-restricted',
  715. 'status-overlay-deleted',
  716. 'status-overlay-hidden',
  717. 'status-overlay-icon-missing',
  718. 'status-overlay-includes-subpages',
  719. 'status-overlay-locked',
  720. 'status-overlay-scheduled',
  721. 'status-overlay-scheduled-future-end',
  722. 'status-overlay-translated',
  723. 'status-status-checked',
  724. 'status-status-current',
  725. 'status-status-edit-read-only',
  726. 'status-status-icon-missing',
  727. 'status-status-locked',
  728. 'status-status-permission-denied',
  729. 'status-status-permission-granted',
  730. 'status-status-reference-hard',
  731. 'status-status-reference-soft',
  732. 'status-status-workspace-draft',
  733. 'status-system-extension-required',
  734. 'status-user-admin',
  735. 'status-user-backend',
  736. 'status-user-frontend',
  737. 'status-user-group-backend',
  738. 'status-user-group-frontend',
  739. 'status-version-1',
  740. 'status-version-10',
  741. 'status-version-11',
  742. 'status-version-12',
  743. 'status-version-13',
  744. 'status-version-14',
  745. 'status-version-15',
  746. 'status-version-16',
  747. 'status-version-17',
  748. 'status-version-18',
  749. 'status-version-19',
  750. 'status-version-2',
  751. 'status-version-20',
  752. 'status-version-21',
  753. 'status-version-22',
  754. 'status-version-23',
  755. 'status-version-24',
  756. 'status-version-25',
  757. 'status-version-26',
  758. 'status-version-27',
  759. 'status-version-28',
  760. 'status-version-29',
  761. 'status-version-3',
  762. 'status-version-30',
  763. 'status-version-31',
  764. 'status-version-32',
  765. 'status-version-33',
  766. 'status-version-34',
  767. 'status-version-35',
  768. 'status-version-36',
  769. 'status-version-37',
  770. 'status-version-38',
  771. 'status-version-39',
  772. 'status-version-4',
  773. 'status-version-40',
  774. 'status-version-41',
  775. 'status-version-42',
  776. 'status-version-43',
  777. 'status-version-44',
  778. 'status-version-45',
  779. 'status-version-46',
  780. 'status-version-47',
  781. 'status-version-48',
  782. 'status-version-49',
  783. 'status-version-5',
  784. 'status-version-50',
  785. 'status-version-6',
  786. 'status-version-7',
  787. 'status-version-8',
  788. 'status-version-9',
  789. 'status-version-no-version',
  790. 'status-warning-in-use',
  791. 'status-warning-lock'
  792. );
  793. $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayPriorities'] = array('hidden', 'starttime', 'endtime', 'futureendtime', 'fe_group', 'protectedSection');
  794. $GLOBALS['TBE_STYLES']['spriteIconApi']['spriteIconRecordOverlayNames'] = array(
  795. 'hidden' => 'status-overlay-hidden',
  796. 'fe_group' => 'status-overlay-access-restricted',
  797. 'starttime' => 'status-overlay-scheduled',
  798. 'endtime' => 'status-overlay-scheduled',
  799. 'futureendtime' => 'status-overlay-scheduled-future-end',
  800. 'readonly' => 'status-overlay-locked',
  801. 'deleted' => 'status-overlay-deleted',
  802. 'missing' => 'status-overlay-missing',
  803. 'translated' => 'status-overlay-translated',
  804. 'protectedSection' => 'status-overlay-includes-subpages',
  805. );
  806. ?>