\App\ConfigModule\ModelsMainManager

Main configuration form factory

Summary

Methods
Properties
Constants
__construct()
getCacheDir()
load()
save()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$fileManager
$fileName
N/A

Properties

$fileManager

$fileManager : \App\CoreModule\Models\JsonFileManager

Type

normal — JSON file manager

$fileName

$fileName : string

Type

normal — File name (without .json)

Methods

__construct()

__construct(\App\CoreModule\Models\JsonFileManager  $fileManager) : mixed

Constructor

Parameters

\App\CoreModule\Models\JsonFileManager $fileManager

JSON file manager

Returns

mixed

getCacheDir()

getCacheDir() : string

Returns the path of cache directory

Returns

string —

Cache directory path

load()

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

Converts the main configuration form array to JSON array

Throws

\Nette\Utils\JsonException

Returns

array[]|string> —

Array for form

save()

save(array<string,array<string,bool|int|string>[]|string>  $array) : void

Saves the main daemon configuration

Parameters

array[]|string> $array

Main configuration

Throws

\Nette\Utils\JsonException