PHP 인터페이스 Neos\Flow\Security\Authorization\PrivilegeManagerInterface

파일 보기 프로젝트 열기: neos/flow-development-collection 0 사용 예제들

공개 메소드들

메소드 설명
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.
isGrantedForRoles ( array $roles, string $privilegeType, mixed $subject, string &$reason = '' ) : boolean Returns TRUE, if the given privilege type would be granted for the given roles and subject
isPrivilegeTargetGranted ( string $privilegeTargetIdentifier, array $privilegeParameters = [] ) : boolean Returns TRUE if access is granted on the given privilege target in the current security context
isPrivilegeTargetGrantedForRoles ( array $roles, string $privilegeTargetIdentifier, array $privilegeParameters = [] ) : boolean Returns TRUE if access is granted on the given privilege target in the current security context

메소드 상세

isGranted() 공개 메소드

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

isGrantedForRoles() 공개 메소드

Returns TRUE, if the given privilege type would be granted for the given roles and subject
public isGrantedForRoles ( array $roles, string $privilegeType, mixed $subject, string &$reason = '' ) : boolean
$roles array
$privilegeType string The type of privilege that should be evaluated
$subject mixed The subject to check privileges for
$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
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

isPrivilegeTargetGrantedForRoles() 공개 메소드

Returns TRUE if access is granted on the given privilege target in the current security context
public isPrivilegeTargetGrantedForRoles ( array $roles, string $privilegeTargetIdentifier, array $privilegeParameters = [] ) : boolean
$roles array
$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