[TASK] EXT:impexp Uniform extension directory structure 02/41702/3
authorMichael Oehlhof <typo3@oehlhof.de>
Sun, 19 Jul 2015 10:21:51 +0000 (12:21 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Mon, 20 Jul 2015 14:28:30 +0000 (16:28 +0200)
Moved the code from the app directory to the Modules/ImportExport directory.

Resolves: #68355
Releases: master
Change-Id: Ia27b855ef9c3fe61b4376145b4694ff3e9f3a0bc
Reviewed-on: http://review.typo3.org/41702
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/impexp/Modules/ImportExport/conf.php [new file with mode: 0644]
typo3/sysext/impexp/Modules/ImportExport/index.php [new file with mode: 0644]
typo3/sysext/impexp/app/conf.php [deleted file]
typo3/sysext/impexp/app/index.php [deleted file]
typo3/sysext/impexp/ext_tables.php

diff --git a/typo3/sysext/impexp/Modules/ImportExport/conf.php b/typo3/sysext/impexp/Modules/ImportExport/conf.php
new file mode 100644 (file)
index 0000000..1e23e7f
--- /dev/null
@@ -0,0 +1,3 @@
+<?php
+$MCONF['name'] = 'xMOD_tximpexp';
+$MCONF['script'] = '_DISPATCH';
diff --git a/typo3/sysext/impexp/Modules/ImportExport/index.php b/typo3/sysext/impexp/Modules/ImportExport/index.php
new file mode 100644 (file)
index 0000000..5663d16
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
+/**
+ * IMPORTING DATA:
+ *
+ * Incoming array has syntax:
+ * GETvar 'id' = import page id (must be readable)
+ *
+ * file =      (pointing to filename relative to PATH_site)
+ *
+ *
+ *
+ * [all relation fields are clear, but not files]
+ * - page-tree is written first
+ * - then remaining pages (to the root of import)
+ * - 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)
+ * - then all internal relations are set and non-existing relations removed, relations to static tables preserved.
+ *
+ * EXPORTING DATA:
+ *
+ * Incoming array has syntax:
+ *
+ * file[] = file
+ * dir[] = dir
+ * list[] = table:pid
+ * record[] = table:uid
+ *
+ * pagetree[id] = (single id)
+ * pagetree[levels]=1,2,3, -1 = currently unpacked tree, -2 = only tables on page
+ * pagetree[tables][]=table/_ALL
+ *
+ * external_ref[tables][]=table/_ALL
+ */
+
+$GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Impexp\Controller\ImportExportController::class);
+$GLOBALS['SOBE']->init();
+$GLOBALS['SOBE']->main();
+$GLOBALS['SOBE']->printContent();
diff --git a/typo3/sysext/impexp/app/conf.php b/typo3/sysext/impexp/app/conf.php
deleted file mode 100644 (file)
index dbe03fe..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-$BACK_PATH = '../../../';
-$MCONF['name'] = 'xMOD_tximpexp';
-$MCONF['script'] = '_DISPATCH';
diff --git a/typo3/sysext/impexp/app/index.php b/typo3/sysext/impexp/app/index.php
deleted file mode 100644 (file)
index 5663d16..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/*
- * This file is part of the TYPO3 CMS project.
- *
- * It is free software; you can redistribute it and/or modify it under
- * the terms of the GNU General Public License, either version 2
- * of the License, or any later version.
- *
- * For the full copyright and license information, please read the
- * LICENSE.txt file that was distributed with this source code.
- *
- * The TYPO3 project - inspiring people to share!
- */
-
-/**
- * IMPORTING DATA:
- *
- * Incoming array has syntax:
- * GETvar 'id' = import page id (must be readable)
- *
- * file =      (pointing to filename relative to PATH_site)
- *
- *
- *
- * [all relation fields are clear, but not files]
- * - page-tree is written first
- * - then remaining pages (to the root of import)
- * - 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)
- * - then all internal relations are set and non-existing relations removed, relations to static tables preserved.
- *
- * EXPORTING DATA:
- *
- * Incoming array has syntax:
- *
- * file[] = file
- * dir[] = dir
- * list[] = table:pid
- * record[] = table:uid
- *
- * pagetree[id] = (single id)
- * pagetree[levels]=1,2,3, -1 = currently unpacked tree, -2 = only tables on page
- * pagetree[tables][]=table/_ALL
- *
- * external_ref[tables][]=table/_ALL
- */
-
-$GLOBALS['SOBE'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Impexp\Controller\ImportExportController::class);
-$GLOBALS['SOBE']->init();
-$GLOBALS['SOBE']->main();
-$GLOBALS['SOBE']->printContent();
index cc6e4cf..4d2f0da 100644 (file)
@@ -49,5 +49,5 @@ if (TYPO3_MODE === 'BE') {
                        }
                }
        ';
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('xMOD_tximpexp', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'app/');
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('xMOD_tximpexp', 'EXT:impexp/Modules/ImportExport/');
 }