RecyclerUtility

Helper class for the 'recycler' extension.

Internal

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<string|int, mixed>
Returns the modifiable tables of the current user
getPidOfUid()  : int
Get pid of uid
getBackendUser()  : BackendUserAuthentication
getLanguageService()  : LanguageService
getTableTCA()  : array<string|int, mixed>|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<string|int, mixed> $row) : bool
Parameters
$table : string

The table to check access for

$row : array<string|int, mixed>

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<string|int, mixed>
Return values
array<string|int, mixed>

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<string|int, mixed>|false
Parameters
$tableName : string

Name of the table to get TCA for

Return values
array<string|int, mixed>|false

TCA of the table used in the current context


        
On this page

Search results