\App\ConfigModule\DatagridsWebSocketDataGridFactory

WebSocket interface data grid

Summary

Methods
Properties
Constants
__construct()
create()
changeAsyncMsg()
changeOnlyLocalhost()
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\WebSocketManager

Type

normal — WebSocket manager

$dataGridFactory

$dataGridFactory : \App\CoreModule\Datagrids\DataGridFactory

Type

normal — Data grid factory

$presenter

$presenter : \App\ConfigModule\Presenters\WebsocketPresenter

Type

normal — WebSocket interface configuration presenter

Methods

__construct()

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

Constructor

Parameters

\App\CoreModule\Datagrids\DataGridFactory $dataGridFactory

Generic data grid factory

\App\ConfigModule\Models\WebSocketManager $configManager

WebSocket interface manager

Returns

mixed

create()

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

Creates the WebSocket interface data grid

Parameters

\App\ConfigModule\Presenters\WebsocketPresenter $presenter

WebSocket 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 —

WebSocket 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

changeOnlyLocalhost()

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

Changes the status of accepting connections only from localhost

Parameters

string $id

Component ID

string $status

New accepting connections only from localhost status

Throws

\Nette\Utils\JsonException

changeConfiguration()

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

Changes the WebSocket messaging configuration

Parameters

string $id

WebSocket messaging configuration ID

string $key

Key to change

mixed $value

New value

Throws

\Nette\Utils\JsonException