◆ __construct()
Constructs a new lock object with the provided id.
- Parameters
-
String | $id | Identifier of the lock |
◆ release()
Releases a previously obtained lock
- Returns
- boolean true on success or false on failure
◆ tryLock()
Try to aquire a file lock. The provided lock information will be stored with the lock. If the lock cannot be aquired, the lock information in $data is updated from the lock file.
- Parameters
-
array | $data | additional data to be stored with the lock |
- Returns
- boolean true on success or false on failure
◆ $file
The documentation for this class was generated from the following file: