FileRepository
Table of Contents
Methods
-
__construct()
: mixed
-
copyById()
: File|null
-
deleteById()
: Result
-
getById()
: File|null
-
getFileSrc()
: string|null
-
list()
: FileCollection
-
put()
: Result
-
readContent()
: FileContent
__construct()
public
__construct(string $path) : mixed
Parameters
-
$path
: string
-
copyById()
public
copyById(int $id) : File|null
Parameters
-
$id
: int
-
deleteById()
public
deleteById(int $id) : Result
Parameters
-
$id
: int
-
getById()
public
getById(int $id[, bool $readContent = false ]) : File|null
Parameters
-
$id
: int
-
-
$readContent
: bool
= false
-
getFileSrc()
public
getFileSrc(int $id) : string|null
Parameters
-
$id
: int
-
Return values
string|null
list()
public
list(int ...$ids) : FileCollection
Parameters
-
$ids
: int
-
put()
public
put(File $file) : Result
Parameters
-
$file
: File
-
readContent()
public
readContent(File $file) : FileContent
Parameters
-
$file
: File
-