TYPO3  7.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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 = array()
 
 $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 367 of file PermissionAjaxController.php.

References $GLOBALS.

getLanguageService ( )
protected
Returns

Definition at line 359 of file PermissionAjaxController.php.

References $GLOBALS.

Referenced by PermissionAjaxController\__construct().

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

References $GLOBALS, GeneralUtility\fixed_lgd_cs(), and GeneralUtility\logDeprecatedFunction().

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

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

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

References $GLOBALS, GeneralUtility\fixed_lgd_cs(), and GeneralUtility\logDeprecatedFunction().

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

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

Member Data Documentation

$conf = array()
protected

Definition at line 39 of file PermissionAjaxController.php.

$iconFactory
protected

Definition at line 44 of file PermissionAjaxController.php.