FileModule
Less than 1 minute
FileModule
Class FileModule.
class FileModule extends \Hazaar\Console\ModuleExtends: Hazaar\Console\Module
Console module for working with files and encryption. Provides commands to encrypt, decrypt, check, and view files.
Methods
configure
Configures the module by adding file-related commands and arguments.
protected configure(): voidReturns: void
encryptFile
Encrypts a file using the Hazaar encryption system.
protected encryptFile(Input $input, Output $output): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | the input interface for command arguments |
$output | Hazaar\Console\Output | the output interface for writing messages |
decryptFile
Decrypts a file using the Hazaar encryption system.
protected decryptFile(Input $input, Output $output): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | the input interface for command arguments |
$output | Hazaar\Console\Output | the output interface for writing messages |
checkFileEncrypted
Checks if a file is encrypted.
protected checkFileEncrypted(Input $input, Output $output): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | the input interface for command arguments |
$output | Hazaar\Console\Output | the output interface for writing messages |
viewEncryptedFile
Views the contents of an encrypted file.
protected viewEncryptedFile(Input $input, Output $output): intReturns: int
Parameters
| Parameter | Type | Description |
|---|---|---|
$input | Hazaar\Console\Input | the input interface for command arguments |
$output | Hazaar\Console\Output | the output interface for writing messages |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:18 +0000