‪TYPO3CMS  10.4
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 ()
 

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 35 of file PermissionAjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

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

The constructor of this class

Definition at line 50 of file PermissionAjaxController.php.

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

Member Function Documentation

◆ dispatch()

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

◆ getLanguageService()

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

Definition at line 303 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 229 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
int$editLockState‪The state of the TYPO3 page (locked, unlocked)
Returns
‪string The new edit lock string wrapped in HTML

Definition at line 285 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 185 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 41 of file PermissionAjaxController.php.

◆ $iconFactory

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

Definition at line 45 of file PermissionAjaxController.php.