FileSystemMapper
in package
FinalYes
Admin file system mapper: builds the {@see FtpFolder} / {@see FtpFile} value objects from the Api response.
Table of Contents
Properties
Methods
- __construct() : mixed
- browse() : FtpFile>}
- createFolder() : bool
- deletePath() : bool
- download() : array{name: string, content: string, contentType: string}|null
- rename() : bool
- upload() : bool
- s() : string
Properties
$repository read-only
private
FileSystemRepository
$repository
Methods
__construct()
public
__construct(FileSystemRepository $repository) : mixed
Parameters
- $repository : FileSystemRepository
browse()
public
browse(string $folder) : FtpFile>}
Parameters
- $folder : string
Return values
FtpFile>}createFolder()
public
createFolder(string $folder, string $name) : bool
Parameters
- $folder : string
- $name : string
Return values
booldeletePath()
public
deletePath(string $path) : bool
Parameters
- $path : string
Return values
booldownload()
public
download(string $path) : array{name: string, content: string, contentType: string}|null
Parameters
- $path : string
Return values
array{name: string, content: string, contentType: string}|nullrename()
public
rename(string $path, string $name) : bool
Parameters
- $path : string
- $name : string
Return values
boolupload()
public
upload(string $folder, string $name, string $base64) : bool
Parameters
- $folder : string
- $name : string
- $base64 : string
Return values
bools()
private
s(mixed $value) : string
Parameters
- $value : mixed