\App\ConfigModule\PresentersGenericPresenter

Presenter for generic IQRF Gateway Daemon's configuration

Summary

Methods
Properties
Constants
flashInfo()
flashSuccess()
flashWarning()
flashError()
afterRender()
checkRequirements()
injectTranslator()
getTranslator()
createTemplate()
__construct()
$versionManager
$lang
No constants found
startup()
$translator
$components
$configManager
N/A
checkInstanceFiles()
No private properties found
N/A

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

$components

$components : string[]

Type

normal — IQRF Gateway Daemon's components

$configManager

$configManager : \App\ConfigModule\Models\GenericManager

Type

normal — Generic configuration 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 —

Translator

createTemplate()

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

Creates an template

Returns

\Nette\Application\UI\ITemplate —

Template

__construct()

__construct(string[]  $components, \App\ConfigModule\Models\GenericManager  $manager) : mixed

Constructor

Parameters

string[] $components

IQRF Gateway Daemon's components

\App\ConfigModule\Models\GenericManager $manager

Generic configuration manager

Returns

mixed

startup()

startup() : void

Checks if the files are readable

checkInstanceFiles()

checkInstanceFiles() : void

Checks the component's instance files

Throws

\Nette\Utils\JsonException