Свойство | Type | Description | |
---|---|---|---|
$perm | PermissionHandler instance | ||
$vgroups | Xpressengine\User\Repositories\VirtualGroupRepositoryInterface | VirtualGroupRepository instance |
Méthode | Description | |
---|---|---|
__construct ( |
Policy constructor. |
Méthode | Description | |
---|---|---|
check ( Xpressengine\User\UserInterface $user, |
Check allows | |
checker ( Xpressengine\User\UserInterface $user, string $type, mixed $value ) : boolean | 타입에 맞는 권한 판별 메서드를 호출 함. | |
extractExcepts ( array &$grants ) : array | Extract except user information | |
get ( string $name, string $siteKey = 'default' ) : |
Get a permission | |
groupInspect ( Xpressengine\User\UserInterface $user, array $criterion ) : boolean | User 가 속한 그룹이 권한이 있는지 판별. | |
isExcepted ( Xpressengine\User\UserInterface $user, array $userIds = [] ) : boolean | Check except user | |
isGuest ( Xpressengine\User\UserInterface $user ) : boolean | 전달된 사용자가 guest 인지 확인 | |
ratingInspect ( Xpressengine\User\UserInterface $user, string $criterion ) : boolean | User 가 권한이 있는 등급인지 판별 | |
userInspect ( Xpressengine\User\UserInterface $user, array $criterion ) : boolean | User 가 권한이 있는 대상으로 지정되어 있는지 판별 | |
userRating ( Xpressengine\User\UserInterface $user ) : string | Get a User's rating keyword | |
vgroupInspect ( Xpressengine\User\UserInterface $user, array $criterion ) : boolean | User 가 속한 가상그룹이 권한이 있는지 판별. |
public __construct ( |
||
$perm | PermissionHandler instance | |
$vgroups | Xpressengine\User\Repositories\VirtualGroupRepositoryInterface | VirtualGroupRepository instance |
protected extractExcepts ( array &$grants ) : array | ||
$grants | array | all grants information |
Résultat | array | user identifiers |
protected groupInspect ( Xpressengine\User\UserInterface $user, array $criterion ) : boolean | ||
$user | Xpressengine\User\UserInterface | user instance |
$criterion | array | criterion group ids |
Résultat | boolean |
protected isExcepted ( Xpressengine\User\UserInterface $user, array $userIds = [] ) : boolean | ||
$user | Xpressengine\User\UserInterface | user instance |
$userIds | array | except target identifiers |
Résultat | boolean |
protected ratingInspect ( Xpressengine\User\UserInterface $user, string $criterion ) : boolean | ||
$user | Xpressengine\User\UserInterface | user instance |
$criterion | string | user rating keyword |
Résultat | boolean |
protected userInspect ( Xpressengine\User\UserInterface $user, array $criterion ) : boolean | ||
$user | Xpressengine\User\UserInterface | user instance |
$criterion | array | criterion user ids |
Résultat | boolean |
protected userRating ( Xpressengine\User\UserInterface $user ) : string | ||
$user | Xpressengine\User\UserInterface | user instance |
Résultat | string |
protected vgroupInspect ( Xpressengine\User\UserInterface $user, array $criterion ) : boolean | ||
$user | Xpressengine\User\UserInterface | user instance |
$criterion | array | criterion vgroup ids |
Résultat | boolean |
protected PermissionHandler,Xpressengine\Permission $perm | ||
Résultat |