RecyclerService
Provides data-fetching logic for the recycler module.
Used by both RecyclerModuleController (initial server-side render) and RecyclerAjaxController (subsequent AJAX requests).
This class is a specific Backend service implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Methods
- __construct() : mixed
- getAvailableTables() : array<int, array{0: string, 1: int, 2: string}>
- Returns the list of tables that contain deleted records, with counts.
- getDeletedRecords() : array{groupedRecords: array, totalItems: int}
- Loads deleted records, flattens them, paginates and transforms for display.
Methods
__construct()
public
__construct(FrontendInterface $runtimeCache, IconFactory $iconFactory, ConnectionPool $connectionPool, RecordHistory $recordHistory, TcaSchemaFactory $tcaSchemaFactory) : mixed
Parameters
- $runtimeCache : FrontendInterface
- $iconFactory : IconFactory
- $connectionPool : ConnectionPool
- $recordHistory : RecordHistory
- $tcaSchemaFactory : TcaSchemaFactory
getAvailableTables()
Returns the list of tables that contain deleted records, with counts.
public
getAvailableTables(int $startUid, int $depth) : array<int, array{0: string, 1: int, 2: string}>
Each entry is an array of [tableName, deletedCount, tableTitle]. The first entry is always the "all record types" summary.
Parameters
- $startUid : int
-
UID of the selected page
- $depth : int
-
How many levels to recurse
Return values
array<int, array{0: string, 1: int, 2: string}>getDeletedRecords()
Loads deleted records, flattens them, paginates and transforms for display.
public
getDeletedRecords(int $startUid, string $table, int $depth, string $filterTxt, int $currentPage, int $itemsPerPage) : array{groupedRecords: array, totalItems: int}
Parameters
- $startUid : int
-
UID of the selected page
- $table : string
-
Table name filter (empty = all tables)
- $depth : int
-
How many levels to recurse
- $filterTxt : string
-
Search filter text
- $currentPage : int
-
Current page number (1-based)
- $itemsPerPage : int
-
Number of items per page