[TASK] Table Mapping for File Model
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / ext_typoscript_setup.txt
1 config.tx_extbase {
2         objects {
3                 TYPO3\CMS\Extbase\Persistence\QueryInterface {
4                         className = TYPO3\CMS\Extbase\Persistence\Generic\Query
5                 }
6                 TYPO3\CMS\Extbase\Persistence\QueryResultInterface {
7                         className = TYPO3\CMS\Extbase\Persistence\Generic\QueryResult
8                 }
9                 TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface {
10                         className = TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager
11                 }
12                 TYPO3\CMS\Extbase\Persistence\Generic\Storage\BackendInterface {
13                         className = TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbBackend
14                 }
15                 TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface {
16                         className = TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings
17                 }
18         }
19         mvc {
20                 requestHandlers {
21                         TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler = TYPO3\CMS\Extbase\Mvc\Web\FrontendRequestHandler
22                         TYPO3\CMS\Extbase\Mvc\Web\BackendRequestHandler = TYPO3\CMS\Extbase\Mvc\Web\BackendRequestHandler
23                         TYPO3\CMS\Extbase\Mvc\Cli\RequestHandler = TYPO3\CMS\Extbase\Mvc\Cli\RequestHandler
24                 }
25                 throwPageNotFoundExceptionIfActionCantBeResolved = 0
26         }
27         persistence{
28                 enableAutomaticCacheClearing = 1
29                 updateReferenceIndex = 0
30                 classes {
31                         TYPO3\CMS\Extbase\Domain\Model\FileMount {
32                                 mapping {
33                                         tableName = sys_filemounts
34                                         columns {
35                                                 title.mapOnProperty = title
36                                                 path.mapOnProperty = path
37                                                 base.mapOnProperty = isAbsolutePath
38                                         }
39                                 }
40                         }
41                         TYPO3\CMS\Extbase\Domain\Model\FileReference {
42                                 mapping {
43                                         tableName = sys_file_reference
44                                 }
45                         }
46                         TYPO3\CMS\Extbase\Domain\Model\File {
47                                 mapping {
48                                         tableName = sys_file
49                                 }
50                         }
51                         TYPO3\CMS\Extbase\Domain\Model\BackendUser {
52                                 mapping {
53                                         tableName = be_users
54                                         columns {
55                                                 username.mapOnProperty = userName
56                                                 admin.mapOnProperty = isAdministrator
57                                                 usergroup.mapOnProperty = backendUserGroups
58                                                 disable.mapOnProperty = isDisabled
59                                                 realName.mapOnProperty = realName
60                                                 starttime.mapOnProperty = startDateAndTime
61                                                 endtime.mapOnProperty = endDateAndTime
62                                                 disableIPlock.mapOnProperty = ipLockIsDisabled
63                                                 lastlogin.mapOnProperty = lastLoginDateAndTime
64                                                 file_mountpoints.mapOnProperty = fileMounts
65                                         }
66                                 }
67                         }
68                         TYPO3\CMS\Extbase\Domain\Model\BackendUserGroup {
69                                 mapping {
70                                         tableName = be_groups
71                                         columns {
72                                                 subgroup.mapOnProperty = subGroups
73                                                 groupMods.mapOnProperty = modules
74                                                 tables_select.mapOnProperty = tablesListening
75                                                 tables_modify.mapOnProperty = tablesModify
76                                                 pagetypes_select.mapOnProperty = pageTypes
77                                                 non_exclude_fields.mapOnProperty = allowedExcludeFields
78                                                 explicit_allowdeny.mapOnProperty = explicitlyAllowAndDeny
79                                                 allowed_languages.mapOnProperty = allowedLanguages
80                                                 workspace_perms.mapOnProperty = workspacePermission
81                                                 db_mountpoints.mapOnProperty = databaseMounts
82                                                 fileoper_perms.mapOnProperty = fileOperationPermissions
83                                                 lockToDomain.mapOnProperty = lockToDomain
84                                                 hide_in_lists.mapOnProperty = hideInList
85                                                 TSconfig.mapOnProperty = tsConfig
86                                         }
87                                 }
88                         }
89                         TYPO3\CMS\Extbase\Domain\Model\FrontendUser {
90                                 mapping {
91                                         tableName = fe_users
92                                         columns {
93                                                 lockToDomain.mapOnProperty = lockToDomain
94                                         }
95                                 }
96                         }
97                         TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup {
98                                 mapping {
99                                         tableName = fe_groups
100                                         columns {
101                                                 lockToDomain.mapOnProperty = lockToDomain
102                                         }
103                                 }
104                         }
105                         TYPO3\CMS\Extbase\Domain\Model\Category {
106                                 mapping {
107                                         tableName = sys_category
108                                 }
109                         }
110                 }
111         }
112         features {
113                  # this enables/disables the reworked property mapper (see http://forge.typo3.org/projects/typo3v4-mvc/wiki/PropertyMapper_rework)
114                 rewrittenPropertyMapper = 1
115                  # if enabled, default controller and/or action is skipped when creating URIs through the URI Builder (see http://forge.typo3.org/projects/typo3v4-mvc/wiki/Skip_default_arguments_in_URIs)
116                 skipDefaultArguments = 0
117                 # if set to 1, the enable fields are ignored in BE context
118                 ignoreAllEnableFieldsInBe = 0
119         }
120 }