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

Public Member Functions

 __construct (ModuleTemplateFactory $moduleTemplateFactory, PageRenderer $pageRenderer, IconFactory $iconFactory, UriBuilder $uriBuilder, ResponseFactoryInterface $responseFactory)
 
 handleRequest (ServerRequestInterface $request)
 
 handleAjaxRequest (ServerRequestInterface $request)
 
 indexAction (ServerRequestInterface $request)
 
 editAction (ServerRequestInterface $request)
 

Protected Member Functions

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

Protected Attributes

int $id = 0
 
string $returnUrl = ''
 
int $depth
 
array $pageInfo = []
 
ModuleTemplateFactory $moduleTemplateFactory
 
PageRenderer $pageRenderer
 
IconFactory $iconFactory
 
UriBuilder $uriBuilder
 
ResponseFactoryInterface $responseFactory
 
ModuleTemplate $moduleTemplate = null
 
ViewInterface $view = null
 

Private Attributes

const SESSION_PREFIX = 'tx_Beuser_'
 
const ALLOWED_ACTIONS = ['index', 'edit', 'update']
 
const DEPTH_LEVELS = [1, 2, 3, 4, 10]
 
const RECURSIVE_LEVELS = 10
 

Detailed Description

Backend module page permissions. 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 47 of file PermissionController.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ addFlashMessage()

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

Adds a flash message to the default flash message queue

Parameters
string$message
string$title
int$severity

Definition at line 557 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()

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

Finding tree and offer setting of values recursively.

Returns
‪array

Definition at line 511 of file PermissionController.php.

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

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

◆ getShortcutTitle()

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

Returns the shortcut title for the current page

Returns
‪string

Definition at line 570 of file PermissionController.php.

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

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

◆ getTree()

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

◆ handleAjaxRequest()

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

◆ handleRequest()

◆ htmlResponse()

◆ indexAction()

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

◆ initializeView()

TYPO3\CMS\Beuser\Controller\PermissionController::initializeView ( string  $template = '')
protected

◆ 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 56 of file PermissionController.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Beuser\Controller\PermissionController::$iconFactory
protected

◆ $id

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

Definition at line 54 of file PermissionController.php.

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Beuser\Controller\PermissionController::$moduleTemplate = null
protected

Definition at line 65 of file PermissionController.php.

◆ $moduleTemplateFactory

ModuleTemplateFactory TYPO3\CMS\Beuser\Controller\PermissionController::$moduleTemplateFactory
protected

◆ $pageInfo

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

◆ $pageRenderer

PageRenderer TYPO3\CMS\Beuser\Controller\PermissionController::$pageRenderer
protected

◆ $responseFactory

ResponseFactoryInterface TYPO3\CMS\Beuser\Controller\PermissionController::$responseFactory
protected

◆ $returnUrl

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

Definition at line 55 of file PermissionController.php.

◆ $uriBuilder

UriBuilder TYPO3\CMS\Beuser\Controller\PermissionController::$uriBuilder
protected

◆ $view

ViewInterface TYPO3\CMS\Beuser\Controller\PermissionController::$view = null
protected

Definition at line 66 of file PermissionController.php.

◆ ALLOWED_ACTIONS

const TYPO3\CMS\Beuser\Controller\PermissionController::ALLOWED_ACTIONS = ['index', 'edit', 'update']
private

Definition at line 50 of file PermissionController.php.

◆ DEPTH_LEVELS

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

Definition at line 51 of file PermissionController.php.

◆ RECURSIVE_LEVELS

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

Definition at line 52 of file PermissionController.php.

◆ SESSION_PREFIX

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

Definition at line 49 of file PermissionController.php.