public function vfsStreamFile::hasExclusiveLock in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamFile.php \org\bovigo\vfs\vfsStreamFile::hasExclusiveLock()
checks whether file is locked in exclusive mode
@since 0.10.0
Parameters
resource|vfsStreamWrapper $resource:
Return value
bool
See also
https://github.com/mikey179/vfsStream/issues/6
https://github.com/mikey179/vfsStream/issues/40
3 calls to vfsStreamFile::hasExclusiveLock()
- vfsStreamFile::isLocked in vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamFile.php - checks whether file is locked
- vfsStreamFile::lock in vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamFile.php - locks file for
- vfsStreamFile::unlock in vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamFile.php - Removes lock from file acquired by given resource
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamFile.php, line 386
Class
- vfsStreamFile
- File container.
Namespace
org\bovigo\vfsCode
public function hasExclusiveLock($resource = null) {
if (null !== $resource) {
return $this->exclusiveLock === $this
->getResourceId($resource);
}
return null !== $this->exclusiveLock;
}