CoolCMS API

FileSystemManager
in package

FinalYes

Entry point for the uploads file system, used by {@see \App\UI\Api\System\Presenters\FileSystemPresenter}.

Does not touch the DB (unlike FileManager for the File entity); delegates to FileSystemService.

Table of Contents

Properties

$service  : FileSystemService

Methods

__construct()  : mixed
createFolder()  : Result
delete()  : bool
listFolder()  : FtpFile>}
read()  : array{name: string, content: string, contentType: string}|null
rename()  : bool
sanitizeAll()  : Result
writeFile()  : Result

Properties

Methods

createFolder()

public createFolder(string $relParent, string $name) : Result
Parameters
$relParent : string
$name : string
Return values
Result

delete()

public delete(string $rel) : bool
Parameters
$rel : string
Return values
bool

listFolder()

public listFolder(string $rel) : FtpFile>}
Parameters
$rel : string
Return values
FtpFile>}

read()

public read(string $rel) : array{name: string, content: string, contentType: string}|null
Parameters
$rel : string
Return values
array{name: string, content: string, contentType: string}|null

rename()

public rename(string $rel, string $newName) : bool
Parameters
$rel : string
$newName : string
Return values
bool

writeFile()

public writeFile(string $relFolder, string $name, string $bytes) : Result
Parameters
$relFolder : string
$name : string
$bytes : string
Return values
Result
On this page

Search results