<?php

namespace attachments;
require_once WD . '/modules/attachments/config/attachments_enabled_c.php';
require_once WD . '/modules/attachments/helpers/attachment_types.php';
require_once WD . '/modules/attachments/helpers/attachment_relation.php';
require_once WD . '/modules/attachments/helpers/attachment_content.php';
require_once WD . '/modules/attachments/helpers/attachment.php';


use attachments\config\attachments_enabled_c;
use traits\module_config_t;

class attachments_c
{
    use module_config_t;

    /**
     * The status of attachments, whether it is enabled or not
     * @var attachments_enabled_c
     */
    public attachments_enabled_c $enabled;

    public function __construct()
    {
        $this->setupConfig('attachments');
        $this->allowUpdate([
            attachments_enabled_c::class,
        ]);
        $this->enabled = new attachments_enabled_c();
    }
}