FileResource
- Full name:
\Codefy\Framework\Auth\Rbac\Resource\FileResource
- Parent class:
\Codefy\Framework\Auth\Rbac\Resource\BaseStorageResource
Properties
file
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$file | string |
load
Throws:
save
Throws:
roleToRow
Parameters:
Parameter | Type | Description |
---|---|---|
$role | \Codefy\Framework\Auth\Rbac\Entity\Role |
permissionToRow
Parameters:
Parameter | Type | Description |
---|---|---|
$permission | \Codefy\Framework\Auth\Rbac\Entity\Permission |
restorePermissions
Parameters:
Parameter | Type | Description |
---|---|---|
$permissionsData | array |
Throws:
restoreRoles
Parameters:
Parameter | Type | Description |
---|---|---|
$rolesData | mixed |
Throws:
Inherited methods
addRole
public addRole(string $name, string $description = ''): \Codefy\Framework\Auth\Rbac\Entity\Role
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$description | string |
Throws:
addPermission
public addPermission(string $name, string $description = ''): \Codefy\Framework\Auth\Rbac\Entity\Permission
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$description | string |
getRole
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
deleteRole
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
getPermission
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
deletePermission
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
clear
Automatically generated on 2025-10-13