UserRbacRow
API reference › Debug Core › Panel › User › UserRbacRow
Represents one RBAC item row (role or permission) in the User panel detail view.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$createdAt readonly constructor | int| | UNIX timestamp of item creation, or null when not recorded. | UserRbacRow |
$data readonly constructor | string | Serialized arbitrary data attached to the item, or an empty string when absent. | UserRbacRow |
$description readonly constructor | string | Human-readable description of the item’s purpose. | UserRbacRow |
$name readonly constructor | string | Item name, unique within the hierarchy. | UserRbacRow |
$ruleName readonly constructor | string | Name of the rule associated with the item, or an empty string when none. | UserRbacRow |
$updatedAt readonly constructor | int| | UNIX timestamp of the last item update, or null when not recorded. | UserRbacRow |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a User panel role or permission row. | UserRbacRow |
fromArray() static | Builds a row from the normalized array shape produced by RBAC adapters. | UserRbacRow |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $name, string $description, string $ruleName, string $data, int|null $createdAt, int|null $updatedAt)Creates a User panel role or permission row.
Parameters
| Parameter | Type | Description |
|---|---|---|
$name | string | Item name, unique within the hierarchy. |
$description | string | Human-readable description of the item’s purpose. |
$ruleName | string | Name of the rule associated with the item, or an empty string when none. |
$data | string | Serialized arbitrary data attached to the item, or an empty string when absent. |
$createdAt | int| | UNIX timestamp of item creation, or null when not recorded. |
$updatedAt | int| | UNIX timestamp of the last item update, or null when not recorded. |
fromArray()
Section titled “fromArray() ”public static function fromArray(array<array-key, mixed> $row): selfBuilds a row from the normalized array shape produced by RBAC adapters.
Parameters
| Parameter | Type | Description |
|---|---|---|
$row | array<array-key, | Associative array with keys name, description, ruleName, data, createdAt, and updatedAt. |
Returns
self