‪TYPO3CMS  9.5
TYPO3\CMS\Beuser\Controller\PermissionAjaxController Class Reference

Public Member Functions

 __construct ()
 
ResponseInterface dispatch (ServerRequestInterface $request)
 

Protected Member Functions

string renderUserSelector ($page, $ownerUid, $username='')
 
string renderGroupSelector ($page, $groupUid, $groupname='')
 
string renderToggleEditLock ($page, $editLockState)
 
TYPO3 CMS Core Localization LanguageService getLanguageService ()
 
TYPO3 CMS Core Authentication BackendUserAuthentication getBackendUser ()
 

Protected Attributes

array $conf
 
IconFactory $iconFactory
 

Detailed Description

This class extends the permissions module in the TYPO3 Backend to provide convenient methods of editing of page permissions (including page ownership (user and group)) via new AjaxRequestHandler facility

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

Definition at line 34 of file PermissionAjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Beuser\Controller\PermissionAjaxController::__construct ( )

The constructor of this class

Definition at line 49 of file PermissionAjaxController.php.

References TYPO3\CMS\Beuser\Controller\PermissionAjaxController\getLanguageService().

Member Function Documentation

◆ dispatch()

ResponseInterface TYPO3\CMS\Beuser\Controller\PermissionAjaxController::dispatch ( ServerRequestInterface  $request)

◆ getBackendUser()

TYPO3 CMS Core Authentication BackendUserAuthentication TYPO3\CMS\Beuser\Controller\PermissionAjaxController::getBackendUser ( )
protected
Returns
‪\TYPO3\CMS\Core\Authentication\BackendUserAuthentication

Definition at line 310 of file PermissionAjaxController.php.

References $GLOBALS.

◆ getLanguageService()

TYPO3 CMS Core Localization LanguageService TYPO3\CMS\Beuser\Controller\PermissionAjaxController::getLanguageService ( )
protected
Returns
‪\TYPO3\CMS\Core\Localization\LanguageService

Definition at line 302 of file PermissionAjaxController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Beuser\Controller\PermissionAjaxController\__construct().

◆ renderGroupSelector()

string TYPO3\CMS\Beuser\Controller\PermissionAjaxController::renderGroupSelector (   $page,
  $groupUid,
  $groupname = '' 
)
protected

Generate the group selector element

Parameters
int$page‪The page id to change the user for
int$groupUid‪The page group uid
string$groupname‪The groupname to display
Returns
‪string The html select element

Definition at line 228 of file PermissionAjaxController.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getGroupNames(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Beuser\Controller\PermissionAjaxController\dispatch().

◆ renderToggleEditLock()

string TYPO3\CMS\Beuser\Controller\PermissionAjaxController::renderToggleEditLock (   $page,
  $editLockState 
)
protected

Print the string with the new edit lock state of a page record

Parameters
int$page‪The TYPO3 page id
string$editLockState‪The state of the TYPO3 page (locked, unlocked)
Returns
‪string The new edit lock string wrapped in HTML

Definition at line 284 of file PermissionAjaxController.php.

References TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Beuser\Controller\PermissionAjaxController\dispatch().

◆ renderUserSelector()

string TYPO3\CMS\Beuser\Controller\PermissionAjaxController::renderUserSelector (   $page,
  $ownerUid,
  $username = '' 
)
protected

Generate the user selector element

Parameters
int$page‪The page id to change the user for
int$ownerUid‪The page owner uid
string$username‪The username to display
Returns
‪string The html select element

Definition at line 184 of file PermissionAjaxController.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getUserNames(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Beuser\Controller\PermissionAjaxController\dispatch().

Member Data Documentation

◆ $conf

array TYPO3\CMS\Beuser\Controller\PermissionAjaxController::$conf
protected

The local configuration array

Definition at line 40 of file PermissionAjaxController.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Beuser\Controller\PermissionAjaxController::$iconFactory
protected

Definition at line 44 of file PermissionAjaxController.php.