| @@ 328-330 (lines=3) @@ | ||
| 325 | if (!BackendUtility::readPageAccess($uid, $GLOBALS['BE_USER']->getPagePermsClause(1))) { |
|
| 326 | $retValue = false; |
|
| 327 | } |
|
| 328 | } elseif (isset($GLOBALS['TCA'][$table]['ctrl']['is_static']) && (bool)$GLOBALS['TCA'][$table]['ctrl']['is_static']) { |
|
| 329 | $retValue = true; |
|
| 330 | } else { |
|
| 331 | if (!is_array(BackendUtility::readPageAccess($row['pid'], $GLOBALS['BE_USER']->getPagePermsClause(1)))) { |
|
| 332 | $retValue = false; |
|
| 333 | } |
|
| @@ 1579-1582 (lines=4) @@ | ||
| 1576 | // Use property for move placeholders if set (since TYPO3 CMS 6.2) |
|
| 1577 | if (isset($GLOBALS['TCA'][$table]['ctrl']['shadowColumnsForMovePlaceholders'])) { |
|
| 1578 | $shadowColumnsForMovePlaceholder = $GLOBALS['TCA'][$table]['ctrl']['shadowColumnsForMovePlaceholders']; |
|
| 1579 | } elseif (isset($GLOBALS['TCA'][$table]['ctrl']['shadowColumnsForNewPlaceholders'])) { |
|
| 1580 | // Fallback to property for new placeholder (existed long time before TYPO3 CMS 6.2) |
|
| 1581 | $shadowColumnsForMovePlaceholder = $GLOBALS['TCA'][$table]['ctrl']['shadowColumnsForNewPlaceholders']; |
|
| 1582 | } |
|
| 1583 | ||
| 1584 | // Set values from the versioned record to the move placeholder |
|
| 1585 | if (!empty($shadowColumnsForMovePlaceholder)) { |
|
| @@ 1381-1383 (lines=3) @@ | ||
| 1378 | $shadowCols = $GLOBALS['TCA'][$table]['ctrl']['shadowColumnsForNewPlaceholders']; |
|
| 1379 | $shadowCols .= ',' . $GLOBALS['TCA'][$table]['ctrl']['languageField']; |
|
| 1380 | $shadowCols .= ',' . $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']; |
|
| 1381 | if (isset($GLOBALS['TCA'][$table]['ctrl']['translationSource'])) { |
|
| 1382 | $shadowCols .= ',' . $GLOBALS['TCA'][$table]['ctrl']['translationSource']; |
|
| 1383 | } |
|
| 1384 | $shadowCols .= ',' . $GLOBALS['TCA'][$table]['ctrl']['type']; |
|
| 1385 | $shadowCols .= ',' . $GLOBALS['TCA'][$table]['ctrl']['label']; |
|
| 1386 | $shadowColumns = array_unique(GeneralUtility::trimExplode(',', $shadowCols, true)); |
|
| @@ 3634-3637 (lines=4) @@ | ||
| 3631 | $transOrigPointerField = $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']; |
|
| 3632 | $fields[] = $languageField; |
|
| 3633 | $fields[] = $transOrigPointerField; |
|
| 3634 | if (isset($GLOBALS['TCA'][$table]['ctrl']['translationSource'])) { |
|
| 3635 | $translationSourceField = $GLOBALS['TCA'][$table]['ctrl']['translationSource']; |
|
| 3636 | $fields[] = $translationSourceField; |
|
| 3637 | } |
|
| 3638 | } |
|
| 3639 | $isTableWorkspaceEnabled = BackendUtility::isTableWorkspaceEnabled($table); |
|
| 3640 | $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($table); |
|
| @@ 4788-4790 (lines=3) @@ | ||
| 4785 | } elseif (!$this->useTransOrigPointerField) { |
|
| 4786 | $overrideValues[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']] = 0; |
|
| 4787 | } |
|
| 4788 | if (isset($GLOBALS['TCA'][$table]['ctrl']['translationSource'])) { |
|
| 4789 | $overrideValues[$GLOBALS['TCA'][$table]['ctrl']['translationSource']] = $uid; |
|
| 4790 | } |
|
| 4791 | // Copy the type (if defined in both tables) from the original record so that translation has same type as original record |
|
| 4792 | if (isset($GLOBALS['TCA'][$table]['ctrl']['type'])) { |
|
| 4793 | $overrideValues[$GLOBALS['TCA'][$table]['ctrl']['type']] = $row[$GLOBALS['TCA'][$table]['ctrl']['type']]; |
|
| @@ 1405-1408 (lines=4) @@ | ||
| 1402 | // - there is content in it |
|
| 1403 | // - the thumbnail column is visible for the current type |
|
| 1404 | $type = 0; |
|
| 1405 | if (isset($GLOBALS['TCA'][$table]['ctrl']['type'])) { |
|
| 1406 | $typeColumn = $GLOBALS['TCA'][$table]['ctrl']['type']; |
|
| 1407 | $type = $row[$typeColumn]; |
|
| 1408 | } |
|
| 1409 | // If current type doesn't exist, set it to 0 (or to 1 for historical reasons, |
|
| 1410 | // if 0 doesn't exist) |
|
| 1411 | if (!isset($GLOBALS['TCA'][$table]['types'][$type])) { |
|
| @@ 1411-1413 (lines=3) @@ | ||
| 1408 | } |
|
| 1409 | // If current type doesn't exist, set it to 0 (or to 1 for historical reasons, |
|
| 1410 | // if 0 doesn't exist) |
|
| 1411 | if (!isset($GLOBALS['TCA'][$table]['types'][$type])) { |
|
| 1412 | $type = isset($GLOBALS['TCA'][$table]['types'][0]) ? 0 : 1; |
|
| 1413 | } |
|
| 1414 | $visibleColumns = $GLOBALS['TCA'][$table]['types'][$type]['showitem']; |
|
| 1415 | ||
| 1416 | if ($this->thumbs && |
|
| @@ 2773-2775 (lines=3) @@ | ||
| 2770 | } |
|
| 2771 | if (($table === 'pages' && $row['editlock']) || ($table !== 'pages' && $this->pageRow['editlock'])) { |
|
| 2772 | $editPermission = false; |
|
| 2773 | } elseif (isset($GLOBALS['TCA'][$table]['ctrl']['editlock']) && $row[$GLOBALS['TCA'][$table]['ctrl']['editlock']]) { |
|
| 2774 | $editPermission = false; |
|
| 2775 | } |
|
| 2776 | } |
|
| 2777 | return $editPermission; |
|
| 2778 | } |
|