\App\IqrfNetModule\ModelsIqrfOsManager

IQRF OS manager

Summary

Methods
Properties
Constants
__construct()
list()
getFiles()
getOsFiles()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
listVersions()
$database
$dpaManager
N/A

Properties

$database

$database : \Nette\Database\Context

Type

\Nette\Database\Context — Database context

$dpaManager

$dpaManager : \App\IqrfNetModule\Models\DpaManager

Type

normal — DPA manager

Methods

__construct()

__construct(\Nette\Database\Context  $database, \App\IqrfNetModule\Models\DpaManager  $dpaManager) : mixed

Constructor

Parameters

\Nette\Database\Context $database

Database context

\App\IqrfNetModule\Models\DpaManager $dpaManager

DPA manager

Returns

mixed

list()

list(\App\IqrfNetModule\Entities\IqrfOs  $os) : string[]

Lists available IQRF OS changes

Parameters

\App\IqrfNetModule\Entities\IqrfOs $os

Current IQRF OS entity

Throws

\App\IqrfNetModule\Exceptions\DpaErrorException
\App\IqrfNetModule\Exceptions\EmptyResponseException
\Nette\Utils\JsonException
\App\IqrfNetModule\Exceptions\UserErrorException

Returns

string[] —

Available IQRF OS changes

getFiles()

getFiles(\App\IqrfNetModule\Entities\IqrfOs  $currentOs, string  $toBuild, string  $dpa, string|null  $rfMode = null) : string[]

Returns files to upload

Parameters

\App\IqrfNetModule\Entities\IqrfOs $currentOs

Current IQRF OS entity

string $toBuild

Target IQRF OS build

string $dpa

DPA version

string|null $rfMode

RF mode

Throws

\App\IqrfNetModule\Exceptions\DpaErrorException
\App\IqrfNetModule\Exceptions\EmptyResponseException
\App\IqrfNetModule\Exceptions\UserErrorException
\Nette\Utils\JsonException

Returns

string[] —

Files to upload

getOsFiles()

getOsFiles(string  $fromBuild, string  $toBuild) : string[]

Returns IQRF OS diff files

Parameters

string $fromBuild

From IQRF OS build

string $toBuild

To IQRF OS build

Returns

string[] —

Array of IQRF OS diff files

listVersions()

listVersions(\App\IqrfNetModule\Entities\IqrfOs  $os) : array<string,string>

Lists IQRF OS versions

Parameters

\App\IqrfNetModule\Entities\IqrfOs $os

Current IQRF OS

Returns

array

IQRF OS versions