Skip to content

Latest commit

 

History

History
279 lines (98 loc) · 2.43 KB

PortableVisibilityConverter.md

File metadata and controls

279 lines (98 loc) · 2.43 KB

PortableVisibilityConverter

Properties

filePublic

private int $filePublic

filePrivate

private int $filePrivate

directoryPublic

private int $directoryPublic

directoryPrivate

private int $directoryPrivate

defaultForDirectories

private string $defaultForDirectories

Methods

__construct

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

forFile

public forFile(string $visibility): int

Parameters:

Parameter Type Description
$visibility string

forDirectory

public forDirectory(string $visibility): int

Parameters:

Parameter Type Description
$visibility string

inverseForFile

public inverseForFile(int $visibility): string

Parameters:

Parameter Type Description
$visibility int

inverseForDirectory

public inverseForDirectory(int $visibility): string

Parameters:

Parameter Type Description
$visibility int

defaultForDirectories

public defaultForDirectories(): int

fromArray

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