PHP 클래스 Neos\Flow\Security\Authorization\TestingPrivilegeManager

상속: extends PrivilegeManager
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$overrideDecision boolean

공개 메소드들

메소드 설명
isGranted ( string $privilegeType, mixed $subject, string &$reason = '' ) : boolean Returns TRUE, if the given privilege type is granted for the given subject based on the current security context or if set based on the override decision value.
isPrivilegeTargetGranted ( string $privilegeTargetIdentifier, array $privilegeParameters = [] ) : boolean Returns TRUE if access is granted on the given privilege target in the current security context or if set based on the override decision value.
reset ( ) : void Resets the AccessDecisionManager to behave transparently.
setOverrideDecision ( boolean $overrideDecision ) : void Set the decision override

메소드 상세

isGranted() 공개 메소드

Returns TRUE, if the given privilege type is granted for the given subject based on the current security context or if set based on the override decision value.
public isGranted ( string $privilegeType, mixed $subject, string &$reason = '' ) : boolean
$privilegeType string
$subject mixed
$reason string This variable will be filled by a message giving information about the reasons for the result of this method
리턴 boolean

isPrivilegeTargetGranted() 공개 메소드

Returns TRUE if access is granted on the given privilege target in the current security context or if set based on the override decision value.
public isPrivilegeTargetGranted ( string $privilegeTargetIdentifier, array $privilegeParameters = [] ) : boolean
$privilegeTargetIdentifier string The identifier of the privilege target to decide on
$privilegeParameters array Optional array of privilege parameters (simple key => value array)
리턴 boolean TRUE if access is granted, FALSE otherwise

reset() 공개 메소드

Resets the AccessDecisionManager to behave transparently.
public reset ( ) : void
리턴 void

setOverrideDecision() 공개 메소드

Set the decision override
public setOverrideDecision ( boolean $overrideDecision ) : void
$overrideDecision boolean TRUE or FALSE to override the decision, NULL to use the access decision voter manager
리턴 void

프로퍼티 상세

$overrideDecision 보호되어 있는 프로퍼티

protected bool $overrideDecision
리턴 boolean