‪TYPO3CMS  ‪main
TYPO3\CMS\Beuser\Controller\PermissionController Class Reference

Public Member Functions

 __construct (protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly PageRenderer $pageRenderer, protected readonly IconFactory $iconFactory, protected readonly UriBuilder $uriBuilder, protected readonly ResponseFactoryInterface $responseFactory, protected readonly BackendViewFactory $backendViewFactory,)
 
 handleRequest (ServerRequestInterface $request)
 
 handleAjaxRequest (ServerRequestInterface $request)
 
 indexAction (ModuleTemplate $view, ServerRequestInterface $request)
 
 editAction (ModuleTemplate $view, ServerRequestInterface $request)
 

Protected Member Functions

 updateAction (ServerRequestInterface $request)
 
 registerDocHeaderButtons (ModuleTemplate $view, string $action)
 
 getTree ()
 
 getDepthOptions ()
 
 getRecursiveSelectOptions ()
 
 addFlashMessage (string $message, string $title='', ContextualFeedbackSeverity $severity=ContextualFeedbackSeverity::INFO)
 
 getShortcutTitle ()
 
 htmlResponse (string $html, int $code=200)
 
 getBackendUser ()
 
 getLanguageService ()
 

Protected Attributes

int $id = 0
 
string $returnUrl = ''
 
int $depth
 
array $pageInfo = []
 

Private Attributes

const SESSION_PREFIX = 'tx_Beuser_'
 
const DEPTH_LEVELS = [1, 2, 3, 4, 10]
 
const RECURSIVE_LEVELS = 10
 

Detailed Description

Backend module page permissions. This is the "Access" module in main module. Also includes the ajax endpoint for convenient methods for editing of page permissions (including page ownership (user and group)).

This class is a TYPO3 Backend implementation and is not considered part of the Public TYPO3 API.

Definition at line 52 of file PermissionController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Beuser\Controller\PermissionController::__construct ( protected readonly ModuleTemplateFactory  $moduleTemplateFactory,
protected readonly PageRenderer  $pageRenderer,
protected readonly IconFactory  $iconFactory,
protected readonly UriBuilder  $uriBuilder,
protected readonly ResponseFactoryInterface  $responseFactory,
protected readonly BackendViewFactory  $backendViewFactory 
)

Definition at line 63 of file PermissionController.php.

Member Function Documentation

◆ addFlashMessage()

TYPO3\CMS\Beuser\Controller\PermissionController::addFlashMessage ( string  $message,
string  $title = '',
ContextualFeedbackSeverity  $severity = ContextualFeedbackSeverity::INFO 
)
protected

Adds a flash message to the default flash message queue

Definition at line 529 of file PermissionController.php.

Referenced by TYPO3\CMS\Beuser\Controller\PermissionController\handleRequest().

◆ editAction()

◆ getBackendUser()

TYPO3\CMS\Beuser\Controller\PermissionController::getBackendUser ( )
protected

◆ getDepthOptions()

TYPO3\CMS\Beuser\Controller\PermissionController::getDepthOptions ( )
protected

◆ getLanguageService()

◆ getRecursiveSelectOptions()

TYPO3\CMS\Beuser\Controller\PermissionController::getRecursiveSelectOptions ( )
protected

Finding tree and offer setting of values recursively.

Definition at line 487 of file PermissionController.php.

References TYPO3\CMS\Beuser\Controller\PermissionController\getLanguageService().

Referenced by TYPO3\CMS\Beuser\Controller\PermissionController\editAction().

◆ getShortcutTitle()

TYPO3\CMS\Beuser\Controller\PermissionController::getShortcutTitle ( )
protected

◆ getTree()

TYPO3\CMS\Beuser\Controller\PermissionController::getTree ( )
protected

◆ handleAjaxRequest()

TYPO3\CMS\Beuser\Controller\PermissionController::handleAjaxRequest ( ServerRequestInterface  $request)

◆ handleRequest()

◆ htmlResponse()

TYPO3\CMS\Beuser\Controller\PermissionController::htmlResponse ( string  $html,
int  $code = 200 
)
protected

◆ indexAction()

◆ registerDocHeaderButtons()

◆ updateAction()

TYPO3\CMS\Beuser\Controller\PermissionController::updateAction ( ServerRequestInterface  $request)
protected

Member Data Documentation

◆ $depth

int TYPO3\CMS\Beuser\Controller\PermissionController::$depth
protected

Definition at line 60 of file PermissionController.php.

◆ $id

int TYPO3\CMS\Beuser\Controller\PermissionController::$id = 0
protected

Definition at line 58 of file PermissionController.php.

◆ $pageInfo

array TYPO3\CMS\Beuser\Controller\PermissionController::$pageInfo = []
protected

◆ $returnUrl

string TYPO3\CMS\Beuser\Controller\PermissionController::$returnUrl = ''
protected

Definition at line 59 of file PermissionController.php.

◆ DEPTH_LEVELS

const TYPO3\CMS\Beuser\Controller\PermissionController::DEPTH_LEVELS = [1, 2, 3, 4, 10]
private

Definition at line 55 of file PermissionController.php.

◆ RECURSIVE_LEVELS

const TYPO3\CMS\Beuser\Controller\PermissionController::RECURSIVE_LEVELS = 10
private

Definition at line 56 of file PermissionController.php.

◆ SESSION_PREFIX

const TYPO3\CMS\Beuser\Controller\PermissionController::SESSION_PREFIX = 'tx_Beuser_'
private

Definition at line 54 of file PermissionController.php.