프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$id | User id | ||
$user | User |
메소드 | 설명 | |
---|---|---|
__construct ( $id, $user = null, $config = [] ) | ||
__get ( $name ) | ||
assign ( array $items ) : integer | Grands a roles from a user. | |
getItems ( ) : array | Get all available and assigned roles/permission | |
revoke ( array $items ) : integer | Revokes a roles from a user. |