NodeResource
in package
implements
InteractionResource
FinalYes
A resource representing files and folders.
Tags
Attributes
- #[Consumable]
- $since: '34.0.2'
Table of Contents
Interfaces
Properties
- $nodeId : int
- $node : Node|null
- $nodePermissions : Constants::PERMISSION_*>|null
- $userId : string
Methods
- __construct() : mixed
- getID() : string
- Returns the ID that uniquely identifies this resource.
- getNode() : Node
- If you need to check the node permissions, use {@see getNodePermissions} instead.
- getNodePermissions() : Constants::PERMISSION_*>
- Returns the merged permissions of all node instances the user has access to.
Properties
$nodeId read-only
public
int
$nodeId
$node
private
Node|null
$node
= null
$nodePermissions
private
Constants::PERMISSION_*>|null
$nodePermissions
= null
$userId read-only
private
string
$userId
Methods
__construct()
public
__construct(int $nodeId, string $userId[, Node|null $node = null ][, int|null $nodePermissions = null ]) : mixed
Parameters
- $nodeId : int
- $userId : string
- $node : Node|null = null
- $nodePermissions : int|null = null
Tags
getID()
Returns the ID that uniquely identifies this resource.
public
getID() : string
Tags
Attributes
- #[Override]
Return values
stringgetNode()
If you need to check the node permissions, use {@see getNodePermissions} instead.
public
getNode() : Node
Tags
Return values
NodegetNodePermissions()
Returns the merged permissions of all node instances the user has access to.
public
getNodePermissions() : Constants::PERMISSION_*>