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
Table of Contents
Properties
Methods
- __construct() : mixed
- __toString() : string
- getNode() : Node
- getOwner() : string
- getType() : int
Properties
$node
private
Node
$node
$owner
private
string
$owner
$type
private
int
$type
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
__toString()
public
__toString() : string
Tags
Return values
stringgetNode()
public
getNode() : Node
Tags
Return values
NodegetOwner()
public
getOwner() : string
Tags
Return values
string —user id / app id / lock token depending on the type
getType()
public
getType() : int