TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Perm\Controller\PermissionAjaxController Class Reference
Inheritance diagram for TYPO3\CMS\Perm\Controller\PermissionAjaxController:
SC_mod_web_perm_ajax

Public Member Functions

 __construct ()
 

Static Public Member Functions

static renderOwnername ($page, $ownerUid, $username, $validUser=TRUE)
 
static renderGroupname ($page, $groupUid, $groupname, $validGroup=TRUE)
 
static renderPermissions ($int, $pageId=0, $who='user')
 

Protected Member Functions

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

Protected Attributes

 $conf = array()
 
 $backPath = '../../../'
 

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

Author
Andreas Kundoch typo3.nosp@m.@meh.nosp@m.rwert.nosp@m..de GPL
Since
TYPO3_4-2

Definition at line 28 of file PermissionAjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ renderGroupname()

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

Print the string with the new group of a page record

Parameters
integer$pageThe TYPO3 page id
integer$groupUidThe new page group uid
string$groupnameThe TYPO3 BE groupname (used to display in the element)
boolean$validGroupMust be set to FALSE, if the group has no name or is deleted
Returns
string The new group wrapped in HTML

Definition at line 255 of file PermissionAjaxController.php.

Referenced by TYPO3\CMS\Perm\Controller\PermissionModuleController\getButtons().

◆ renderGroupSelector()

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

Generate the group selector element

Parameters
integer$pageThe page id to change the user for
integer$groupUidThe page group uid
string$usernameThe username to display
Returns
string The html select element

Definition at line 196 of file PermissionAjaxController.php.

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

◆ renderOwnername()

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

Print the string with the new owner of a page record

Parameters
integer$pageThe TYPO3 page id
integer$ownerUidThe new page user uid
string$usernameThe TYPO3 BE username (used to display in the element)
boolean$validUserMust be set to FALSE, if the user has no name or is deleted
Returns
string The new group wrapped in HTML

Definition at line 240 of file PermissionAjaxController.php.

Referenced by TYPO3\CMS\Perm\Controller\PermissionModuleController\getButtons().

◆ renderPermissions()

static TYPO3\CMS\Perm\Controller\PermissionAjaxController::renderPermissions (   $int,
  $pageId = 0,
  $who = 'user' 
)
static

Print a set of permissions. Also used in index.php

Parameters
integer$intPermission integer (bits)
integer$pageThe TYPO3 page id
string$whoThe scope (user, group or everybody)
Returns
string HTML marked up x/* indications.

Definition at line 285 of file PermissionAjaxController.php.

Referenced by TYPO3\CMS\Perm\Controller\PermissionModuleController\getButtons().

◆ renderToggleEditLock()

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

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

Parameters
integer$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 268 of file PermissionAjaxController.php.

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

◆ renderUserSelector()

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

Generate the user selector element

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

Definition at line 164 of file PermissionAjaxController.php.

References $GLOBALS, $uid, TYPO3\CMS\Backend\Utility\BackendUtility\blindUserNames(), and TYPO3\CMS\Backend\Utility\BackendUtility\getUserNames().

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

Member Data Documentation

◆ $backPath

TYPO3\CMS\Perm\Controller\PermissionAjaxController::$backPath = '../../../'
protected

Definition at line 34 of file PermissionAjaxController.php.

◆ $conf

TYPO3\CMS\Perm\Controller\PermissionAjaxController::$conf = array()
protected

Definition at line 31 of file PermissionAjaxController.php.