\App\CoreModule\ModelsPrivilegedFileManager

Privileged file manager

Summary

Methods
Properties
Constants
__construct()
read()
delete()
write()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$commandManager
$directory
N/A

Properties

$commandManager

$commandManager : \App\CoreModule\Models\CommandManager

Type

normal — Command manager

$directory

$directory : string

Type

normal — Directory path

Methods

__construct()

__construct(string  $directory, \App\CoreModule\Models\CommandManager  $commandManager) : mixed

Constructor

Parameters

string $directory

Directory path

\App\CoreModule\Models\CommandManager $commandManager

Command manager

Returns

mixed

read()

read(string  $fileName) : string

Reads the file

Parameters

string $fileName

File name

Throws

\Nette\IOException

Returns

string —

File content

delete()

delete(string  $fileName) : void

Deletes the file

Parameters

string $fileName

File name

Throws

\Nette\IOException

write()

write(string  $fileName, mixed  $content) : void

Writes into the file

Parameters

string $fileName

File name

mixed $content

File content

Throws

\Nette\IOException