__construct() __construct(\App\CoreModule\Models\JsonFileManager $fileManager) : mixed Constructor Parameters \App\CoreModule\Models\JsonFileManager $fileManager JSON file manager Returns mixed
add() add(array $array) : void Adds a new component Parameters array $array Component's settings Throws \Nette\IOException \Nette\Utils\JsonException
delete() delete(int $id) : void Deletes the component Parameters int $id Component ID Throws \Nette\IOException \Nette\Utils\JsonException
getId() getId(string $name) : int|null Returns component ID Parameters string $name Components name Returns int|null — Component ID
load() load(int $id) : array Loads the component from main configuration JSON Parameters int $id Component ID Throws \Nette\IOException \Nette\Utils\JsonException Returns array — Array for form
list() list() : array<string,bool|int|string>[] Loads components from main configuration JSON Throws \Nette\IOException \Nette\Utils\JsonException Returns array[] — Array for form
listDisabled() listDisabled() : array<string,bool>|null Returns disabled components Returns array|null — Disabled components
save() save(array $components, int $id) : void Saves the component's configuration Parameters array $components Component's configuration int $id Component ID Throws \Nette\IOException \Nette\Utils\JsonException