$commandManager $commandManager : \App\CoreModule\Models\CommandManager Type normal — Command manager
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
__construct() __construct(\App\CoreModule\Models\CommandManager $commandManager) : mixed Constructor Parameters \App\CoreModule\Models\CommandManager $commandManager Command manager Returns mixed
getDirectory() getDirectory() : string Returns the directory with files Returns string — Directory with files
validate() validate(string $schema, \Apitte\Core\Http\ApiRequest $request) : void Validates JSON Parameters string $schema JSON schema file name \Apitte\Core\Http\ApiRequest $request API request Throws \App\CoreModule\Exceptions\InvalidJsonException \Nette\Utils\JsonException
fixPermissions() fixPermissions(string $fileName) : void Fixes the permissions Parameters string $fileName File name