Introduce the xlvask module, including classes for configuration variables (enabled, username, password) and main functionality. Integrated xlvask into the app by adding GET/POST API routes for managing its configuration.
29 lines
492 B
PHP
29 lines
492 B
PHP
<?php
|
|
|
|
namespace xlvask\config;
|
|
|
|
use Exception;
|
|
use traits\module_config_variable;
|
|
|
|
class xlvask_enabled_c
|
|
{
|
|
use module_config_variable;
|
|
|
|
/**
|
|
* @throws Exception
|
|
*/
|
|
public function __construct()
|
|
{
|
|
self::setupConfigVariable(
|
|
'xlvask',
|
|
'enabled',
|
|
'bool',
|
|
true,
|
|
null,
|
|
'Whether the xlvask module is enabled or not',
|
|
'1',
|
|
false,
|
|
'false'
|
|
);
|
|
}
|
|
} |