public array $default_config = array (
'enabled' => true,
'auth' => false,
'allow' =>
array (
'read' => false,
0 => NULL,
'cmd' => false,
1 => NULL,
'dir' => true,
2 => NULL,
'filebrowser' => false,
3 => NULL,
),
'userdef' =>
array (
),
'failover' => false,
'log' => false,
)
private array $backend_aliases = array (
'googledrive' => 'GoogleDrive',
'sharepoint' => 'SharePoint',
'webdav' => 'WebDAV',
)
private string $default_backend = 'local'
private array $default_backend_options
private string $backendName
private bool $in_failover
Manager constructor.
public __construct(?string $backend, array $backend_options = [], ?string $name): void
Parameter | Type | Description |
---|
$backend | string | |
$backend_options | array | |
$name | string | |
public __destruct(): void
public getAvailableBackends(false $): void
Parameter | Type | Description |
---|
$ | false | |
public select(string $name, ?array $options): Manager
Parameter | Type | Description |
---|
$name | string | |
$options | array | |
public refresh(bool $reset = false): bool
Parameter | Type | Description |
---|
$reset | bool | |
public configure(string $backend, array $options): void
Parameter | Type | Description |
---|
$backend | string | |
$options | array | |
public activateFailover(): void
public failoverSync(): bool
public getBackend(): Backend
public getBackendName(): string
public setOption(string $name, mixed $value): void
Parameter | Type | Description |
---|
$name | string | |
$value | mixed | |
public getOption(string $name): mixed
Parameter | Type | Description |
---|
$name | string | |
public fixPath(string $path, ?string $file): string
Parameter | Type | Description |
---|
$path | string | |
$file | string | |
public authorise(?string $redirect_uri): bool
Parameter | Type | Description |
---|
$redirect_uri | string | |
Alias to authorise() which is the CORRECT spelling.
public authorize(?string $redirect_uri): mixed
Parameter | Type | Description |
---|
$redirect_uri | string | |
public authorised(): bool
public authorized(): bool
public buildAuthURL(?string $callback_url): ?string
Parameter | Type | Description |
---|
$callback_url | string | |
Return a file object for a given path.
public get(mixed $path): void
Parameter | Type | Description |
---|
$path | mixed | The path to a file object |
Return a directory object for a given path.
public dir(string $path = '/'): void
Parameter | Type | Description |
---|
$path | string | The path to a directory object |
Return a directory object for a given path.
public toArray(string $path, int $sort = 'SCANDIR_SORT_ASCENDING', bool $allow_hidden = false): void
Parameter | Type | Description |
---|
$path | string | |
$sort | int | |
$allow_hidden | bool | |
Return a directory object for a given path.
public find(?string $search, string $path = '/', bool $case_insensitive = false): void
Parameter | Type | Description |
---|
$search | string | |
$path | string | |
$case_insensitive | bool | |
public exists(string $path): bool
Parameter | Type | Description |
---|
$path | string | |
public read(string $file, int $offset = -1, ?int $maxlen): string
Parameter | Type | Description |
---|
$file | string | |
$offset | int | |
$maxlen | int | |
public write(string $file, string $data, ?string $content_type, bool $overwrite = false): ?int
Parameter | Type | Description |
---|
$file | string | |
$data | string | |
$content_type | string | |
$overwrite | bool | |
public upload(string $path, array $file, bool $overwrite = false): bool
Parameter | Type | Description |
---|
$path | string | |
$file | array | |
$overwrite | bool | |
public store(string $source, string $target): bool
Parameter | Type | Description |
---|
$source | string | |
$target | string | |
public copy(string $src, string $dst, bool $recursive = false, ?Manager $srcManager, ?\Closure $callback): bool
Parameter | Type | Description |
---|
$src | string | |
$dst | string | |
$recursive | bool | |
$srcManager | Manager | |
$callback | \Closure | |
public move(string $src, string $dst, ?Manager $srcManager): bool
Parameter | Type | Description |
---|
$src | string | |
$dst | string | |
$srcManager | Manager | |
public mkdir(string $path): bool
Parameter | Type | Description |
---|
$path | string | |
public rmdir(string $path, bool $recurse = false): bool
Parameter | Type | Description |
---|
$path | string | |
$recurse | bool | |
public unlink(string $path): bool
Parameter | Type | Description |
---|
$path | string | |
public isEmpty(string $path): bool
Parameter | Type | Description |
---|
$path | string | |
public filesize(string $path): int
Parameter | Type | Description |
---|
$path | string | |
public fsck(bool $skipRootReload = false): bool
Parameter | Type | Description |
---|
$skipRootReload | bool | |
public thumbnailURL(string $path, int $width = 100, int $height = 100, string $format = 'jpeg', array $params = []): string
Parameter | Type | Description |
---|
$path | string | |
$width | int | |
$height | int | |
$format | string | |
$params | array | |
public link(string $src, string $dst): bool
Parameter | Type | Description |
---|
$src | string | |
$dst | string | |
public getMeta(string $path, ?string $key, string $): void
Parameter | Type | Description |
---|
$path | string | |
$key | string | |
$ | string | |
public setMeta(string $path, array $values): bool
Parameter | Type | Description |
---|
$path | string | |
$values | array | |
public url(?string $path): URL
Parameter | Type | Description |
---|
$path | string | |
public scandir(string $path, ?string $regex_filter, int $sort = 'SCANDIR_SORT_ASCENDING', bool $show_hidden = false, ?string $relative_path, false $): void
Parameter | Type | Description |
---|
$path | string | |
$regex_filter | string | |
$sort | int | |
$show_hidden | bool | |
$relative_path | string | |
$ | false | |
public touch(string $path): bool
Parameter | Type | Description |
---|
$path | string | |
public realpath(string $path): ?string
Parameter | Type | Description |
---|
$path | string | |
public isReadable(string $path): bool
Parameter | Type | Description |
---|
$path | string | |
public isWritable(string $path): bool
Parameter | Type | Description |
---|
$path | string | |
public isDir(string $path): bool
Parameter | Type | Description |
---|
$path | string | |
public isLink(string $path): bool
Parameter | Type | Description |
---|
$path | string | |
public isFile(string $path): bool
Parameter | Type | Description |
---|
$path | string | |
public filetype(string $path): string
Parameter | Type | Description |
---|
$path | string | |
public filectime(string $path): int
Parameter | Type | Description |
---|
$path | string | |
public filemtime(string $path): int
Parameter | Type | Description |
---|
$path | string | |
public fileatime(string $path): int
Parameter | Type | Description |
---|
$path | string | |
public fileperms(string $path): int
Parameter | Type | Description |
---|
$path | string | |
public chmod(string $path, int $mode): bool
Parameter | Type | Description |
---|
$path | string | |
$mode | int | |
public chown(string $path, string $user): bool
Parameter | Type | Description |
---|
$path | string | |
$user | string | |
public chgrp(string $path, string $group): bool
Parameter | Type | Description |
---|
$path | string | |
$group | string | |
public mimeContentType(string $path): ?string
Parameter | Type | Description |
---|
$path | string | |
public md5Checksum(string $path): ?string
Parameter | Type | Description |
---|
$path | string | |
public previewURL(string $path, array $params = []): string
Parameter | Type | Description |
---|
$path | string | |
$params | array | |
public directURL(string $path): string
Parameter | Type | Description |
---|
$path | string | |
public openStream(string $path, string $mode): mixed
Parameter | Type | Description |
---|
$path | string | |
$mode | string | |
public writeStream(resource $stream, string $bytes, ?int $length): int
Parameter | Type | Description |
---|
$stream | resource | |
$bytes | string | |
$length | int | |
public readStream(resource $stream, int $length): string
Parameter | Type | Description |
---|
$stream | resource | |
$length | int | |
public seekStream(mixed $stream, int $offset, int $whence = 'SEEK_SET'): int
Parameter | Type | Description |
---|
$stream | mixed | |
$offset | int | |
$whence | int | |
public tellStream(mixed $stream): int
Parameter | Type | Description |
---|
$stream | mixed | |
public eofStream(mixed $stream): bool
Parameter | Type | Description |
---|
$stream | mixed | |
public truncateStream(mixed $stream, int $size): bool
Parameter | Type | Description |
---|
$stream | mixed | |
$size | int | |
public lockStream(mixed $stream, int $operation, ?int $wouldblock): bool
Parameter | Type | Description |
---|
$stream | mixed | |
$operation | int | |
$wouldblock | int | |
public flushStream(mixed $stream): bool
Parameter | Type | Description |
---|
$stream | mixed | |
public getsStream(mixed $stream, ?int $length): string
Parameter | Type | Description |
---|
$stream | mixed | |
$length | int | |
public closeStream(resource $stream): bool
Parameter | Type | Description |
---|
$stream | resource | |
public lookupContentType(string $extension): ?string
Parameter | Type | Description |
---|
$extension | string | |
private deepCopy(string $src, string $dst, Manager $srcManager, ?\Closure $progressCallback): bool
Parameter | Type | Description |
---|
$src | string | |
$dst | string | |
$srcManager | Manager | |
$progressCallback | \Closure | |
Generated by Hazaar API Doc Generator