ILockingProvider
in
This interface allows locking and unlocking filesystem paths
This interface should be used directly and not implemented by an application. The implementation is provided by the server.
Tags
Table of Contents
Constants
- LOCK_EXCLUSIVE = 2
- LOCK_SHARED = 1
Methods
- acquireLock() : void
- changeLock() : void
- Change the target type of an existing lock
- isLocked() : bool
- releaseAll() : void
- Release all lock acquired by this instance
- releaseLock() : void
Constants
LOCK_EXCLUSIVE
public
mixed
LOCK_EXCLUSIVE
= 2
Tags
LOCK_SHARED
public
mixed
LOCK_SHARED
= 1
Tags
Methods
acquireLock()
public
acquireLock(string $path, int $type[, string|null $readablePath = null ]) : void
Parameters
- $path : string
- $type : int
- $readablePath : string|null = null
-
A human-readable path to use in error messages, since 20.0.0
Tags
changeLock()
Change the target type of an existing lock
public
changeLock(string $path, int $targetType) : void
Parameters
- $path : string
- $targetType : int
Tags
isLocked()
public
isLocked(string $path, int $type) : bool
Parameters
- $path : string
- $type : int
Tags
Return values
boolreleaseAll()
Release all lock acquired by this instance
public
releaseAll() : void
Tags
releaseLock()
public
releaseLock(string $path, int $type) : void
Parameters
- $path : string
- $type : int