PHP Class Neos\FluidAdaptor\ViewHelpers\Security\IfAccessViewHelper

= Examples = This is being shown in case you have access to the given privilege Everything inside the tag is being displayed if you have access to the given privilege. This is being shown in case you have access. This is being displayed in case you do not have access. Everything inside the "then" tag is displayed if you have access. Otherwise, everything inside the "else"-tag is displayed. {f:security.ifAccess(privilegeTarget: 'someTarget', parameters: '{param1: \'value1\'}', then: 'has access', else: 'has no access')}
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractConditionViewHelper
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Méthodes publiques

Méthode Description
initializeArguments ( ) Initializes the "then" and "else" arguments
render ( ) : string renders child if access to the given resource is allowed, otherwise renders child.
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed

Méthodes protégées

Méthode Description
evaluateCondition ( null $arguments = null, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : boolean
getPrivilegeManager ( RenderingContext $renderingContext ) : Neos\Flow\Security\Authorization\PrivilegeManagerInterface

Method Details

evaluateCondition() protected static méthode

protected static evaluateCondition ( null $arguments = null, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : boolean
$arguments null
$renderingContext TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
Résultat boolean

getPrivilegeManager() protected static méthode

protected static getPrivilegeManager ( RenderingContext $renderingContext ) : Neos\Flow\Security\Authorization\PrivilegeManagerInterface
$renderingContext Neos\FluidAdaptor\Core\Rendering\RenderingContext
Résultat Neos\Flow\Security\Authorization\PrivilegeManagerInterface

initializeArguments() public méthode

Initializes the "then" and "else" arguments
public initializeArguments ( )

render() public méthode

renders child if access to the given resource is allowed, otherwise renders child.
public render ( ) : string
Résultat string the rendered then/else child nodes depending on the access

renderStatic() public static méthode

public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed
$arguments array
$renderChildrenClosure Closure
$renderingContext TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
Résultat mixed