Properties

$versionManager

$versionManager : \App\CoreModule\Models\VersionManager

Type

normal — Version manager

$lang

$lang : string

Type

normal — Language

$translator

$translator : \Nette\Localization\ITranslator

Type

\Nette\Localization\ITranslator — Translator

$manager

$manager : \App\IqrfNetModule\Models\GwModeManager

Type

normal — IQRF Gateway Daemon's mode manager

Methods

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

afterRender()

afterRender() : void

After template render

checkRequirements()

checkRequirements(mixed  $element) : void

Checks requirements

Parameters

mixed $element

Element

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\GwModeManager  $manager) : mixed

Constructor

Parameters

\App\IqrfNetModule\Models\GwModeManager $manager

IQRF Gateway Daemon's mode manager

Returns

mixed

handleForwarding()

handleForwarding() : void

Changes IQRF Gateway's mode to Forwarding mode

Throws

\App\IqrfNetModule\Exceptions\EmptyResponseException
\App\IqrfNetModule\Exceptions\InvalidOperationModeException
\Nette\Utils\JsonException

handleOperational()

handleOperational() : void

Changes IQRF Gateway's mode to Operational mode

Throws

\App\IqrfNetModule\Exceptions\EmptyResponseException
\App\IqrfNetModule\Exceptions\InvalidOperationModeException
\Nette\Utils\JsonException

handleService()

handleService() : void

Changes gateway mode to Service mode

Throws

\App\IqrfNetModule\Exceptions\EmptyResponseException
\App\IqrfNetModule\Exceptions\InvalidOperationModeException
\Nette\Utils\JsonException

renderDefault()

renderDefault() : void

Renders gateway mode control panel

changeMode()

changeMode(string  $mode) : void

Changes IQRF Gateway Daemon's mode

Parameters

string $mode

New IQRF Gateway's mode

Throws

\App\IqrfNetModule\Exceptions\EmptyResponseException
\App\IqrfNetModule\Exceptions\InvalidOperationModeException
\Nette\Utils\JsonException