RecyclerUtility

class \TYPO3\CMS\Recycler\Utility\RecyclerUtility

Helper class for the 'recycler' extension.

Table of Contents

Methods

checkAccess()  : bool
Checks the page access rights (Code for access check mostly taken from FormEngine) as well as the table access rights of the user.
getDeletedField()  : string
Gets the name of the field with the information whether a record is deleted.
getModifyableTables()  : array
Returns the modifiable tables of the current user
getPidOfUid()  : int
Get pid of uid
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService
getTableTCA()  : array|false
Gets the TCA of the table used in the current context.

Methods

checkAccess()

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

public static checkAccess(string $table, array $row) : bool

Parameters

$table : string

The table to check access for

$row : array

Record array

Return values

bool —

Returns TRUE is the user has access, or FALSE if not

getDeletedField()

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

public static getDeletedField(string $tableName) : string

Parameters

$tableName : string

Name of the table to get the deleted field for

Return values

string —

Name of the field with the information whether a record is deleted

getModifyableTables()

Returns the modifiable tables of the current user

public static getModifyableTables() : array

Return values

array

getPidOfUid()

Get pid of uid

public static getPidOfUid(int $uid, string $table) : int

Parameters

$uid : int
$table : string

Return values

int

getTableTCA()

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

protected static getTableTCA(string $tableName) : array|false

Parameters

$tableName : string

Name of the table to get TCA for

Return values

array|false —

TCA of the table used in the current context

On this page