5663d16f87c05039df4b15499f53065cf4c0db1a
[Packages/TYPO3.CMS.git] / typo3 / sysext / impexp / app / index.php
1 <?php
2 /*
3 * This file is part of the TYPO3 CMS project.
4 *
5 * It is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License, either version 2
7 * of the License, or any later version.
8 *
9 * For the full copyright and license information, please read the
10 * LICENSE.txt file that was distributed with this source code.
11 *
12 * The TYPO3 project - inspiring people to share!
13 */
14
15 /**
16 * IMPORTING DATA:
17 *
18 * Incoming array has syntax:
19 * GETvar 'id' = import page id (must be readable)
20 *
21 * file = (pointing to filename relative to PATH_site)
22 *
23 *
24 *
25 * [all relation fields are clear, but not files]
26 * - page-tree is written first
27 * - then remaining pages (to the root of import)
28 * - then all other records are written either to related included pages or if not found to import-root (should be a sysFolder in most cases)
29 * - then all internal relations are set and non-existing relations removed, relations to static tables preserved.
30 *
31 * EXPORTING DATA:
32 *
33 * Incoming array has syntax:
34 *
35 * file[] = file
36 * dir[] = dir
37 * list[] = table:pid
38 * record[] = table:uid
39 *
40 * pagetree[id] = (single id)
41 * pagetree[levels]=1,2,3, -1 = currently unpacked tree, -2 = only tables on page
42 * pagetree[tables][]=table/_ALL
43 *
44 * external_ref[tables][]=table/_ALL
45 */
46
47 $GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Impexp\Controller\ImportExportController::class);
48 $GLOBALS['SOBE']->init();
49 $GLOBALS['SOBE']->main();
50 $GLOBALS['SOBE']->printContent();