‪TYPO3CMS  ‪main
TYPO3\CMS\Recycler\Controller\RecyclerAjaxController Class Reference

Public Member Functions

 __construct (protected readonly BackendViewFactory $backendViewFactory, protected readonly FrontendInterface $runtimeCache, protected readonly IconFactory $iconFactory, protected readonly ConnectionPool $connectionPool, protected readonly RecordHistory $recordHistory)
 
 dispatch (ServerRequestInterface $request)
 

Protected Member Functions

 transform (array $deletedRowsArray)
 
 getPageTitle (int $pageId)
 
 getBackendUserInformation (int $userId)
 
 setDataInSession (array $data)
 
string getRecordPath (int $uid)
 
 isParentPageDeleted (int $pid)
 
array getTables (int $startUid, int $depth)
 
 getBackendUser ()
 
 getLanguageService ()
 

Protected Attributes

array $conf = []
 

Detailed Description

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

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 46 of file RecyclerAjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::__construct ( protected readonly BackendViewFactory  $backendViewFactory,
protected readonly FrontendInterface  $runtimeCache,
protected readonly IconFactory  $iconFactory,
protected readonly ConnectionPool  $connectionPool,
protected readonly RecordHistory  $recordHistory 
)

Definition at line 53 of file RecyclerAjaxController.php.

Member Function Documentation

◆ dispatch()

◆ getBackendUser()

TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::getBackendUser ( )
protected

◆ getBackendUserInformation()

TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::getBackendUserInformation ( int  $userId)
protected

Gets the username of a given backend user

Definition at line 222 of file RecyclerAjaxController.php.

References TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().

Referenced by TYPO3\CMS\Recycler\Controller\RecyclerAjaxController\transform().

◆ getLanguageService()

TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::getLanguageService ( )
protected

◆ getPageTitle()

TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::getPageTitle ( int  $pageId)
protected

Gets the page title of the given page id

Definition at line 203 of file RecyclerAjaxController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Recycler\Controller\RecyclerAjaxController\transform().

◆ getRecordPath()

string TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::getRecordPath ( int  $uid)
protected

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.

Parameters
int$uid‪Page uid for which to create record path
Returns
‪string Path of record (string) OR array with short/long title if $fullTitleLimit is set.

Definition at line 267 of file RecyclerAjaxController.php.

References $output, TYPO3\CMS\Webhooks\Message\$uid, TYPO3\CMS\Core\Utility\GeneralUtility\fixed_lgd_cs(), and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Recycler\Controller\RecyclerAjaxController\transform().

◆ getTables()

array TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::getTables ( int  $startUid,
int  $depth 
)
protected

◆ isParentPageDeleted()

TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::isParentPageDeleted ( int  $pid)
protected

Check if parent record is deleted

Definition at line 306 of file RecyclerAjaxController.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Recycler\Controller\RecyclerAjaxController\transform().

◆ setDataInSession()

TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::setDataInSession ( array  $data)
protected

Sets data in the session of the current backend user.

Parameters
array$data‪The data to be stored in the session

Definition at line 249 of file RecyclerAjaxController.php.

References TYPO3\CMS\Recycler\Controller\RecyclerAjaxController\getBackendUser().

Referenced by TYPO3\CMS\Recycler\Controller\RecyclerAjaxController\dispatch().

◆ transform()

TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::transform ( array  $deletedRowsArray)
protected

Member Data Documentation

◆ $conf

array TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::$conf = []
protected

The local configuration array

Definition at line 51 of file RecyclerAjaxController.php.