TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Perm\Controller\PermissionModuleController Class Reference
Inheritance diagram for TYPO3\CMS\Perm\Controller\PermissionModuleController:
SC_mod_web_perm_index

Public Member Functions

 __construct ()
 
 init ()
 
 menuConfig ()
 
 main ()
 
 printContent ()
 
 printCheckBox ($checkName, $num)
 
 getRecursiveSelect ($id, $perms_clause)
 

Public Attributes

 $getLevels = 10
 
 $doc
 
 $content
 
 $MOD_MENU = array()
 
 $MOD_SETTINGS = array()
 
 $perms_clause
 
 $pageinfo
 
 $color
 
 $color2
 
 $color3
 
 $editingAllowed
 
 $id
 
 $edit
 
 $return_id
 
 $lastEdited
 

Protected Member Functions

 getButtons ()
 

Protected Attributes

 $MCONF = array()
 

Detailed Description

Module: Permission setting

Script Class for the Web > Access module This module lets you view and change permissions for pages.

Variables: $this->MOD_SETTINGS['depth']: int 1-3: decides the depth of the list

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om
Andreas Kundoch typo3.nosp@m.@meh.nosp@m.rwert.nosp@m..de

Definition at line 33 of file PermissionModuleController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Perm\Controller\PermissionModuleController::__construct ( )

Constructor

Definition at line 152 of file PermissionModuleController.php.

References $GLOBALS.

Member Function Documentation

◆ getButtons()

TYPO3\CMS\Perm\Controller\PermissionModuleController::getButtons ( )
protected

Create the panel of buttons for submitting the form or otherwise perform operations.

Returns
array all available buttons as an assoc. array

Definition at line 277 of file PermissionModuleController.php.

References $GLOBALS, $uid, TYPO3\CMS\Backend\Utility\BackendUtility\BEgetRootLine(), TYPO3\CMS\Backend\Utility\BackendUtility\blindGroupNames(), TYPO3\CMS\Backend\Utility\BackendUtility\blindUserNames(), TYPO3\CMS\Backend\Utility\BackendUtility\cshItem(), TYPO3\CMS\Core\Utility\GeneralUtility\fixed_lgd_cs(), TYPO3\CMS\Backend\Utility\BackendUtility\getFuncMenu(), TYPO3\CMS\Backend\Utility\BackendUtility\getGroupNames(), TYPO3\CMS\Backend\Form\FormEngine\getHiddenTokenField(), TYPO3\CMS\Backend\Utility\BackendUtility\getListGroupNames(), TYPO3\CMS\Backend\Utility\BackendUtility\getModuleUrl(), TYPO3\CMS\Perm\Controller\PermissionModuleController\getRecursiveSelect(), TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIcon(), TYPO3\CMS\Backend\Utility\IconUtility\getSpriteIconForRecord(), TYPO3\CMS\Backend\Utility\BackendUtility\getUserNames(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), TYPO3\CMS\Perm\Controller\PermissionModuleController\printCheckBox(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), TYPO3\CMS\Perm\Controller\PermissionAjaxController\renderGroupname(), TYPO3\CMS\Perm\Controller\PermissionAjaxController\renderOwnername(), TYPO3\CMS\Perm\Controller\PermissionAjaxController\renderPermissions(), and TYPO3\CMS\Backend\Utility\IconUtility\skinImg().

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

◆ getRecursiveSelect()

TYPO3\CMS\Perm\Controller\PermissionModuleController::getRecursiveSelect (   $id,
  $perms_clause 
)

Finding tree and offer setting of values recursively.

Parameters
integer$idPage id.
string$perms_clauseSelect clause
Returns
string Select form element for recursive levels (if any levels are found)

Definition at line 607 of file PermissionModuleController.php.

References $GLOBALS, TYPO3\CMS\Perm\Controller\PermissionModuleController\$id, TYPO3\CMS\Perm\Controller\PermissionModuleController\$perms_clause, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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

◆ init()

TYPO3\CMS\Perm\Controller\PermissionModuleController::init ( )

◆ main()

◆ menuConfig()

TYPO3\CMS\Perm\Controller\PermissionModuleController::menuConfig ( )

Configuration of the menu and initialization of ->MOD_SETTINGS

Returns
void

Definition at line 191 of file PermissionModuleController.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), and TYPO3\CMS\Backend\Utility\BackendUtility\getModuleData().

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

◆ printCheckBox()

TYPO3\CMS\Perm\Controller\PermissionModuleController::printCheckBox (   $checkName,
  $num 
)

Print a checkbox for the edit-permission form

Parameters
string$checkNameCheckbox name key
integer$numCheckbox number index
Returns
string HTML checkbox

Definition at line 595 of file PermissionModuleController.php.

References $GLOBALS.

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

◆ printContent()

TYPO3\CMS\Perm\Controller\PermissionModuleController::printContent ( )

Outputting the accumulated content to screen

Returns
void

Definition at line 267 of file PermissionModuleController.php.

References TYPO3\CMS\Perm\Controller\PermissionModuleController\$content.

Member Data Documentation

◆ $color

TYPO3\CMS\Perm\Controller\PermissionModuleController::$color

Definition at line 97 of file PermissionModuleController.php.

◆ $color2

TYPO3\CMS\Perm\Controller\PermissionModuleController::$color2

Definition at line 104 of file PermissionModuleController.php.

◆ $color3

TYPO3\CMS\Perm\Controller\PermissionModuleController::$color3

Definition at line 111 of file PermissionModuleController.php.

◆ $content

TYPO3\CMS\Perm\Controller\PermissionModuleController::$content

◆ $doc

TYPO3\CMS\Perm\Controller\PermissionModuleController::$doc

Definition at line 55 of file PermissionModuleController.php.

◆ $edit

TYPO3\CMS\Perm\Controller\PermissionModuleController::$edit

Definition at line 133 of file PermissionModuleController.php.

◆ $editingAllowed

TYPO3\CMS\Perm\Controller\PermissionModuleController::$editingAllowed

◆ $getLevels

TYPO3\CMS\Perm\Controller\PermissionModuleController::$getLevels = 10

Definition at line 40 of file PermissionModuleController.php.

◆ $id

TYPO3\CMS\Perm\Controller\PermissionModuleController::$id

◆ $lastEdited

TYPO3\CMS\Perm\Controller\PermissionModuleController::$lastEdited

Definition at line 147 of file PermissionModuleController.php.

◆ $MCONF

TYPO3\CMS\Perm\Controller\PermissionModuleController::$MCONF = array()
protected

Definition at line 48 of file PermissionModuleController.php.

◆ $MOD_MENU

TYPO3\CMS\Perm\Controller\PermissionModuleController::$MOD_MENU = array()

Definition at line 69 of file PermissionModuleController.php.

◆ $MOD_SETTINGS

TYPO3\CMS\Perm\Controller\PermissionModuleController::$MOD_SETTINGS = array()

Definition at line 76 of file PermissionModuleController.php.

◆ $pageinfo

TYPO3\CMS\Perm\Controller\PermissionModuleController::$pageinfo

Definition at line 90 of file PermissionModuleController.php.

◆ $perms_clause

TYPO3\CMS\Perm\Controller\PermissionModuleController::$perms_clause

◆ $return_id

TYPO3\CMS\Perm\Controller\PermissionModuleController::$return_id

Definition at line 140 of file PermissionModuleController.php.