\App\ConfigModule\DatagridsComponentsDataGridFactory

Daemon's components data grid

Summary

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

Properties

$configManager

$configManager : \App\ConfigModule\Models\ComponentManager

Type

normal — Component manager

$dataGridFactory

$dataGridFactory : \App\CoreModule\Datagrids\DataGridFactory

Type

normal — Data grid factory

$presenter

$presenter : \App\ConfigModule\Presenters\ComponentPresenter

Type

normal — Component's configuration presenter

Methods

__construct()

__construct(\App\CoreModule\Datagrids\DataGridFactory  $dataGridFactory, \App\ConfigModule\Models\ComponentManager  $componentManager) : mixed

Constructor

Parameters

\App\CoreModule\Datagrids\DataGridFactory $dataGridFactory

Generic data grid factory

\App\ConfigModule\Models\ComponentManager $componentManager

Component manager

Returns

mixed

create()

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

Creates the component data grid

Parameters

\App\ConfigModule\Presenters\ComponentPresenter $presenter

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

Component data grid

changeStatus()

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

Changes the status of the component

Parameters

string $id

Component ID

string $status

New component's status

Throws

\Nette\Utils\JsonException

load()

load() : array

Loads the data to the data grid

Throws

\Nette\Utils\JsonException

Returns

array —

Data for the data grid