$commandManager $commandManager : \App\CoreModule\Models\CommandManager Type normal — Command manager
__construct() __construct(string $directory, \App\CoreModule\Models\CommandManager $commandManager) : mixed Constructor Parameters string $directory Directory with files \App\CoreModule\Models\CommandManager $commandManager Command managers Returns mixed
setSchema() setSchema(string $component) : void Sets the file name of JSON schema from the component name Parameters string $component Component name Throws \App\CoreModule\Exceptions\NonexistentJsonSchemaException
validate() validate(mixed $json, bool $tryFix = false) : void Validates JSON Parameters mixed $json JSON to validate bool $tryFix Try fix JSON? Throws \App\CoreModule\Exceptions\InvalidJsonException \Nette\Utils\JsonException
delete() delete(string $fileName) : void Deletes the file Parameters string $fileName File name Throws \Nette\IOException
exists() exists(string $fileName) : bool Checks if the file exists Parameters string $fileName File name Returns bool — Is file exists?
read() read(string $fileName) : mixed Reads the file Parameters string $fileName File name Throws \Nette\IOException Returns mixed — File content
write() write(string $fileName, mixed $content) : void Writes into the file Parameters string $fileName File name mixed $content File content Throws \Nette\IOException
getDirectory() getDirectory() : string Returns the directory with files Returns string — Directory with files
fixPermissions() fixPermissions(string $fileName) : void Fixes the permissions Parameters string $fileName File name