- Add core `dynamicimages_c` class for module configuration and management. - Implement asset management with `dynamicimages_asset` class and related interface/traits. - Add support for image operations via `dynamicimages_tool` enum. - Include `dynamicimages_image` class for handling grouped assets with path configuration. - Introduce `machine_1` image example with associated assets under `dynamicimages`.
29 lines
514 B
PHP
29 lines
514 B
PHP
<?php
|
|
|
|
namespace dynamicimages\config;
|
|
|
|
use Exception;
|
|
use traits\module_config_variable;
|
|
|
|
class dynamicimages_enabled_c
|
|
{
|
|
use module_config_variable;
|
|
|
|
/**
|
|
* @throws Exception
|
|
*/
|
|
public function __construct()
|
|
{
|
|
self::setupConfigVariable(
|
|
'dynamicimages',
|
|
'enabled',
|
|
'bool',
|
|
true,
|
|
null,
|
|
'Whether the dynamic images module is enabled',
|
|
'1',
|
|
false,
|
|
'false'
|
|
);
|
|
}
|
|
} |