45 if (is_array($calcPRec)) {
46 if ($table ==
'pages') {
48 $CALC_PERMS =
$GLOBALS[
'BE_USER']->calcPerms($calcPRec);
49 $hasAccess = $CALC_PERMS & 2 ? 1 : 0;
51 $CALC_PERMS =
$GLOBALS[
'BE_USER']->calcPerms(BackendUtility::getRecord(
'pages', $calcPRec[
'pid']));
53 $hasAccess = $CALC_PERMS & 16 ? 1 : 0;
57 $hasAccess =
$GLOBALS[
'BE_USER']->recordEditAccessInternals($table, $calcPRec);
60 if (!
$GLOBALS[
'BE_USER']->check(
'tables_modify', $table)) {
63 return $hasAccess ? TRUE : FALSE;
77 static public function getRecordPath(
$uid, $clause =
'', $titleLimit = 1000, $fullTitleLimit = 0) {
79 $output = ($fullOutput =
'/');
80 while (
$uid != 0 && $loopCheck > 0) {
82 $res =
$GLOBALS[
'TYPO3_DB']->exec_SELECTquery(
'uid,pid,title,deleted,t3ver_oid,t3ver_wsid',
'pages',
'uid=' . (
int)
$uid . (strlen(trim($clause)) ?
' AND ' . $clause :
''));
83 if (is_resource($res)) {
84 $row =
$GLOBALS[
'TYPO3_DB']->sql_fetch_assoc($res);
85 $GLOBALS[
'TYPO3_DB']->sql_free_result($res);
90 $output =
'/' . htmlspecialchars(\
TYPO3\CMS\Core\Utility\GeneralUtility::fixed_lgd_cs($row[
'title'], $titleLimit)) . $output;
91 if ($row[
'deleted']) {
92 $output =
'<span class="deletedPath">' . $output .
'</span>';
94 if ($fullTitleLimit) {
95 $fullOutput =
'/' . htmlspecialchars(\
TYPO3\CMS\Core\Utility\GeneralUtility::fixed_lgd_cs($row[
'title'], $fullTitleLimit)) . $fullOutput;
104 if ($fullTitleLimit) {
105 return array($output, $fullOutput);
118 $TCA = self::getTableTCA($tableName);
119 if (
$TCA && isset(
$TCA[
'ctrl'][
'delete']) &&
$TCA[
'ctrl'][
'delete']) {
120 return $TCA[
'ctrl'][
'delete'];
132 if (isset(
$GLOBALS[
'TCA'][$tableName])) {
144 return $GLOBALS[
'LANG']->csConvObj->parse_charset(
$GLOBALS[
'LANG']->charSet);
153 return self::getCurrentCharset() !==
'utf-8';
163 if (self::isNotUtf8Charset()) {
164 $string =
$GLOBALS[
'LANG']->csConvObj->utf8_encode($string, self::getCurrentCharset());
static getUtf8String($string)
static getCurrentCharset()
static getRecordPath($uid, $clause='', $titleLimit=1000, $fullTitleLimit=0)
$TCA['tx_irretutorial_1ncsv_hotel']
static workspaceOL($table, &$row, $wsid=-99, $unsetMovePointers=FALSE)
static getTableTCA($tableName)
static checkAccess($table, $row)
static getDeletedField($tableName)
static fixVersioningPid($table, &$rr, $ignoreWorkspaceMatch=FALSE)
static isNotUtf8Charset()
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]