TYPO3
7.6
|
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) |
static | getModifyableTables () |
Static Protected Member Functions | |
static | getDatabaseConnection () |
static | getBackendUser () |
static | getLanguageService () |
Helper class for the 'recycler' extension.
Definition at line 24 of file RecyclerUtility.php.
|
static |
Checks the page access rights (Code for access check mostly taken from FormEngine) as well as the table access rights of the user.
string | $table | The table to check access for |
string | $row | Record array |
Definition at line 39 of file RecyclerUtility.php.
References Permission\CONTENT_EDIT, BackendUtility\fixVersioningPid(), BackendUtility\getRecord(), and Permission\PAGE_EDIT.
Referenced by DeletedRecords\checkRecordAccess().
|
staticprotected |
Returns the BackendUser
Definition at line 201 of file RecyclerUtility.php.
References $GLOBALS.
|
static |
Gets the current backend charset.
Definition at line 156 of file RecyclerUtility.php.
References $lang.
|
staticprotected |
Returns an instance of DatabaseConnection
Definition at line 191 of file RecyclerUtility.php.
References $GLOBALS.
|
static |
Gets the name of the field with the information whether a record is deleted.
string | $tableName | Name of the table to get the deleted field for |
Definition at line 127 of file RecyclerUtility.php.
Referenced by Tables\getTables(), and DeletedRecords\setData().
|
staticprotected |
Returns an instance of LanguageService
Definition at line 211 of file RecyclerUtility.php.
References $GLOBALS.
|
static |
Returns the modifyable tables of the current user
Definition at line 219 of file RecyclerUtility.php.
References $GLOBALS.
Referenced by Tables\getTables(), and DeletedRecords\loadData().
|
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.
int | $uid | Page uid for which to create record path |
string | $clause | is additional where clauses, eg. |
int | $titleLimit | Title limit |
int | $fullTitleLimit | Title limit of Full title (typ. set to 1000 or so) |
Definition at line 80 of file RecyclerUtility.php.
References GeneralUtility\fixed_lgd_cs(), BackendUtility\fixVersioningPid(), and BackendUtility\workspaceOL().
Referenced by DeletedRecordsController\transform().
|
static |
Gets the TCA of the table used in the current context.
string | $tableName | Name of the table to get TCA for |
Definition at line 142 of file RecyclerUtility.php.
References $GLOBALS.
|
static |
Gets an UTF-8 encoded string (only if the current charset is not UTF-8!).
string | $string | String to be converted to UTF-8 if required |
Definition at line 178 of file RecyclerUtility.php.
Referenced by Tables\getTables(), and DeletedRecordsController\transform().
|
static |
Determines whether the current charset is not UTF-8
Definition at line 167 of file RecyclerUtility.php.