Properties

$versionManager

$versionManager : \App\CoreModule\Models\VersionManager

Type

normal — Version manager

$lang

$lang : string

Type

normal — Language

$sendRawFactory

$sendRawFactory : \App\IqrfNetModule\Forms\SendRawFormFactory

Type

normal — Send DPA packet form

$translator

$translator : \Nette\Localization\ITranslator

Type

\Nette\Localization\ITranslator — Translator

$dpaManager

$dpaManager : \App\IqrfNetModule\Models\DpaRawManager

Type

normal — DPA request and response manager

$macroParser

$macroParser : \Iqrf\IdeMacros\MacroFileParser

Type

\Iqrf\IdeMacros\MacroFileParser — IQRF IDE Macros parser

Methods

afterRender()

afterRender() : void

After template render

checkRequirements()

checkRequirements(mixed  $element) : void

Checks requirements

Parameters

mixed $element

Element

flashInfo()

flashInfo(string  $message) : \stdClass

Saves the info flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

flashSuccess()

flashSuccess(string  $message) : \stdClass

Saves the success flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

flashWarning()

flashWarning(string  $message) : \stdClass

Saves the warning flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

flashError()

flashError(string  $message) : \stdClass

Saves the error flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

injectTranslator()

injectTranslator(\Nette\Localization\ITranslator  $translator) : void

Injects the translator service

Parameters

\Nette\Localization\ITranslator $translator

Translator

getTranslator()

getTranslator() : \Nette\Localization\ITranslator

Returns the translator

Returns

\Nette\Localization\ITranslator —

Transtalor

createTemplate()

createTemplate() : \Nette\Application\UI\ITemplate

Creates an template

Returns

\Nette\Application\UI\ITemplate —

Template

__construct()

__construct(\App\IqrfNetModule\Models\DpaRawManager  $manager, \Iqrf\IdeMacros\MacroFileParser  $macroParser) : mixed

Constructor

Parameters

\App\IqrfNetModule\Models\DpaRawManager $manager

DPA request and response manager

\Iqrf\IdeMacros\MacroFileParser $macroParser

IQRF IDE Macros file parser

Returns

mixed

renderDefault()

renderDefault() : void

Renders a send DPA packet page

handleShowResponse()

handleShowResponse(array  $data) : void

AJAX handler for showing DPA request and response

Parameters

array $data

DPA request and response

Throws

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

createComponentSendRawForm()

createComponentSendRawForm() : \Nette\Application\UI\Form

Creates the send DPA packet form

Returns

\Nette\Application\UI\Form —

Send DPA packet form