PermissionController
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.
Attributes
- #[AsController]
Table of Contents
Properties
- $backendViewFactory : BackendViewFactory
- $depth : int
- $iconFactory : IconFactory
- $id : int
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageInfo : array<string|int, mixed>
- $pageRenderer : PageRenderer
- $responseFactory : ResponseFactoryInterface
- $returnUrl : string
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- editAction() : ResponseInterface
- handleAjaxRequest() : ResponseInterface
- handleRequest() : ResponseInterface
- indexAction() : ResponseInterface
- addFlashMessage() : void
- Adds a flash message to the default flash message queue
- getBackendUser() : BackendUserAuthentication
- getDepthOptions() : array<string|int, mixed>
- getLanguageService() : LanguageService
- getRecursiveSelectOptions() : array<string|int, mixed>
- Finding tree and offer setting of values recursively.
- getShortcutTitle() : string
- Returns the shortcut title for the current page
- getTree() : array<string|int, mixed>
- htmlResponse() : ResponseInterface
- registerDocHeaderButtons() : void
- updateAction() : ResponseInterface
Properties
$backendViewFactory read-only
protected
BackendViewFactory
$backendViewFactory
$depth
protected
int
$depth
$iconFactory read-only
protected
IconFactory
$iconFactory
$id
protected
int
$id
= 0
$moduleTemplateFactory read-only
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageInfo
protected
array<string|int, mixed>
$pageInfo
= []
$pageRenderer read-only
protected
PageRenderer
$pageRenderer
$responseFactory read-only
protected
ResponseFactoryInterface
$responseFactory
$returnUrl
protected
string
$returnUrl
= ''
$uriBuilder read-only
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(ModuleTemplateFactory $moduleTemplateFactory, PageRenderer $pageRenderer, IconFactory $iconFactory, UriBuilder $uriBuilder, ResponseFactoryInterface $responseFactory, BackendViewFactory $backendViewFactory) : mixed
Parameters
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageRenderer : PageRenderer
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
- $responseFactory : ResponseFactoryInterface
- $backendViewFactory : BackendViewFactory
editAction()
public
editAction(ModuleTemplate $view, ServerRequestInterface $request) : ResponseInterface
Parameters
- $view : ModuleTemplate
- $request : ServerRequestInterface
Return values
ResponseInterfacehandleAjaxRequest()
public
handleAjaxRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacehandleRequest()
public
handleRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceindexAction()
public
indexAction(ModuleTemplate $view, ServerRequestInterface $request) : ResponseInterface
Parameters
- $view : ModuleTemplate
- $request : ServerRequestInterface
Return values
ResponseInterfaceaddFlashMessage()
Adds a flash message to the default flash message queue
protected
addFlashMessage(string $message[, string $title = '' ][, ContextualFeedbackSeverity $severity = ContextualFeedbackSeverity::INFO ]) : void
Parameters
- $message : string
- $title : string = ''
- $severity : ContextualFeedbackSeverity = ContextualFeedbackSeverity::INFO
getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetDepthOptions()
protected
getDepthOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetRecursiveSelectOptions()
Finding tree and offer setting of values recursively.
protected
getRecursiveSelectOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getShortcutTitle()
Returns the shortcut title for the current page
protected
getShortcutTitle() : string
Return values
stringgetTree()
protected
getTree() : array<string|int, mixed>
Return values
array<string|int, mixed>htmlResponse()
protected
htmlResponse(string $html[, int $code = 200 ]) : ResponseInterface
Parameters
- $html : string
- $code : int = 200
Return values
ResponseInterfaceregisterDocHeaderButtons()
protected
registerDocHeaderButtons(ModuleTemplate $view, string $action) : void
Parameters
- $view : ModuleTemplate
- $action : string
updateAction()
protected
updateAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface