InstancePolicy
class InstancePolicy extends Policy
Class InstancePolicy
Properties
protected PermissionHandler | $perm | PermissionHandler instance | from Policy |
protected VirtualGroupRepositoryInterface | $vgroups | VirtualGroupRepository instance | from Policy |
Methods
from Policy
bool
__call(string $name, array $arguments)
Handle dynamic method calls into the policy.
Details
in Policy at line 53
__construct(PermissionHandler $perm, VirtualGroupRepositoryInterface $vgroups)
Policy constructor.
in Policy at line 66
protected Permission|null
get(string $name, string $siteKey = 'default')
Get a permission
in Policy at line 79
protected bool
check(UserInterface $user, Permission $permission, string $action)
Check allows
in Policy at line 108
protected array
extractExcepts(array $grants)
Extract except user information
in Policy at line 126
protected bool
isExcepted(UserInterface $user, array $userIds = array())
Check except user
in Policy at line 143
protected bool
checker(UserInterface $user, string $type, mixed $value)
타입에 맞는 권한 판별 메서드를 호출 함.
in Policy at line 157
protected bool
groupInspect(UserInterface $user, array $criterion)
User 가 속한 그룹이 권한이 있는지 판별.
in Policy at line 176
protected bool
vgroupInspect(UserInterface $user, array $criterion)
User 가 속한 가상그룹이 권한이 있는지 판별.
in Policy at line 199
protected bool
userInspect(UserInterface $user, array $criterion)
User 가 권한이 있는 대상으로 지정되어 있는지 판별
in Policy at line 215
protected bool
ratingInspect(UserInterface $user, string $criterion)
User 가 권한이 있는 등급인지 판별
in Policy at line 230
protected string
userRating(UserInterface $user)
Get a User's rating keyword
in Policy at line 245
protected bool
isGuest(UserInterface $user)
전달된 사용자가 guest 인지 확인
at line 36
bool
__call(string $name, array $arguments)
Handle dynamic method calls into the policy.