Files
api/services/nginx/app/modules/attachments/attachments_c.php
T
Jeppe Bundgaard 33a26cffc5 Implement attachments module with CRUD operations and integration points
- Added `attachments` module for creating, reading, updating, and deleting attachments.
- Introduced new classes such as `attachments`, `attachment_store`, `attachment_content`, and `attachment_relation` to handle attachment operations and their relationships.
- Integrated `attachments` features into `db_object_t` for seamless object-attachment interactions.
- Added `attachments_i` interface for standardized attachments module operations.
- Created `attachmentsRoute` for defining endpoints related to attachments.
- Enabled module configuration through `attachments_enabled_c` for attachment management control.
2025-09-22 10:28:22 +02:00

32 lines
897 B
PHP

<?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();
}
}