‪TYPO3CMS  11.5
RenderPreviewImportPageAndRecordsByUpdate.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
16 return [
17  'update' => true,
18  'showDiff' => false,
19  'insidePageTree' =>
20  [
21  0 =>
22  [
23  'ref' => 'pages:1',
24  'type' => 'record',
25  'msg' => '',
26  'preCode' => '<span title="pages:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default">
27  <span class="icon-markup">
28 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>
29  </span>
30 
31 </span></span>',
32  'title' => '<a href="#" >Root</a>',
33  'active' => 'active',
34  'updatePath' => '/',
35  'updateMode' => sprintf('<select name="tx_impexp[import_mode][pages:1]"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE),
36  'controls' => '',
37  'message' => '',
38  ],
39  1 =>
40  [
41  'ref' => 'tt_content:1',
42  'type' => 'record',
43  'msg' => '',
44  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span title="tt_content:1"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text">
45  <span class="icon-markup">
46 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg>
47  </span>
48 
49 </span></span>',
50  'title' => 'Test content',
51  'active' => 'active',
52  'updatePath' => '/Root/',
53  'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:1]"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE),
54  'controls' => '',
55  'message' => '',
56  ],
57  2 =>
58  [
59  'ref' => 'SOFTREF',
60  'type' => 'softref',
61  'msg' => '',
62  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft">
63  <span class="icon-markup">
64 <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" />
65  </span>
66 
67 </span></span>',
68  'title' => '<em>header_link, "typolink"</em> : <span title="file:2">file:2</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Record <strong>sys_file:2</strong>',
69  '_softRefInfo' =>
70  [
71  'field' => 'header_link',
72  'spKey' => 'typolink',
73  'matchString' => 'file:2',
74  'subst' =>
75  [
76  'type' => 'db',
77  'recordRef' => 'sys_file:2',
78  'tokenID' => '2487ce518ed56d22f20f259928ff43f1',
79  'tokenValue' => 'file:2',
80  ],
81  ],
82  'controls' => '',
83  'message' => '',
84  ],
85  3 =>
86  [
87  'ref' => 'sys_file:2',
88  'type' => 'rel',
89  'msg' => 'LOST RELATION (Path: /)',
90  'title' => '<span title="/">sys_file:2</span>',
91  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="text-danger" title="sys_file:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning">
92  <span class="icon-markup">
93 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg>
94  </span>
95 
96 </span></span>',
97  'controls' => '',
98  'message' => '',
99  ],
100  4 =>
101  [
102  'ref' => 'tt_content:2',
103  'type' => 'record',
104  'msg' => '',
105  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span title="tt_content:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text">
106  <span class="icon-markup">
107 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/mimetypes.svg#mimetypes-x-content-text" /></svg>
108  </span>
109 
110 </span></span>',
111  'title' => 'Test content 2',
112  'active' => 'active',
113  'updatePath' => '/Root/',
114  'updateMode' => sprintf('<select name="tx_impexp[import_mode][tt_content:2]"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE),
115  'controls' => '',
116  'message' => '',
117  ],
118  5 =>
119  [
120  'ref' => 'SOFTREF',
121  'type' => 'softref',
122  'msg' => '',
123  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span title="SOFTREF"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-reference-soft" data-identifier="status-reference-soft">
124  <span class="icon-markup">
125 <img src="typo3/sysext/impexp/Resources/Public/Icons/status-reference-soft.png" width="16" height="16" alt="" />
126  </span>
127 
128 </span></span>',
129  'title' => '<em>header_link, "typolink"</em> : <span title="file:4">file:4</span><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Record <strong>sys_file:4</strong>',
130  '_softRefInfo' =>
131  [
132  'field' => 'header_link',
133  'spKey' => 'typolink',
134  'matchString' => 'file:4',
135  'subst' =>
136  [
137  'type' => 'db',
138  'recordRef' => 'sys_file:4',
139  'tokenID' => '81b8b33df54ef433f1cbc7c3e513e6c4',
140  'tokenValue' => 'file:4',
141  ],
142  ],
143  'controls' => '',
144  'message' => '',
145  ],
146  6 =>
147  [
148  'ref' => 'sys_file:4',
149  'type' => 'rel',
150  'msg' => 'LOST RELATION (Record not found!)',
151  'title' => '<span title="/">sys_file:4</span>',
152  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="text-danger" title="sys_file:4"><span class="t3js-icon icon icon-size-small icon-state-default icon-status-dialog-warning" data-identifier="status-dialog-warning">
153  <span class="icon-markup">
154 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/actions.svg#actions-exclamation-triangle" /></svg>
155  </span>
156 
157 </span></span>',
158  'controls' => '',
159  'message' => '',
160  ],
161  7 =>
162  [
163  'ref' => 'pages:2',
164  'type' => 'record',
165  'msg' => '',
166  'preCode' => '&nbsp;&nbsp;&nbsp;&nbsp;<span title="pages:2"><span class="t3js-icon icon icon-size-small icon-state-default icon-apps-pagetree-page-default" data-identifier="apps-pagetree-page-default">
167  <span class="icon-markup">
168 <svg class="icon-color"><use xlink:href="typo3/sysext/core/Resources/Public/Icons/T3Icons/sprites/apps.svg#apps-pagetree-page-default" /></svg>
169  </span>
170 
171 </span></span>',
172  'title' => '<a href="#" >Dummy 1-2</a>',
173  'active' => 'active',
174  'updatePath' => '/Root/',
175  'updateMode' => sprintf('<select name="tx_impexp[import_mode][pages:2]"><option value="0">Update</option><option value="%s">Import as new</option><option value="%s">Ignore PID</option><option value="%s">Exclude</option></select>', \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_AS_NEW, \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_IGNORE_PID, \‪TYPO3\CMS\Impexp\Import::IMPORT_MODE_EXCLUDE),
176  'controls' => '',
177  'message' => '',
178  ],
179  ],
180  'outsidePageTree' =>
181  [
182  ],
183 ];
‪TYPO3