Constants

COMPONENT

COMPONENT = 'shape::TraceFileService' : 

IQRF Gateway Daemon component name

VERBOSITY_LEVELS

VERBOSITY_LEVELS = ['ERR', 'WAR', 'INF', 'DBG'] : 

Verbosity levels

Properties

$versionManager

$versionManager : \App\CoreModule\Models\VersionManager

Type

normal — Version manager

$lang

$lang : string

Type

normal — Language

$formFactory

$formFactory : \App\ConfigModule\Forms\TraceFileFormFactory

Type

normal — Daemon's tracer configuration form factory

$dataGridFactory

$dataGridFactory : \App\ConfigModule\Datagrids\TraceFileDataGridFactory

Type

normal — Tracer configuration data grid factory

$manager

$manager : \App\ConfigModule\Models\GenericManager

Type

normal — Generic configuration manager

$componentManager

$componentManager : \App\ConfigModule\Models\ComponentManager

Type

normal — Component manager

$featureManager

$featureManager : \App\CoreModule\Models\FeatureManager

Type

normal — Optional feature manager

$translator

$translator : \Nette\Localization\ITranslator

Type

\Nette\Localization\ITranslator — Translator

Methods

__construct()

__construct(\App\ConfigModule\Models\GenericManager  $manager) : mixed

Constructor

Parameters

\App\ConfigModule\Models\GenericManager $manager

Generic configuration manager

Returns

mixed

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

injectComponentManager()

injectComponentManager(\App\ConfigModule\Models\ComponentManager  $componentManager) : void

Injects the component manager

Parameters

\App\ConfigModule\Models\ComponentManager $componentManager

Component manager

injectFeatureManager()

injectFeatureManager(\App\CoreModule\Models\FeatureManager  $manager) : void

Injects the optional feature manager

Parameters

\App\CoreModule\Models\FeatureManager $manager

Optional feature manager

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

actionEdit()

actionEdit(int  $id) : void

Edits the tracer configuration

Parameters

int $id

ID of UDP interface

configurationLoad()

configurationLoad(int  $id) : array<string,(array<string,int|string>|bool|int|string)[]>

Loads the instance configuration

Parameters

int $id

Instance ID

Throws

\Nette\Utils\JsonException

Returns

array|bool|int|string)[]> —

Instance configuration

actionDelete()

actionDelete(int  $id) : void

Deletes the tracer service

Parameters

int $id

ID of tracer service

deleteInstance()

deleteInstance(string  $component, int  $id, string|null  $redirect = null) : void

Deletes the instance

Parameters

string $component

IQRF Gateway Daemon component name

int $id

Instance ID

string|null $redirect

Redirect destination

loadFormConfiguration()

loadFormConfiguration(\Nette\Application\UI\Form  $form, string  $component, int|null  $id, string|null  $redirect = null, callable|null  $load = null) : void

Loads the configuration into the form

Parameters

\Nette\Application\UI\Form $form

Configuration form

string $component

IQRF Gateway Daemon component name

int|null $id

Configuration ID

string|null $redirect

Redirect destination

callable|null $load

Load configuration callback

createComponentConfigTracerForm()

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

Creates the Tracer form

Returns

\Nette\Application\UI\Form —

Tracer form

createComponentConfigTracerDataGrid()

createComponentConfigTracerDataGrid(string  $name) : \Ublaboo\DataGrid\DataGrid

Creates tracer data grid

Parameters

string $name

Data grid's component name

Throws

\Ublaboo\DataGrid\Exception\DataGridException
\Nette\Utils\JsonException

Returns

\Ublaboo\DataGrid\DataGrid —

Tracer data grid