‪TYPO3CMS  ‪main
TYPO3\CMS\Recycler\Utility\RecyclerUtility Class Reference

Static Public Member Functions

static bool checkAccess ($table, $row)
 
static string getDeletedField ($tableName)
 
static int getPidOfUid ($uid, $table)
 
static getModifyableTables ()
 

Static Protected Member Functions

static array false getTableTCA (string $tableName)
 
static getBackendUser ()
 
static getLanguageService ()
 

Detailed Description

Helper class for the 'recycler' extension.

Definition at line 30 of file RecyclerUtility.php.

Member Function Documentation

◆ checkAccess()

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

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

Parameters
string$table‪The table to check access for
array$row‪Record array
Returns
‪bool Returns TRUE is the user has access, or FALSE if not

Definition at line 45 of file RecyclerUtility.php.

Referenced by TYPO3\CMS\Recycler\Domain\Model\DeletedRecords\checkRecordAccess().

◆ getBackendUser()

static TYPO3\CMS\Recycler\Utility\RecyclerUtility::getBackendUser ( )
staticprotected

Definition at line 131 of file RecyclerUtility.php.

References $GLOBALS.

◆ getDeletedField()

static string 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 85 of file RecyclerUtility.php.

References TYPO3\CMS\Recycler\Utility\RecyclerUtility\getTableTCA().

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

◆ getLanguageService()

static TYPO3\CMS\Recycler\Utility\RecyclerUtility::getLanguageService ( )
staticprotected

Definition at line 136 of file RecyclerUtility.php.

References $GLOBALS.

◆ getModifyableTables()

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

Returns the modifiable tables of the current user

Definition at line 144 of file RecyclerUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Recycler\Controller\RecyclerAjaxController\getTables(), and TYPO3\CMS\Recycler\Domain\Model\DeletedRecords\loadData().

◆ getPidOfUid()

static int TYPO3\CMS\Recycler\Utility\RecyclerUtility::getPidOfUid (   $uid,
  $table 
)
static

Get pid of uid

Parameters
int$uid
string$table
Returns
‪int

Definition at line 101 of file RecyclerUtility.php.

References TYPO3\CMS\Webhooks\Message\$uid, and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Recycler\Domain\Model\DeletedRecords\undeleteData().

◆ getTableTCA()

static array false TYPO3\CMS\Recycler\Utility\RecyclerUtility::getTableTCA ( string  $tableName)
staticprotected

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

Parameters
string$tableName‪Name of the table to get TCA for
Returns
‪array|false TCA of the table used in the current context

Definition at line 122 of file RecyclerUtility.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Recycler\Utility\RecyclerUtility\getDeletedField().