Properties

$lang

$lang : string

Type

normal — Language

$userManager

$userManager : \App\CoreModule\Models\UserManager

Type

normal — User manager

$translator

$translator : \Nette\Localization\ITranslator

Type

\Nette\Localization\ITranslator — Translator

$infoManager

$infoManager : \App\GatewayModule\Models\InfoManager

Type

normal — IQRF GW Info manager

$networkManager

$networkManager : \App\GatewayModule\Models\NetworkManager

Type

normal — Network manager

$versionManager

$versionManager : \App\GatewayModule\Models\VersionManager

Type

normal — Version manager

Methods

injectUserManager()

injectUserManager(\App\CoreModule\Models\UserManager  $userManager) : void

Inject user manager

Parameters

\App\CoreModule\Models\UserManager $userManager

User manager

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

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 —

Translator

createTemplate()

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

Creates an template

Returns

\Nette\Application\UI\ITemplate —

Template

__construct()

__construct(\App\GatewayModule\Models\InfoManager  $infoManager, \App\GatewayModule\Models\NetworkManager  $networkManager, \App\GatewayModule\Models\VersionManager  $versionManager) : mixed

Constructor

Parameters

\App\GatewayModule\Models\InfoManager $infoManager

IQRF GW Info manager

\App\GatewayModule\Models\NetworkManager $networkManager

Network manager

\App\GatewayModule\Models\VersionManager $versionManager

Version manager

Returns

mixed

renderDefault()

renderDefault() : void

Renders a default page

actionDownload()

actionDownload() : void

Downloads gateway information as JSON

startup()

startup() : void

Starts up an base presenter