TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
PermissionAjaxController Class Reference

Public Member Functions

 __construct ()
 

Protected Member Functions

 renderUserSelector ($page, $ownerUid, $username= '')
 
 renderGroupSelector ($page, $groupUid, $groupname= '')
 
 renderToggleEditLock ($page, $editLockState)
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

 $conf = []
 
 $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

Definition at line 32 of file PermissionAjaxController.php.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

getBackendUser ( )
protected
Returns

Definition at line 288 of file PermissionAjaxController.php.

References $GLOBALS.

getLanguageService ( )
protected
Returns

Definition at line 280 of file PermissionAjaxController.php.

References $GLOBALS.

Referenced by PermissionAjaxController\__construct().

renderGroupSelector (   $page,
  $groupUid,
  $groupname = '' 
)
protected

Generate the group selector element

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

Definition at line 218 of file PermissionAjaxController.php.

References BackendUtility\getGroupNames(), and Icon\SIZE_SMALL.

renderToggleEditLock (   $page,
  $editLockState 
)
protected

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

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

Definition at line 266 of file PermissionAjaxController.php.

References Icon\SIZE_SMALL.

renderUserSelector (   $page,
  $ownerUid,
  $username = '' 
)
protected

Generate the user selector element

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

Definition at line 182 of file PermissionAjaxController.php.

References BackendUtility\getUserNames(), and Icon\SIZE_SMALL.

Member Data Documentation

$conf = []
protected

Definition at line 39 of file PermissionAjaxController.php.

$iconFactory
protected

Definition at line 44 of file PermissionAjaxController.php.