TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Beuser\Controller\PermissionAjaxController Class Reference

Public Member Functions

 __construct ()
 

Static Public Member Functions

static renderOwnername ($page, $ownerUid, $username, $validUser=true)
 
static renderGroupname ($page, $groupUid, $groupname, $validGroup=true)
 

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()

TYPO3\CMS\Beuser\Controller\PermissionAjaxController::getBackendUser ( )
protected
Returns

Definition at line 388 of file PermissionAjaxController.php.

References $GLOBALS.

◆ getLanguageService()

TYPO3\CMS\Beuser\Controller\PermissionAjaxController::getLanguageService ( )
protected

◆ renderGroupname()

static TYPO3\CMS\Beuser\Controller\PermissionAjaxController::renderGroupname (   $page,
  $groupUid,
  $groupname,
  $validGroup = true 
)
static

Print the string with the new group of a page record

Parameters
int$pageThe TYPO3 page id
int$groupUidThe new page group uid
string$groupnameThe TYPO3 BE groupname (used to display in the element)
bool$validGroupMust be set to FALSE, if the group has no name or is deleted
Returns
string The new group wrapped in HTML
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8. This is now solved with fluid.

Definition at line 304 of file PermissionAjaxController.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\fixed_lgd_cs(), and TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

◆ renderGroupSelector()

TYPO3\CMS\Beuser\Controller\PermissionAjaxController::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 228 of file PermissionAjaxController.php.

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

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

◆ renderOwnername()

static TYPO3\CMS\Beuser\Controller\PermissionAjaxController::renderOwnername (   $page,
  $ownerUid,
  $username,
  $validUser = true 
)
static

Print the string with the new owner of a page record

Parameters
int$pageThe TYPO3 page id
int$ownerUidThe new page user uid
string$usernameThe TYPO3 BE username (used to display in the element)
bool$validUserMust be set to FALSE, if the user has no name or is deleted
Returns
string The new group wrapped in HTML
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8. This is now solved with fluid.

Definition at line 287 of file PermissionAjaxController.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\fixed_lgd_cs(), and TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

◆ renderToggleEditLock()

TYPO3\CMS\Beuser\Controller\PermissionAjaxController::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 318 of file PermissionAjaxController.php.

References $GLOBALS, TYPO3\CMS\Beuser\Controller\PermissionAjaxController\$iconFactory, TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

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

◆ renderUserSelector()

TYPO3\CMS\Beuser\Controller\PermissionAjaxController::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 184 of file PermissionAjaxController.php.

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

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

Member Data Documentation

◆ $conf

TYPO3\CMS\Beuser\Controller\PermissionAjaxController::$conf = []
protected

Definition at line 39 of file PermissionAjaxController.php.

◆ $iconFactory

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