\App\ConfigModule\DatagridsMonitorDataGridFactory

Daemon's monitor service data grid factory

Summary

Methods
Properties
Constants
__construct()
create()
changeOnlyLocalhost()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
changeConfiguration()
$factory
$presenter
$manager
N/A

Properties

$factory

$factory : \App\CoreModule\Datagrids\DataGridFactory

Type

normal — Data grid factory

$presenter

$presenter : \App\ConfigModule\Presenters\MonitorPresenter

Type

normal — Daemon's monitor service configuration presenter

$manager

$manager : \App\ConfigModule\Models\MonitorManager

Type

normal — Daemon's monitor service configuration manager

Methods

__construct()

__construct(\App\CoreModule\Datagrids\DataGridFactory  $factory, \App\ConfigModule\Models\MonitorManager  $manager) : mixed

Constructor

Parameters

\App\CoreModule\Datagrids\DataGridFactory $factory

Data grid factory

\App\ConfigModule\Models\MonitorManager $manager

Daemon's monitor service configuration manager

Returns

mixed

create()

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

Creates Daemon's monitor service data grid

Parameters

\App\ConfigModule\Presenters\MonitorPresenter $presenter

Daemon's monitor service 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 —

Daemon's monitor service data grid

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 Daemon's monitor service configuration

Parameters

string $id

Daemon's monitor service configuration ID

string $key

Key to change

mixed $value

New value

Throws

\Nette\Utils\JsonException