public function vfsStreamAbstractContent::isExecutable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamAbstractContent.php \org\bovigo\vfs\vfsStreamAbstractContent::isExecutable()
checks whether content is executable
Parameters
int $user id of user to check for:
int $group id of group to check for:
Return value
bool
Overrides vfsStreamContent::isExecutable
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamAbstractContent.php, line 300
Class
- vfsStreamAbstractContent
- Base stream contents container.
Namespace
org\bovigo\vfsCode
public function isExecutable($user, $group) {
if ($this->user === $user) {
$check = 0100;
}
elseif ($this->group === $group) {
$check = 010;
}
else {
$check = 01;
}
return (bool) ($this->permissions & $check);
}