Nextcloud PHP API (master)

NodeResource
in package
implements InteractionResource

FinalYes

A resource representing files and folders.

Tags
since
34.0.2
Attributes
#[Consumable]
$since: '34.0.2'

Table of Contents

Interfaces

InteractionResource

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

$nodePermissions

private Constants::PERMISSION_*>|null $nodePermissions = null

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
since
34.0.2

getID()

Returns the ID that uniquely identifies this resource.

public getID() : string
Tags
since
34.0.2
Attributes
#[Override]
Return values
string

getNode()

If you need to check the node permissions, use {@see getNodePermissions} instead.

public getNode() : Node
Tags
since
34.0.2
Return values
Node

getNodePermissions()

Returns the merged permissions of all node instances the user has access to.

public getNodePermissions() : Constants::PERMISSION_*>
Tags
since
34.0.2
Return values
Constants::PERMISSION_*>
On this page

Search results