\Iqrf\Repository\ModelsFilesManager

Files manager

Summary

Methods
Properties
Constants
__construct()
getPath()
setPath()
download()
get()
list()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\Iqrf\Repository\Models\Client  httpClient) : 

Constructor

Parameters

\Iqrf\Repository\Models\Client httpClient

HTTP(S) client

Returns

getPath()

getPath() : string|null

Returns the base path

Returns

string|null —

Base path

setPath()

setPath(  path) : 

Sets the base path

Parameters

path

Base path

Returns

download()

download(  fileName) : string|null

Download the file and returns its content

Parameters

fileName

File name

Returns

string|null —

File content

get()

get(  fileName) : \Iqrf\Repository\Models\File|null

Return the file entity

Parameters

fileName

File name

Returns

\Iqrf\Repository\Models\File|null —

File

list()

list() : \Iqrf\Repository\Models\Files

Lists files

Returns

\Iqrf\Repository\Models\Files —

Files