\App\ConfigModule\DatagridsComponentsDataGridFactory

Daemon's components data grid

Summary

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

Constants

TRANSLATE_PREFIX

TRANSLATE_PREFIX = 'config.components.form.' : 

Prefix for translator

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

load()

load() : array<int,array<string,bool|int|string>>

Loads the data to the data grid

Returns

array> —

Data for the 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