RbacRole
- Full name:
\Codefy\Framework\Auth\Rbac\Entity\RbacRole
- This class implements:
\Codefy\Framework\Auth\Rbac\Entity\Role
Properties
childrenNames
permissionNames
name
description
rbacStorageCollection
Methods
__construct
public __construct(string $name, string $description, \Codefy\Framework\Auth\Rbac\Resource\StorageResource $rbacStorageCollection): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$description | string | |
$rbacStorageCollection | \Codefy\Framework\Auth\Rbac\Resource\StorageResource |
addChild
Parameters:
Parameter | Type | Description |
---|---|---|
$role | \Codefy\Framework\Auth\Rbac\Entity\Role |
removeChild
Parameters:
Parameter | Type | Description |
---|---|---|
$roleName | string |
getChildren
addPermission
Parameters:
Parameter | Type | Description |
---|---|---|
$permission | \Codefy\Framework\Auth\Rbac\Entity\Permission |
removePermission
Parameters:
Parameter | Type | Description |
---|---|---|
$permissionName | string |
getPermissions
Parameters:
Parameter | Type | Description |
---|---|---|
$withChildren | bool |
checkAccess
Parameters:
Parameter | Type | Description |
---|---|---|
$permissionName | string | |
$params | array|null |
collectChildrenPermissions
protected collectChildrenPermissions(\Codefy\Framework\Auth\Rbac\Entity\Permission $permission, mixed& $result): void
Parameters:
Parameter | Type | Description |
---|---|---|
$permission | \Codefy\Framework\Auth\Rbac\Entity\Permission | |
$result | mixed |
Automatically generated on 2025-10-13