- Full name:
\League\Flysystem\UnixVisibility\PortableVisibilityConverter
- This class implements:
\League\Flysystem\UnixVisibility\VisibilityConverter
private int $filePublic
private int $filePrivate
private int $directoryPublic
private int $directoryPrivate
private string $defaultForDirectories
public __construct(int $filePublic = 0644, int $filePrivate = 0600, int $directoryPublic = 0755, int $directoryPrivate = 0700, string $defaultForDirectories = Visibility::PRIVATE): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$filePublic |
int | |
$filePrivate |
int | |
$directoryPublic |
int | |
$directoryPrivate |
int | |
$defaultForDirectories |
string |
public forFile(string $visibility): int
Parameters:
Parameter | Type | Description |
---|---|---|
$visibility |
string |
public forDirectory(string $visibility): int
Parameters:
Parameter | Type | Description |
---|---|---|
$visibility |
string |
public inverseForFile(int $visibility): string
Parameters:
Parameter | Type | Description |
---|---|---|
$visibility |
int |
public inverseForDirectory(int $visibility): string
Parameters:
Parameter | Type | Description |
---|---|---|
$visibility |
int |
public defaultForDirectories(): int
public static fromArray(array $permissionMap, string $defaultForDirectories = Visibility::PRIVATE): \League\Flysystem\UnixVisibility\PortableVisibilityConverter
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$permissionMap |
array | |
$defaultForDirectories |
string |