2 namespace TYPO3\CMS\Recycler\Utility;
41 $backendUser = static::getBackendUser();
48 if (is_array($calcPRec)) {
49 if ($table ===
'pages') {
51 $calculatedPermissions = $backendUser->calcPerms($calcPRec);
60 $hasAccess = $backendUser->recordEditAccessInternals($table, $calcPRec);
63 if (!$backendUser->check(
'tables_modify', $table)) {
80 public static function getRecordPath($uid, $clause =
'', $titleLimit = 1000, $fullTitleLimit = 0)
83 $output = ($fullOutput =
'/');
87 $databaseConnection = static::getDatabaseConnection();
88 $clause = trim($clause) !==
'' ?
' AND ' . $clause :
'';
90 while ($loopCheck > 0) {
92 $res = $databaseConnection->exec_SELECTquery(
'uid,pid,title,deleted,t3ver_oid,t3ver_wsid',
'pages',
'uid=' . $uid . $clause);
94 $row = $databaseConnection->sql_fetch_assoc($res);
95 $databaseConnection->sql_free_result($res);
99 $uid = (int)$row[
'pid'];
101 if ($row[
'deleted']) {
102 $output =
'<span class="text-danger">' . $output .
'</span>';
104 if ($fullTitleLimit) {
114 if ($fullTitleLimit) {
115 return array($output, $fullOutput);
129 $TCA = self::getTableTCA($tableName);
130 if ($TCA && isset($TCA[
'ctrl'][
'delete']) && $TCA[
'ctrl'][
'delete']) {
131 return $TCA[
'ctrl'][
'delete'];
145 if (isset(
$GLOBALS[
'TCA'][$tableName])) {
158 $lang = static::getLanguageService();
159 return $lang->csConvObj->parse_charset(
$lang->charSet);
169 return self::getCurrentCharset() !==
'utf-8';
180 if (self::isNotUtf8Charset()) {
181 $string = static::getLanguageService()->csConvObj->utf8_encode($string, self::getCurrentCharset());
221 if ((
bool)
$GLOBALS[
'BE_USER']->user[
'admin']) {
222 $tables = array_keys(
$GLOBALS[
'TCA']);
224 $tables = explode(
',',
$GLOBALS[
'BE_USER']->groupData[
'tables_modify']);