\App\ConfigModule\DatagridsMqttMessagingDataGridFactory

MQTT messaging data grid

Summary

Methods
Properties
Constants
__construct()
create()
changeAsyncMsg()
changeTls()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
changeConfiguration()
$configManager
$dataGridFactory
$presenter
N/A

Properties

$configManager

$configManager : \App\ConfigModule\Models\GenericManager

Type

normal — Generic configuration manager

$dataGridFactory

$dataGridFactory : \App\CoreModule\Datagrids\DataGridFactory

Type

normal — Data grid factory

$presenter

$presenter : \App\ConfigModule\Presenters\MqttPresenter

Type

normal — MQTT interface configuration presenter

Methods

__construct()

__construct(\App\CoreModule\Datagrids\DataGridFactory  $dataGridFactory, \App\ConfigModule\Models\GenericManager  $configManager) : mixed

Constructor

Parameters

\App\CoreModule\Datagrids\DataGridFactory $dataGridFactory

Generic data grid factory

\App\ConfigModule\Models\GenericManager $configManager

Generic configuration manager

Returns

mixed

create()

create(\App\ConfigModule\Presenters\MqttPresenter  $presenter, string  $name) : \Ublaboo\DataGrid\DataGrid

Creates the MQTT messaging data grid

Parameters

\App\ConfigModule\Presenters\MqttPresenter $presenter

MQTT interface configuration presenter

string $name

Data grid's component name

Throws

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

Returns

\Ublaboo\DataGrid\DataGrid —

MQTT messaging data grid

changeAsyncMsg()

changeAsyncMsg(string  $id, string  $status) : void

Changes the status of the asynchronous messaging

Parameters

string $id

Component ID

string $status

New asynchronous messaging status

Throws

\Nette\Utils\JsonException

changeTls()

changeTls(string  $id, string  $status) : void

Changes the status of TLS support

Parameters

string $id

Component ID

string $status

New TLS support

Throws

\Nette\Utils\JsonException

changeConfiguration()

changeConfiguration(string  $id, string  $key, mixed  $value) : void

Changes the MQTT messaging configuration

Parameters

string $id

MQTT messaging configuration ID

string $key

Key to change

mixed $value

New value

Throws

\Nette\Utils\JsonException