PermissionController
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.
Table of Contents
Properties
- $depth : int
- $iconFactory : IconFactory
- $id : int
- $moduleTemplate : ModuleTemplate|null
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageInfo : array<string|int, mixed>
- $pageRenderer : PageRenderer
- $responseFactory : ResponseFactoryInterface
- $returnUrl : string
- $uriBuilder : UriBuilder
- $view : ViewInterface|null
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
- initializeView() : void
- registerDocHeaderButtons() : void
- updateAction() : ResponseInterface
Properties
$depth
protected
int
$depth
$iconFactory
protected
IconFactory
$iconFactory
$id
protected
int
$id
= 0
$moduleTemplate
protected
ModuleTemplate|null
$moduleTemplate
= null
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageInfo
protected
array<string|int, mixed>
$pageInfo
= []
$pageRenderer
protected
PageRenderer
$pageRenderer
$responseFactory
protected
ResponseFactoryInterface
$responseFactory
$returnUrl
protected
string
$returnUrl
= ''
$uriBuilder
protected
UriBuilder
$uriBuilder
$view
protected
ViewInterface|null
$view
= null
Methods
__construct()
public
__construct(ModuleTemplateFactory $moduleTemplateFactory, PageRenderer $pageRenderer, IconFactory $iconFactory, UriBuilder $uriBuilder, ResponseFactoryInterface $responseFactory) : mixed
Parameters
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageRenderer : PageRenderer
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
- $responseFactory : ResponseFactoryInterface
editAction()
public
editAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $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(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceaddFlashMessage()
Adds a flash message to the default flash message queue
protected
addFlashMessage(string $message[, string $title = '' ][, int $severity = FlashMessage::INFO ]) : void
Parameters
- $message : string
- $title : string = ''
- $severity : int = FlashMessage::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
ResponseInterfaceinitializeView()
protected
initializeView([string $template = '' ]) : void
Parameters
- $template : string = ''
registerDocHeaderButtons()
protected
registerDocHeaderButtons(string $action) : void
Parameters
- $action : string
updateAction()
protected
updateAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface