RecyclerAjaxController

class \TYPO3\CMS\Recycler\Controller\RecyclerAjaxController

Controller class for the 'recycler' extension. Handles the AJAX Requests

Table of Contents

Properties

$backendViewFactory  : BackendViewFactory
$conf  : array
The local configuration array
$connectionPool  : ConnectionPool
$iconFactory  : IconFactory
$runtimeCache  : FrontendInterface

Methods

__construct()  : mixed
dispatch()  : ResponseInterface
The main dispatcher function. Collect data and prepare HTML output.
getBackendUser()  : BackendUserAuthentication
getBackendUserInformation()  : string
Gets the username of a given backend user
getLanguageService()  : LanguageService
getPageTitle()  : string
Gets the page title of the given page id
getRecordPath()  : string
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.
getTables()  : array
getUserWhoDeleted()  : int
Get the user uid of the user who deleted the record
isDeleteAllowed()  : bool
isParentPageDeleted()  : bool
Check if parent record is deleted
setDataInSession()  : void
Sets data in the session of the current backend user.
transform()  : array
Transforms the rows for the deleted records by grouping them by their corresponding table and processing the raw record data.

Properties

$conf

The local configuration array

protected array $conf = []

Methods

dispatch()

The main dispatcher function. Collect data and prepare HTML output.

public dispatch(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

getBackendUserInformation()

Gets the username of a given backend user

protected getBackendUserInformation(int $userId) : string

Parameters

$userId : int

Return values

string

getPageTitle()

Gets the page title of the given page id

protected getPageTitle(int $pageId) : string

Parameters

$pageId : int

Return values

string

getRecordPath()

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.

protected getRecordPath(int $uid) : string

Parameters

$uid : int

Page uid for which to create record path

Return values

string —

Path of record (string) OR array with short/long title if $fullTitleLimit is set.

getTables()

protected getTables(int $startUid, int $depth) : array

Parameters

$startUid : int

UID from selected page

$depth : int

How many levels recursive

Return values

array —

The tables to be displayed

getUserWhoDeleted()

Get the user uid of the user who deleted the record

protected getUserWhoDeleted(string $table, int $uid) : int

Parameters

$table : string
$uid : int

Tags

todo:

move this to RecordHistory class

Return values

int

isDeleteAllowed()

protected isDeleteAllowed() : bool

Return values

bool

isParentPageDeleted()

Check if parent record is deleted

protected isParentPageDeleted(int $pid) : bool

Parameters

$pid : int

Return values

bool

setDataInSession()

Sets data in the session of the current backend user.

protected setDataInSession(array $data) : void

Parameters

$data : array

The data to be stored in the session

transform()

Transforms the rows for the deleted records by grouping them by their corresponding table and processing the raw record data.

protected transform(array<string, array> $deletedRowsArray) : array

Parameters

$deletedRowsArray : array<string, array>

Return values

array
On this page