TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Recycler\Utility\RecyclerUtility Class Reference
Inheritance diagram for TYPO3\CMS\Recycler\Utility\RecyclerUtility:
tx_recycler_helper

Static Public Member Functions

static checkAccess ($table, $row)
 
static getRecordPath ($uid, $clause='', $titleLimit=1000, $fullTitleLimit=0)
 
static getDeletedField ($tableName)
 
static getTableTCA ($tableName)
 
static getCurrentCharset ()
 
static isNotUtf8Charset ()
 
static getUtf8String ($string)
 

Detailed Description

Helper class for the 'recycler' extension.

Author
Julian Kleinhans typo3.nosp@m.@kj1.nosp@m.87.de

Definition at line 24 of file RecyclerUtility.php.

Member Function Documentation

◆ checkAccess()

static TYPO3\CMS\Recycler\Utility\RecyclerUtility::checkAccess (   $table,
  $row 
)
static

Checks the page access rights (Code for access check mostly taken from alt_doc.php) as well as the table access rights of the user.

Parameters
string$tableThe table to check access for
string$rowRecord array
Returns
boolean Returns TRUE is the user has access, or FALSE if not

Definition at line 39 of file RecyclerUtility.php.

References $GLOBALS, and TYPO3\CMS\Backend\Utility\BackendUtility\fixVersioningPid().

◆ getCurrentCharset()

static TYPO3\CMS\Recycler\Utility\RecyclerUtility::getCurrentCharset ( )
static

Gets the current backend charset.

Returns
string The current backend charset

Definition at line 143 of file RecyclerUtility.php.

References $GLOBALS.

◆ getDeletedField()

static TYPO3\CMS\Recycler\Utility\RecyclerUtility::getDeletedField (   $tableName)
static

Gets the name of the field with the information whether a record is deleted.

Parameters
string$tableName,Name of the table to get the deleted field for
Returns
string Name of the field with the information whether a record is deleted

Definition at line 117 of file RecyclerUtility.php.

References $TCA.

Referenced by TYPO3\CMS\Recycler\Domain\Model\Tables\getTables(), and TYPO3\CMS\Recycler\Domain\Model\DeletedRecords\setData().

◆ getRecordPath()

static TYPO3\CMS\Recycler\Utility\RecyclerUtility::getRecordPath (   $uid,
  $clause = '',
  $titleLimit = 1000,
  $fullTitleLimit = 0 
)
static

Returns the path (visually) of a page $uid, fx. "/First page/Second page/Another subpage" Each part of the path will be limited to $titleLimit characters Deleted pages are filtered out.

Parameters
integerPage uid for which to create record path
string$clauseis additional where clauses, eg.
integerTitle limit
integerTitle limit of Full title (typ. set to 1000 or so)
Returns
mixed Path of record (string) OR array with short/long title if $fullTitleLimit is set.

Definition at line 77 of file RecyclerUtility.php.

References $GLOBALS, $uid, TYPO3\CMS\Backend\Utility\BackendUtility\fixVersioningPid(), and TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

◆ getTableTCA()

static TYPO3\CMS\Recycler\Utility\RecyclerUtility::getTableTCA (   $tableName)
static

Gets the TCA of the table used in the current context.

Parameters
string$tableName,Name of the table to get TCA for
Returns
mixed TCA of the table used in the current context (array)

Definition at line 130 of file RecyclerUtility.php.

References $GLOBALS, and $TCA.

◆ getUtf8String()

static TYPO3\CMS\Recycler\Utility\RecyclerUtility::getUtf8String (   $string)
static

Gets an UTF-8 encoded string (only if the current charset is not UTF-8!).

Parameters
string$string,String to be converted to UTF-8 if required
Returns
string UTF-8 encoded string

Definition at line 162 of file RecyclerUtility.php.

References $GLOBALS.

◆ isNotUtf8Charset()

static TYPO3\CMS\Recycler\Utility\RecyclerUtility::isNotUtf8Charset ( )
static

Determines whether the current charset is not UTF-8

Returns
boolean Whether the current charset is not UTF-8

Definition at line 152 of file RecyclerUtility.php.