PermissionsViewHelper

final class \TYPO3\CMS\Beuser\ViewHelpers\PermissionsViewHelper

Extends
AbstractViewHelper
Uses
CompileWithRenderStatic

Render permission icon group (user / group / others) of the "Access" module.

Most of that could be done in fluid directly, but this ViewHelper is much better performance wise.

Table of Contents

Constants

MASKS  : mixed = [1, 16, 2, 4, 8]

Properties

$cachePermissionLabels  : array
$escapeOutput  : bool
As this ViewHelper renders HTML, the output must not be escaped.

Methods

initializeArguments()  : void
renderStatic()  : string
getLanguageService()  : LanguageService
resolvePermissionLabel()  : string

Constants

MASKS

protected mixed MASKS = [1, 16, 2, 4, 8]

Properties

$cachePermissionLabels

protected static array $cachePermissionLabels = []

$escapeOutput

As this ViewHelper renders HTML, the output must not be escaped.

protected bool $escapeOutput = false

Methods

initializeArguments()

public initializeArguments() : void

renderStatic()

public static renderStatic(array{permission: int, scope: string, pageId: int} $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string

Parameters

$arguments : array{permission: int, scope: string, pageId: int}
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface

Return values

string

resolvePermissionLabel()

protected static resolvePermissionLabel(int $mask) : string

Parameters

$mask : int

Return values

string
On this page