[BUGFIX] Properly access table TCA 'ctrl' section in getPrioritizedFieldNames 81/57781/6
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Thu, 2 Aug 2018 16:07:07 +0000 (18:07 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 3 Aug 2018 15:21:40 +0000 (17:21 +0200)
A part with table name was missing when accessing TCA array.
It also fixes similar issue in the rst file.

Resolves: #85733
Related: #85195
Releases: master
Change-Id: I947fe223336bb184f24a3b7248c6d8d724addb11
Reviewed-on: https://review.typo3.org/57781
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Joerg Kummer <typo3@enobe.de>
Reviewed-by: Łukasz Uznański <l.uznanski@macopedia.pl>
Tested-by: Łukasz Uznański <l.uznanski@macopedia.pl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Classes/Database/Schema/DefaultTcaSchema.php
typo3/sysext/core/Documentation/Changelog/7.4/Feature-67603-IntroduceTcaDescriptionColumn.rst
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/impexp-group-file-and-file_reference-item-but-images-not-included.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/impexp-group-file-and-file_reference-item-in-ff.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/impexp-group-file-and-file_reference-item.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/irre-records.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/pages-and-ttcontent-with-corrupt-image.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/pages-and-ttcontent-with-image-but-not-included.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/pages-and-ttcontent-with-image.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlExports/pages-and-ttcontent.xml

index 0410abd..a3e523f 100644 (file)
@@ -527,7 +527,7 @@ class DefaultTcaSchema
      */
     public function getPrioritizedFieldNames(string $tableName): array
     {
-        if (!isset($GLOBALS['TCA'][$tableName])) {
+        if (!isset($GLOBALS['TCA'][$tableName]['ctrl'])) {
             return [];
         }
 
@@ -536,7 +536,7 @@ class DefaultTcaSchema
             'pid'
         ];
 
-        $tableDefinition = $GLOBALS['TCA']['ctrl'];
+        $tableDefinition = $GLOBALS['TCA'][$tableName]['ctrl'];
 
         if (!empty($tableDefinition['crdate'])) {
             $prioritizedFieldNames[] = $tableDefinition['crdate'];
index 0bbd296..f756b05 100644 (file)
@@ -11,7 +11,7 @@ Description
 ===========
 
 To annotate database table column fields as internal description for editors and admins a new setting
-for TCA is introduced. Setting is called `['TCA']['ctrl']['descriptionColumn']` and holds column name.
+for TCA is introduced. Setting is called `['TCA'][$tableName]['ctrl']['descriptionColumn']` and holds column name.
 
 This description should only displayed in the backend to guide editors and admins.
 
index f4ccb86..5ce240b 100644 (file)
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Root</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="title">Test item</field>
                                <field index="images">typo3_image4.jpg</field>
                                <field index="image_references">fileadmin/user_upload/typo3_image5.jpg</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="images" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="description" type="NULL"/>
                                <field index="name">fileadmin/ (auto-created)</field>
                                <field index="driver">Local</field>
                                <field index="configuration">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot; ?&gt;
                                <field index="is_public">1</field>
                                <field index="is_writable">1</field>
                                <field index="is_online">1</field>
-                               <field index="description" type="NULL"></field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="configuration" type="array">
index dfea130..20d1e76 100644 (file)
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Dummy 1-2</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">2</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="title">Test item 2</field>
                                <field index="images"></field>
                                <field index="image_references"></field>
                &lt;/sheet&gt;
        &lt;/data&gt;
 &lt;/T3FlexForms&gt;</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="flexform" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="description" type="NULL"/>
                                <field index="name">fileadmin/ (auto-created)</field>
                                <field index="driver">Local</field>
                                <field index="configuration">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot; ?&gt;
                                <field index="is_public">1</field>
                                <field index="is_writable">1</field>
                                <field index="is_online">1</field>
-                               <field index="description" type="NULL"></field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="configuration" type="array">
index 96662ae..9d6b2f6 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<?xml version="1.0"?>
 <T3RecordDocument>
        <header type="array">
                <records type="array">
@@ -7,8 +7,8 @@
                                        <uid>1</uid>
                                        <pid>0</pid>
                                        <title>Root</title>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
+                                       <relations index="rels" type="array"/>
+                                       <softrefs type="array"/>
                                </rec>
                        </table>
                        <table index="tx_impexpgroupfiles_item" type="array">
@@ -22,7 +22,7 @@
                                                        <id>3</id>
                                                </element>
                                        </relations>
-                                       <softrefs type="array"></softrefs>
+                                       <softrefs type="array"/>
                                        <filerefs type="array">
                                                <file index="0">66a2b7534be9ebf810cd55164c5f085d</file>
                                        </filerefs>
@@ -40,7 +40,7 @@
                                                        <table>sys_file_storage</table>
                                                </element>
                                        </relations>
-                                       <softrefs type="array"></softrefs>
+                                       <softrefs type="array"/>
                                </rec>
                        </table>
                        <table index="sys_file_storage" type="array">
@@ -49,8 +49,8 @@
                                        <pid>0</pid>
                                        <title>fileadmin/ (auto-created)</title>
                                        <relationLevel>2</relationLevel>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
+                                       <relations index="rels" type="array"/>
+                                       <softrefs type="array"/>
                                </rec>
                        </table>
                </records>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Root</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
-                       <related index="rels" type="array"></related>
+                       <related index="rels" type="array"/>
                </tablerow>
                <tablerow index="tx_impexpgroupfiles_item:1" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="title">Test item</field>
                                <field index="images">typo3_image4.jpg</field>
                                <field index="image_references">fileadmin/user_upload/typo3_image5.jpg</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="images" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="description" type="NULL"/>
                                <field index="name">fileadmin/ (auto-created)</field>
                                <field index="driver">Local</field>
                                <field index="configuration">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot; ?&gt;
                                <field index="is_public">1</field>
                                <field index="is_writable">1</field>
                                <field index="is_online">1</field>
-                               <field index="description" type="NULL"></field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="configuration" type="array">
                                        <type>flex</type>
                                        <flexform index="flexFormRels" type="array">
-                                               <db_relations index="db" type="array"></db_relations>
-                                               <file_relations index="file" type="array"></file_relations>
-                                               <softref_relations index="softrefs" type="array"></softref_relations>
+                                               <db_relations index="db" type="array"/>
+                                               <file_relations index="file" type="array"/>
+                                               <softref_relations index="softrefs" type="array"/>
                                        </flexform>
                                </field>
                        </related>
index dcfd5a7..44ed9ba 100644 (file)
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">IRRE</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="CType">text</field>
-                               <field index="header">Test content</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="t3ver_oid">0</field>
+                               <field index="CType">text</field>
+                               <field index="header">Test content</field>
                                <field index="tx_irretutorial_1nff_hotels">2</field>
                                <field index="tx_irretutorial_1ncsv_hotels">1,2</field>
                        </fieldlist>
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="title">Hotel 2 (csv)</field>
-                               <field index="offers">3</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">128</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Hotel 2 (csv)</field>
+                               <field index="offers">3</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="offers" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Hotel 1 (csv)</field>
-                               <field index="offers">1,2</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Hotel 1 (csv)</field>
+                               <field index="offers">1,2</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="offers" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">3</field>
                                <field index="pid">1</field>
-                               <field index="title">Offer 2.2 (csv)</field>
-                               <field index="prices">3</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">64</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Offer 2.2 (csv)</field>
+                               <field index="prices">3</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="prices" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="title">Offer 1.2 (csv)</field>
-                               <field index="prices">2</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">128</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Offer 1.2 (csv)</field>
+                               <field index="prices">2</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="prices" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Offer 1.1 (csv)</field>
-                               <field index="prices">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Offer 1.1 (csv)</field>
+                               <field index="prices">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="prices" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">3</field>
                                <field index="pid">1</field>
-                               <field index="title">Price 2.2.1 (csv)</field>
-                               <field index="price">112.00</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">64</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Price 2.2.1 (csv)</field>
+                               <field index="price">112.00</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="title">Price 1.2.1 (csv)</field>
-                               <field index="price">90.00</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">128</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Price 1.2.1 (csv)</field>
+                               <field index="price">90.00</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Price 1.1.1 (csv)</field>
-                               <field index="price">567.00</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Price 1.1.1 (csv)</field>
+                               <field index="price">567.00</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tt_content</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Hotel 1 (nff)</field>
-                               <field index="offers">2</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">1</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">1</field>
+                               <field index="parenttable">tt_content</field>
+                               <field index="parentidentifier"/>
+                               <field index="title">Hotel 1 (nff)</field>
+                               <field index="offers">2</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="offers" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tt_content</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Hotel 2 (nff)</field>
-                               <field index="offers">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">2</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">1</field>
+                               <field index="parenttable">tt_content</field>
+                               <field index="parentidentifier"/>
+                               <field index="title">Hotel 2 (nff)</field>
+                               <field index="offers">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="offers" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tx_irretutorial_1nff_hotel</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Offer 1.1 (nff)</field>
-                               <field index="prices">2</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">1</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">1</field>
+                               <field index="parenttable">tx_irretutorial_1nff_hotel</field>
+                               <field index="parentidentifier"/>
+                               <field index="title">Offer 1.1 (nff)</field>
+                               <field index="prices">2</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="prices" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tx_irretutorial_1nff_hotel</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Offer 1.2 (nff)</field>
-                               <field index="prices">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">2</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">1</field>
+                               <field index="parenttable">tx_irretutorial_1nff_hotel</field>
+                               <field index="parentidentifier"/>
+                               <field index="title">Offer 1.2 (nff)</field>
+                               <field index="prices">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="prices" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">3</field>
                                <field index="pid">1</field>
-                               <field index="parentid">2</field>
-                               <field index="parenttable">tx_irretutorial_1nff_hotel</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Offer 2.1 (nff)</field>
-                               <field index="prices">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">3</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">2</field>
+                               <field index="parenttable">tx_irretutorial_1nff_hotel</field>
+                               <field index="parentidentifier"/>
+                               <field index="title">Offer 2.1 (nff)</field>
+                               <field index="prices">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="prices" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Price 1.1.1 (nff)</field>
-                               <field index="price">4.00</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">1</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">1</field>
+                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
+                               <field index="parentidentifier"/>
+                               <field index="title">Price 1.1.1 (nff)</field>
+                               <field index="price">4.00</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="parentid">1</field>
-                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Price 1.1.2 (nff)</field>
-                               <field index="price">869.00</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">2</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">1</field>
+                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
+                               <field index="parentidentifier"/>
+                               <field index="title">Price 1.1.2 (nff)</field>
+                               <field index="price">869.00</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">3</field>
                                <field index="pid">1</field>
-                               <field index="parentid">2</field>
-                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Price 1.2.1 (nff)</field>
-                               <field index="price">678.00</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">3</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">2</field>
+                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
+                               <field index="parentidentifier"/>
+                               <field index="title">Price 1.2.1 (nff)</field>
+                               <field index="price">678.00</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">4</field>
                                <field index="pid">1</field>
-                               <field index="parentid">3</field>
-                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
-                               <field index="parentidentifier"></field>
-                               <field index="title">Price 2.1.1 (nff)</field>
-                               <field index="price">5467567.00</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">4</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">3</field>
+                               <field index="parenttable">tx_irretutorial_1nff_offer</field>
+                               <field index="parentidentifier"/>
+                               <field index="title">Price 2.1.1 (nff)</field>
+                               <field index="price">5467567.00</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Hotel 1 (m:n ASym)</field>
-                               <field index="offers">2</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Hotel 1 (m:n ASym)</field>
+                               <field index="offers">2</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="offers" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="hotelid">1</field>
-                               <field index="offerid">2</field>
-                               <field index="hotelsort">2</field>
-                               <field index="offersort">1</field>
-                               <field index="prices">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="hotelid">1</field>
+                               <field index="offerid">2</field>
+                               <field index="hotelsort">2</field>
+                               <field index="offersort">1</field>
+                               <field index="prices">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="hotelid" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="hotelid">1</field>
-                               <field index="offerid">1</field>
-                               <field index="hotelsort">1</field>
-                               <field index="offersort">1</field>
-                               <field index="prices">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="hotelid">1</field>
+                               <field index="offerid">1</field>
+                               <field index="hotelsort">1</field>
+                               <field index="offersort">1</field>
+                               <field index="prices">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="hotelid" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="title">Offer 2 (m:n ASym)</field>
-                               <field index="hotels">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">128</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Offer 2 (m:n ASym)</field>
+                               <field index="hotels">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="hotels" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Offer 1 (m:n ASym)</field>
-                               <field index="hotels">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Offer 1 (m:n ASym)</field>
+                               <field index="hotels">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="hotels" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="parentid">1</field>
-                               <field index="title">Price 1 1:2 (m:n ASym)</field>
-                               <field index="price">678.00</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">1</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">1</field>
+                               <field index="title">Price 1 1:2 (m:n ASym)</field>
+                               <field index="price">678.00</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="parentid">2</field>
-                               <field index="title">Price 2 1:1 (m:n ASym)</field>
-                               <field index="price">45.00</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">2</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="parentid">2</field>
+                               <field index="title">Price 2 1:1 (m:n ASym)</field>
+                               <field index="price">45.00</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Hotel 1 (m:n Attr)</field>
-                               <field index="offers">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Hotel 1 (m:n Attr)</field>
+                               <field index="offers">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="offers" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="title">Hotel 2 (m:n Attr)</field>
-                               <field index="offers">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">512</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Hotel 2 (m:n Attr)</field>
+                               <field index="offers">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="offers" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
+                               <field index="cruser_id">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
+                               <field index="sys_language_uid">0</field>
+                               <field index="l18n_parent">0</field>
                                <field index="hotelid">1</field>
                                <field index="offerid">1</field>
                                <field index="hotelsort">1</field>
                                <field index="offersort">0</field>
                                <field index="quality">2</field>
                                <field index="allincl">1</field>
-                               <field index="cruser_id">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="hotelid" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
+                               <field index="cruser_id">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
+                               <field index="sys_language_uid">0</field>
+                               <field index="l18n_parent">0</field>
                                <field index="hotelid">2</field>
                                <field index="offerid">2</field>
                                <field index="hotelsort">1</field>
                                <field index="offersort">0</field>
                                <field index="quality">4</field>
                                <field index="allincl">0</field>
-                               <field index="cruser_id">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l18n_parent">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="hotelid" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Offer 1 (m:n Attr)</field>
-                               <field index="hotels">0</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Offer 1 (m:n Attr)</field>
+                               <field index="hotels">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="hotels" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="title">Offer 2 (m:n Attr)</field>
-                               <field index="hotels">0</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">512</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Offer 2 (m:n Attr)</field>
+                               <field index="hotels">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="hotels" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Hotel 1 (m:n (MM) ASym)</field>
-                               <field index="offers">2</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Hotel 1 (m:n (MM) ASym)</field>
+                               <field index="offers">2</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="offers" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="title">Hotel 2 (m:n (MM) ASym)</field>
-                               <field index="offers">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">512</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Hotel 2 (m:n (MM) ASym)</field>
+                               <field index="offers">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="offers" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">3</field>
                                <field index="pid">1</field>
-                               <field index="title">Offer 2.1 (m:n (MM) ASym)</field>
-                               <field index="hotels">0</field>
-                               <field index="prices">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">64</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Offer 2.1 (m:n (MM) ASym)</field>
+                               <field index="hotels">0</field>
+                               <field index="prices">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="prices" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="title">Offer 1.2 (m:n (MM) ASym)</field>
-                               <field index="hotels">0</field>
-                               <field index="prices">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">128</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Offer 1.2 (m:n (MM) ASym)</field>
+                               <field index="hotels">0</field>
+                               <field index="prices">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="prices" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Offer 1.1 (m:n (MM) ASym)</field>
-                               <field index="hotels">0</field>
-                               <field index="prices">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Offer 1.1 (m:n (MM) ASym)</field>
+                               <field index="hotels">0</field>
+                               <field index="prices">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="prices" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">3</field>
                                <field index="pid">1</field>
-                               <field index="title">Price (m:n (MM) ASym)</field>
-                               <field index="price">223.00</field>
-                               <field index="offers">0</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">64</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Price (m:n (MM) ASym)</field>
+                               <field index="price">223.00</field>
+                               <field index="offers">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="title">Price 1.2.2 (m:n (MM) ASym)</field>
-                               <field index="price">567.00</field>
-                               <field index="offers">0</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">128</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Price 1.2.2 (m:n (MM) ASym)</field>
+                               <field index="price">567.00</field>
+                               <field index="offers">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Price 1.1.1 (m:n (MM) ASym)</field>
-                               <field index="price">567.00</field>
-                               <field index="offers">0</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Price 1.1.1 (m:n (MM) ASym)</field>
+                               <field index="price">567.00</field>
+                               <field index="offers">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="title">Hotel Branch 1.1 (mm sym)</field>
-                               <field index="branches">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">128</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Hotel Branch 1.1 (mm sym)</field>
+                               <field index="branches">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="branches" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">3</field>
                                <field index="pid">1</field>
-                               <field index="title">Hotel branch 1.2 (mm sym)</field>
-                               <field index="branches">0</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">192</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Hotel branch 1.2 (mm sym)</field>
+                               <field index="branches">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="branches" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="title">Hotel 1 (mm sym)</field>
-                               <field index="branches">2</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sorting">256</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="title">Hotel 1 (mm sym)</field>
+                               <field index="branches">2</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="branches" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="hotelid">1</field>
-                               <field index="branchid">2</field>
-                               <field index="hotelsort">1</field>
-                               <field index="branchsort">1</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="hotelid">1</field>
+                               <field index="branchid">2</field>
+                               <field index="hotelsort">1</field>
+                               <field index="branchsort">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="hotelid" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="hotelid">1</field>
-                               <field index="branchid">3</field>
-                               <field index="hotelsort">2</field>
-                               <field index="branchsort">0</field>
                                <field index="cruser_id">1</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="sys_language_uid">0</field>
                                <field index="l18n_parent">0</field>
+                               <field index="hotelid">1</field>
+                               <field index="branchid">3</field>
+                               <field index="hotelsort">2</field>
+                               <field index="branchsort">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="hotelid" type="array">
index 8838d23..94d13ac 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
+<?xml version="1.0"?>
 <T3RecordDocument>
        <header type="array">
                <records type="array">
@@ -7,15 +7,15 @@
                                        <uid>1</uid>
                                        <pid>0</pid>
                                        <title>Root</title>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
+                                       <relations index="rels" type="array"/>
+                                       <softrefs type="array"/>
                                </rec>
                                <rec index="2" type="array">
                                        <uid>2</uid>
                                        <pid>1</pid>
                                        <title>Dummy 1-2</title>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
+                                       <relations index="rels" type="array"/>
+                                       <softrefs type="array"/>
                                </rec>
                        </table>
                        <table index="tt_content" type="array">
@@ -49,8 +49,8 @@
                                        <uid>1</uid>
                                        <pid>0</pid>
                                        <title>Deutsch</title>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
+                                       <relations index="rels" type="array"/>
+                                       <softrefs type="array"/>
                                </rec>
                        </table>
                        <table index="sys_file_reference" type="array">
@@ -64,7 +64,7 @@
                                                        <table>sys_file</table>
                                                </element>
                                        </relations>
-                                       <softrefs type="array"></softrefs>
+                                       <softrefs type="array"/>
                                </rec>
                        </table>
                        <table index="sys_file" type="array">
@@ -87,7 +87,7 @@
                                                        <table>sys_file_metadata</table>
                                                </element>
                                        </relations>
-                                       <softrefs type="array"></softrefs>
+                                       <softrefs type="array"/>
                                </rec>
                        </table>
                        <table index="sys_file_storage" type="array">
@@ -96,8 +96,8 @@
                                        <pid>0</pid>
                                        <title>fileadmin/ (auto-created)</title>
                                        <relationLevel>2</relationLevel>
-                                       <relations index="rels" type="array"></relations>
-                                       <softrefs type="array"></softrefs>
+                                       <relations index="rels" type="array"/>
+                                       <softrefs type="array"/>
                                </rec>
                        </table>
                        <table index="sys_file_metadata" type="array">
                                                        <table>sys_file</table>
                                                </element>
                                        </relations>
-                                       <softrefs type="array"></softrefs>
+                                       <softrefs type="array"/>
                                </rec>
                                <rec index="2" type="array">
                                        <uid>2</uid>
                                        <title>typo3_image2.jpg</title>
                                        <relationLevel>2</relationLevel>
                                        <relations index="rels" type="array">
-                                               <element index="sys_file:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file</table>
-                                               </element>
                                                <element index="sys_language:1" type="array">
                                                        <id>1</id>
                                                        <table>sys_language</table>
                                                        <id>1</id>
                                                        <table>sys_file_metadata</table>
                                                </element>
+                                               <element index="sys_file:1" type="array">
+                                                       <id>1</id>
+                                                       <table>sys_file</table>
+                                               </element>
                                        </relations>
-                                       <softrefs type="array"></softrefs>
+                                       <softrefs type="array"/>
                                </rec>
                        </table>
                </records>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Root</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
-                       <related index="rels" type="array"></related>
+                       <related index="rels" type="array"/>
                </tablerow>
                <tablerow index="pages:2" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Dummy 1-2</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
-                       <related index="rels" type="array"></related>
+                       <related index="rels" type="array"/>
                </tablerow>
                <tablerow index="tt_content:1" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
+                               <field index="t3ver_oid">0</field>
                                <field index="CType">textpic</field>
                                <field index="header">Test content</field>
                                <field index="image">1</field>
                                <field index="header_link">file:1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="t3ver_oid">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="image" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="hidden">0</field>
                                <field index="title">Deutsch</field>
                                <field index="flag">de</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
-                       <related index="rels" type="array"></related>
+                       <related index="rels" type="array"/>
                </tablerow>
                <tablerow index="sys_file_reference:1" type="array">
                        <fieldlist index="data" type="array">
                                <field index="fieldname">image</field>
                                <field index="sorting_foreign">0</field>
                                <field index="table_local">sys_file</field>
-                               <field index="title" type="NULL"></field>
-                               <field index="description" type="NULL"></field>
-                               <field index="alternative" type="NULL"></field>
-                               <field index="link"></field>
+                               <field index="title" type="NULL"/>
+                               <field index="description" type="NULL"/>
+                               <field index="alternative" type="NULL"/>
+                               <field index="link"/>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="uid_local" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="description" type="NULL"/>
                                <field index="name">fileadmin/ (auto-created)</field>
                                <field index="driver">Local</field>
                                <field index="configuration">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot; ?&gt;
                                <field index="is_public">1</field>
                                <field index="is_writable">1</field>
                                <field index="is_online">1</field>
-                               <field index="description" type="NULL"></field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="configuration" type="array">
                                        <type>flex</type>
                                        <flexform index="flexFormRels" type="array">
-                                               <db_relations index="db" type="array"></db_relations>
-                                               <file_relations index="file" type="array"></file_relations>
-                                               <softref_relations index="softrefs" type="array"></softref_relations>
+                                               <db_relations index="db" type="array"/>
+                                               <file_relations index="file" type="array"/>
+                                               <softref_relations index="softrefs" type="array"/>
                                        </flexform>
                                </field>
                        </related>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="sys_language_uid">0</field>
+                               <field index="l10n_parent">0</field>
                                <field index="file">1</field>
                                <field index="title">Dummy image</field>
                                <field index="width">400</field>
                                <field index="height">300</field>
                                <field index="description">This is a dummy image.</field>
                                <field index="alternative">Photo of program code</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l10n_parent">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="file" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">0</field>
+                               <field index="sys_language_uid">1</field>
+                               <field index="l10n_parent">1</field>
                                <field index="file">1</field>
                                <field index="title">Beispiel Bild</field>
                                <field index="width">400</field>
                                <field index="height">300</field>
                                <field index="description">Nur ein Beispielbild.</field>
                                <field index="alternative">Foto von Programmcode</field>
-                               <field index="sys_language_uid">1</field>
-                               <field index="l10n_parent">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
-                               <field index="file" type="array">
+                               <field index="sys_language_uid" type="array">
                                        <type>db</type>
                                        <relations index="itemArray" type="array">
                                                <element index="0" type="array">
                                                        <id>1</id>
-                                                       <table>sys_file</table>
+                                                       <table>sys_language</table>
                                                </element>
                                        </relations>
                                </field>
-                               <field index="sys_language_uid" type="array">
+                               <field index="l10n_parent" type="array">
                                        <type>db</type>
                                        <relations index="itemArray" type="array">
                                                <element index="0" type="array">
                                                        <id>1</id>
-                                                       <table>sys_language</table>
+                                                       <table>sys_file_metadata</table>
                                                </element>
                                        </relations>
                                </field>
-                               <field index="l10n_parent" type="array">
+                               <field index="file" type="array">
                                        <type>db</type>
                                        <relations index="itemArray" type="array">
                                                <element index="0" type="array">
                                                        <id>1</id>
-                                                       <table>sys_file_metadata</table>
+                                                       <table>sys_file</table>
                                                </element>
                                        </relations>
                                </field>
index 29c07ae..e552b36 100644 (file)
                                        <title>typo3_image2.jpg</title>
                                        <relationLevel>2</relationLevel>
                                        <relations index="rels" type="array">
-                                               <element index="sys_file:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file</table>
-                                               </element>
                                                <element index="sys_language:1" type="array">
                                                        <id>1</id>
                                                        <table>sys_language</table>
                                                        <id>1</id>
                                                        <table>sys_file_metadata</table>
                                                </element>
+                                               <element index="sys_file:1" type="array">
+                                                       <id>1</id>
+                                                       <table>sys_file</table>
+                                               </element>
                                        </relations>
                                        <softrefs type="array"></softrefs>
                                </rec>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Root</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Dummy 1-2</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
+                               <field index="t3ver_oid">0</field>
                                <field index="CType">textpic</field>
                                <field index="header">Test content</field>
                                <field index="image">1</field>
                                <field index="header_link">file:1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="t3ver_oid">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="image" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="hidden">0</field>
                                <field index="title">Deutsch</field>
                                <field index="flag">de</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="description" type="NULL"/>
                                <field index="name">fileadmin/ (auto-created)</field>
                                <field index="driver">Local</field>
                                <field index="configuration">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot; ?&gt;
                                <field index="is_public">1</field>
                                <field index="is_writable">1</field>
                                <field index="is_online">1</field>
-                               <field index="description" type="NULL"></field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="configuration" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="sys_language_uid">0</field>
+                               <field index="l10n_parent">0</field>
                                <field index="file">1</field>
                                <field index="title">Dummy image</field>
                                <field index="width">400</field>
                                <field index="height">300</field>
                                <field index="description">This is a dummy image.</field>
                                <field index="alternative">Photo of program code</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l10n_parent">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="file" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">0</field>
+                               <field index="sys_language_uid">1</field>
+                               <field index="l10n_parent">1</field>
                                <field index="file">1</field>
                                <field index="title">Beispiel Bild</field>
                                <field index="width">400</field>
                                <field index="height">300</field>
                                <field index="description">Nur ein Beispielbild.</field>
                                <field index="alternative">Foto von Programmcode</field>
-                               <field index="sys_language_uid">1</field>
-                               <field index="l10n_parent">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
-                               <field index="file" type="array">
+                               <field index="sys_language_uid" type="array">
                                        <type>db</type>
                                        <relations index="itemArray" type="array">
                                                <element index="0" type="array">
                                                        <id>1</id>
-                                                       <table>sys_file</table>
+                                                       <table>sys_language</table>
                                                </element>
                                        </relations>
                                </field>
-                               <field index="sys_language_uid" type="array">
+                               <field index="l10n_parent" type="array">
                                        <type>db</type>
                                        <relations index="itemArray" type="array">
                                                <element index="0" type="array">
                                                        <id>1</id>
-                                                       <table>sys_language</table>
+                                                       <table>sys_file_metadata</table>
                                                </element>
                                        </relations>
                                </field>
-                               <field index="l10n_parent" type="array">
+                               <field index="file" type="array">
                                        <type>db</type>
                                        <relations index="itemArray" type="array">
                                                <element index="0" type="array">
                                                        <id>1</id>
-                                                       <table>sys_file_metadata</table>
+                                                       <table>sys_file</table>
                                                </element>
                                        </relations>
                                </field>
index 234072a..2e2d34f 100644 (file)
                                        <title>typo3_image2.jpg</title>
                                        <relationLevel>2</relationLevel>
                                        <relations index="rels" type="array">
-                                               <element index="sys_file:1" type="array">
-                                                       <id>1</id>
-                                                       <table>sys_file</table>
-                                               </element>
                                                <element index="sys_language:1" type="array">
                                                        <id>1</id>
                                                        <table>sys_language</table>
                                                        <id>1</id>
                                                        <table>sys_file_metadata</table>
                                                </element>
+                                               <element index="sys_file:1" type="array">
+                                                       <id>1</id>
+                                                       <table>sys_file</table>
+                                               </element>
                                        </relations>
                                        <softrefs type="array"></softrefs>
                                </rec>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Root</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Dummy 1-2</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
+                               <field index="t3ver_oid">0</field>
                                <field index="CType">textpic</field>
                                <field index="header">Test content</field>
                                <field index="image">1</field>
                                <field index="header_link">file:1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
-                               <field index="t3ver_oid">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="image" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="hidden">0</field>
                                <field index="title">Deutsch</field>
                                <field index="flag">de</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="description" type="NULL"/>
                                <field index="name">fileadmin/ (auto-created)</field>
                                <field index="driver">Local</field>
                                <field index="configuration">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot; ?&gt;
                                <field index="is_public">1</field>
                                <field index="is_writable">1</field>
                                <field index="is_online">1</field>
-                               <field index="description" type="NULL"></field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="configuration" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="sys_language_uid">0</field>
+                               <field index="l10n_parent">0</field>
                                <field index="file">1</field>
                                <field index="title">Dummy image</field>
                                <field index="width">400</field>
                                <field index="height">300</field>
                                <field index="description">This is a dummy image.</field>
                                <field index="alternative">Photo of program code</field>
-                               <field index="sys_language_uid">0</field>
-                               <field index="l10n_parent">0</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="file" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">0</field>
+                               <field index="sys_language_uid">1</field>
+                               <field index="l10n_parent">1</field>
                                <field index="file">1</field>
                                <field index="title">Beispiel Bild</field>
                                <field index="width">400</field>
                                <field index="height">300</field>
                                <field index="description">Nur ein Beispielbild.</field>
                                <field index="alternative">Foto von Programmcode</field>
-                               <field index="sys_language_uid">1</field>
-                               <field index="l10n_parent">1</field>
                        </fieldlist>
                        <related index="rels" type="array">
-                               <field index="file" type="array">
+                               <field index="sys_language_uid" type="array">
                                        <type>db</type>
                                        <relations index="itemArray" type="array">
                                                <element index="0" type="array">
                                                        <id>1</id>
-                                                       <table>sys_file</table>
+                                                       <table>sys_language</table>
                                                </element>
                                        </relations>
                                </field>
-                               <field index="sys_language_uid" type="array">
+                               <field index="l10n_parent" type="array">
                                        <type>db</type>
                                        <relations index="itemArray" type="array">
                                                <element index="0" type="array">
                                                        <id>1</id>
-                                                       <table>sys_language</table>
+                                                       <table>sys_file_metadata</table>
                                                </element>
                                        </relations>
                                </field>
-                               <field index="l10n_parent" type="array">
+                               <field index="file" type="array">
                                        <type>db</type>
                                        <relations index="itemArray" type="array">
                                                <element index="0" type="array">
                                                        <id>1</id>
-                                                       <table>sys_file_metadata</table>
+                                                       <table>sys_file</table>
                                                </element>
                                        </relations>
                                </field>
index b848ffc..58841c6 100644 (file)
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">0</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Root</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
+                               <field index="deleted">0</field>
+                               <field index="hidden">0</field>
                                <field index="perms_everybody">15</field>
                                <field index="title">Dummy 1-2</field>
                                <field index="doktype">1</field>
-                               <field index="deleted">0</field>
-                               <field index="hidden">0</field>
                        </fieldlist>
                        <related index="rels" type="array"></related>
                </tablerow>
                        <fieldlist index="data" type="array">
                                <field index="uid">1</field>
                                <field index="pid">1</field>
-                               <field index="CType">text</field>
-                               <field index="header">Test content</field>
-                               <field index="header_link">file:2</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="t3ver_oid">0</field>
+                               <field index="CType">text</field>
+                               <field index="header">Test content</field>
+                               <field index="header_link">file:2</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="header_link" type="array">
                        <fieldlist index="data" type="array">
                                <field index="uid">2</field>
                                <field index="pid">1</field>
-                               <field index="CType">text</field>
-                               <field index="header">Test content 2</field>
-                               <field index="header_link">file:4</field>
                                <field index="deleted">0</field>
                                <field index="hidden">0</field>
                                <field index="t3ver_oid">0</field>
+                               <field index="CType">text</field>
+                               <field index="header">Test content 2</field>
+                               <field index="header_link">file:4</field>
                        </fieldlist>
                        <related index="rels" type="array">
                                <field index="header_link" type="array">