PHP 클래스 Neos\FluidAdaptor\ViewHelpers\Security\IfHasRoleViewHelper

= Examples = This is being shown in case you have the Administrator role (aka role) defined in the current package according to the controllerContext This is being shown in case you have the Acme.MyPackage:Administrator role (aka role). This is being shown in case you have the Acme.MyPackage:Administrator role (aka role). Everything inside the tag is being displayed if you have the given role. This is being shown in case you have the role. This is being displayed in case you do not have the role. Everything inside the "then" tag is displayed if you have the role. Otherwise, everything inside the "else"-tag is displayed. This is being shown in case you have the specified role This is being shown in case "otherAccount" has the Acme.MyPackage:Administrator role (aka role).
상속: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractConditionViewHelper
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

공개 메소드들

메소드 설명
initializeArguments ( ) Initializes the "then" and "else" arguments
render ( ) : string renders child if the role could be found in the security context, otherwise renders child.

보호된 메소드들

메소드 설명
evaluateCondition ( null $arguments = null, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : boolean

메소드 상세

evaluateCondition() 보호된 정적인 메소드

protected static evaluateCondition ( null $arguments = null, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : boolean
$arguments null
$renderingContext TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
리턴 boolean

initializeArguments() 공개 메소드

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

render() 공개 메소드

renders child if the role could be found in the security context, otherwise renders child.
public render ( ) : string
리턴 string the rendered string