2 namespace TYPO3\CMS\Backend\Form\Utility;
48 'input' => array(
'size',
'max',
'readOnly'),
49 'text' => array(
'cols',
'rows',
'wrap',
'readOnly'),
50 'check' => array(
'cols',
'showIfRTE',
'readOnly'),
51 'select' => array(
'size',
'autoSizeMax',
'maxitems',
'minitems',
'readOnly',
'treeConfig'),
52 'group' => array(
'size',
'autoSizeMax',
'max_size',
'show_thumbs',
'maxitems',
'minitems',
'disable_controls',
'readOnly'),
53 'inline' => array(
'appearance',
'behaviour',
'foreign_label',
'foreign_selector',
'foreign_unique',
'maxitems',
'minitems',
'size',
'autoSizeMax',
'symmetric_label',
'readOnly'),
69 if (is_array($TSconfig)) {
71 $type = $fieldConfig[
'type'];
72 if (is_array($TSconfig[
'config']) && is_array(static::$allowOverrideMatrix[$type])) {
74 foreach ($TSconfig[
'config'] as $key => $_) {
75 if (!in_array($key, static::$allowOverrideMatrix[$type],
true)) {
76 unset($TSconfig[
'config'][$key]);
80 if (!empty($TSconfig[
'config'])) {
101 if (is_null($cache)) {
104 $cacheIdentifier = $table .
':' . $row[
'uid'];
105 if (!isset($cache[$cacheIdentifier])) {
109 return $cache[$cacheIdentifier][$field];
111 return $cache[$cacheIdentifier];
125 $icon = (string)$icon;
131 if (!empty($absoluteFilePath)) {
135 : getimagesize($absoluteFilePath);
149 .
' src="' . htmlspecialchars($iconFile) .
'"'
150 .
' alt="' . htmlspecialchars($alt) .
'" '
151 . ($title ?
'title="' . htmlspecialchars($title) .
'"' :
'')
156 return '<span alt="' . htmlspecialchars($alt) .
'" title="' . htmlspecialchars($title) .
'">'
171 $backendUser = static::getBackendUserAuthentication();
172 if (isset($uc[
'inlineView']) && is_array($uc[
'inlineView'])) {
173 $inlineView = (array)unserialize($backendUser->uc[
'inlineView']);
174 foreach ($uc[
'inlineView'] as $topTable => $topRecords) {
175 foreach ($topRecords as $topUid => $childElements) {
176 foreach ($childElements as $childTable => $childRecords) {
177 $uids = array_keys($tce->substNEWwithIDs_table, $childTable);
179 $newExpandedChildren = array();
180 foreach ($childRecords as $childUid => $state) {
181 if ($state && in_array($childUid, $uids)) {
182 $newChildUid = $tce->substNEWwithIDs[$childUid];
183 $newExpandedChildren[] = $newChildUid;
187 if (!empty($newExpandedChildren)) {
188 $inlineViewCurrent = &$inlineView[$topTable][$topUid][$childTable];
189 if (is_array($inlineViewCurrent)) {
190 $inlineViewCurrent = array_unique(array_merge($inlineViewCurrent, $newExpandedChildren));
192 $inlineViewCurrent = $newExpandedChildren;
199 $backendUser->uc[
'inlineView'] = serialize($inlineView);
200 $backendUser->writeUC();
220 foreach ($row as $fieldName => $fieldValue) {
221 if (!is_array($fieldValue)) {
222 $newRow[$fieldName] = $fieldValue;
224 $newElementValue = [];
225 foreach ($fieldValue as $itemNumber => $itemValue) {
226 if (is_array($itemValue) && array_key_exists(1, $itemValue)) {
227 $newElementValue[] = $itemValue[1];
229 $newElementValue[] = $itemValue;
232 $newRow[$fieldName] = implode(
',', $newElementValue);