Nextcloud PHP API (master)

LockContext
in package

FinalYes

Structure to identify a specific lock context to request or describe a lock with the affected node and ownership information

This is used to match a lock/unlock request or file operation to existing locks

Tags
since
24.0.0

Table of Contents

Properties

$node  : Node
$owner  : string
$type  : int

Methods

__construct()  : mixed
__toString()  : string
getNode()  : Node
getOwner()  : string
getType()  : int

Properties

Methods

__construct()

public __construct(Node $node, int $type, string $owner) : mixed
Parameters
$node : Node

Node that is owned by the lock

$type : int

Type of the lock owner

$owner : string

Unique identifier for the lock owner based on the type

Tags
since
24.0.0

__toString()

public __toString() : string
Tags
since
24.0.0
Return values
string

getOwner()

public getOwner() : string
Tags
since
24.0.0
Return values
string

user id / app id / lock token depending on the type

getType()

public getType() : int
Tags
since
24.0.0
Return values
int

        
On this page

Search results