[!!!][FEATURE] FormEngine element level refactoring
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Configuration / Backend / Routes.php
1 <?php
2 use TYPO3\CMS\Backend\Controller;
3
4 /**
5 * Definitions for routes provided by EXT:backend
6 * Contains all "regular" routes for entry points
7 *
8 * Please note that this setup is preliminary until all core use-cases are set up here.
9 * Especially some more properties regarding modules will be added until TYPO3 CMS 7 LTS, and might change.
10 *
11 * Currently the "access" property is only used so no token creation + validation is made,
12 * but will be extended further.
13 */
14 return [
15 // Login screen of the TYPO3 Backend
16 'login' => [
17 'path' => '/login',
18 'access' => 'public',
19 'target' => Controller\LoginController::class . '::formAction'
20 ],
21
22 // Main backend rendering setup (previously called backend.php) for the TYPO3 Backend
23 'main' => [
24 'path' => '/main',
25 'target' => Controller\BackendController::class . '::mainAction'
26 ],
27
28 // Logout script for the TYPO3 Backend
29 'logout' => [
30 'path' => '/logout',
31 'target' => Controller\LogoutController::class . '::logoutAction'
32 ],
33
34 // Register login frameset
35 'login_frameset' => [
36 'path' => '/login/frame',
37 'target' => Controller\LoginFramesetController::class . '::mainAction'
38 ],
39
40 /** Wizards */
41 // Register colorpicker wizard
42 // @deprecated since TYPO3 v8, will be removed in TYPO3 v9.
43 'wizard_colorpicker' => [
44 'path' => '/wizard/colorpicker',
45 'target' => Controller\Wizard\ColorpickerController::class . '::mainAction'
46 ],
47
48 // Register table wizard
49 'wizard_table' => [
50 'path' => '/wizard/table',
51 'target' => Controller\Wizard\TableController::class . '::mainAction'
52 ],
53
54 // Register add wizard
55 'wizard_add' => [
56 'path' => '/wizard/add',
57 'target' => Controller\Wizard\AddController::class . '::mainAction'
58 ],
59
60 // Register list wizard
61 'wizard_list' => [
62 'path' => '/wizard/list',
63 'target' => Controller\Wizard\ListController::class . '::mainAction'
64 ],
65
66 // Register edit wizard
67 'wizard_edit' => [
68 'path' => '/wizard/edit',
69 'target' => Controller\Wizard\EditController::class . '::mainAction'
70 ],
71
72 // Register link wizard
73 'wizard_link' => [
74 'path' => '/wizard/link/browse',
75 'target' => \TYPO3\CMS\Backend\Controller\LinkBrowserController::class . '::mainAction'
76 ],
77
78 /** File- and folder-related routes */
79
80 // File navigation tree
81 'file_navframe' => [
82 'path' => '/folder/tree',
83 'target' => Controller\FileSystemNavigationFrameController::class . '::mainAction'
84 ],
85
86 // Editing the contents of a file
87 'file_edit' => [
88 'path' => '/file/editcontent',
89 'target' => Controller\File\EditFileController::class . '::mainAction'
90 ],
91
92 // Create a new folder
93 'file_newfolder' => [
94 'path' => '/file/new',
95 'target' => Controller\File\CreateFolderController::class . '::mainAction'
96 ],
97
98 // Rename a file
99 'file_rename' => [
100 'path' => '/file/rename',
101 'target' => Controller\File\RenameFileController::class . '::mainAction'
102 ],
103
104 // Replace a file with a different one
105 'file_replace' => [
106 'path' => '/file/replace',
107 'target' => Controller\File\ReplaceFileController::class . '::mainAction'
108 ],
109
110 // Upload new files
111 'file_upload' => [
112 'path' => '/file/upload',
113 'target' => Controller\File\FileUploadController::class . '::mainAction'
114 ],
115
116 // Add new online media
117 'online_media' => [
118 'path' => '/online-media',
119 'target' => Controller\OnlineMediaController::class . '::mainAction'
120 ],
121
122 /** DB Records-related routes */
123 // Register record history module
124 'record_history' => [
125 'path' => '/record/history',
126 'target' => Controller\ContentElement\ElementHistoryController::class . '::mainAction'
127 ],
128
129 // Register new record
130 'db_new' => [
131 'path' => '/record/new',
132 'target' => Controller\NewRecordController::class . '::mainAction'
133 ],
134
135 // Register new content element module
136 'new_content_element' => [
137 'path' => '/record/content/new',
138 'target' => Controller\ContentElement\NewContentElementController::class . '::mainAction'
139 ],
140
141 // Register move element module
142 'move_element' => [
143 'path' => '/record/move',
144 'target' => Controller\ContentElement\MoveElementController::class . '::mainAction'
145 ],
146
147 // Register show item module
148 'show_item' => [
149 'path' => '/record/info',
150 'target' => Controller\ContentElement\ElementInformationController::class . '::mainAction'
151 ],
152
153 // Register browser
154 'browser' => [
155 'path' => '/record/browse',
156 'target' => \TYPO3\CMS\Recordlist\Controller\ElementBrowserFramesetController::class . '::mainAction'
157 ],
158
159 // Dummy document - displays nothing but background color.
160 'dummy' => [
161 'path' => '/empty',
162 'target' => Controller\DummyController::class . '::mainAction'
163 ],
164
165 /** TYPO3 Core Engine-related routes */
166 /**
167 * TCE gateway (TYPO3 Core Engine) for database handling
168 * This script is a gateway for POST forms to \TYPO3\CMS\Core\DataHandling\DataHandler
169 * that manipulates all information in the database!!
170 * For syntax and API information, see the document 'TYPO3 Core APIs'
171 */
172 'tce_db' => [
173 'path' => '/record/commit',
174 'target' => Controller\SimpleDataHandlerController::class . '::mainAction'
175 ],
176
177 /**
178 * Gateway for TCE (TYPO3 Core Engine) file-handling through POST forms.
179 * This script serves as the fileadministration part of the TYPO3 Core Engine.
180 * Basically it includes two libraries which are used to manipulate files on the server.
181 *
182 * For syntax and API information, see the document 'TYPO3 Core APIs'
183 */
184 'tce_file' => [
185 'path' => '/file/commit',
186 'target' => Controller\File\FileController::class . '::mainAction'
187 ],
188
189 /**
190 * Main form rendering script
191 * By sending certain parameters to this script you can bring up a form
192 * which allows the user to edit the content of one or more database records.
193 */
194 'record_edit' => [
195 'path' => '/record/edit',
196 'target' => Controller\EditDocumentController::class . '::mainAction'
197 ]
198 ];