public function vfsStreamFile::hasSharedLock 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::hasSharedLock()
checks whether file is locked in shared 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
2 calls to vfsStreamFile::hasSharedLock()
- vfsStreamFile::isLocked in vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamFile.php - checks whether file is locked
- 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 352
Class
- vfsStreamFile
- File container.
Namespace
org\bovigo\vfsCode
public function hasSharedLock($resource = null) {
if (null !== $resource) {
return isset($this->sharedLock[$this
->getResourceId($resource)]);
}
return !empty($this->sharedLock);
}