Files
api/services/nginx/app/modules/goals/goals_c.php
T
Jeppe Bundgaard 4bfda5aea4 Introduce modular goal criteria system for users, departments, and products
- Add `goals_criteria` base class implementing customizable goal criteria.
- Introduce interfaces and traits for modular handling of users, departments, and products in goal criteria.
- Include enumeration for goal types (`goals_criteria_type`).
- Implement timeframe and target management through traits.
- Provide initial configuration for enabling the goals module.
2026-01-26 16:01:47 +01:00

28 lines
541 B
PHP

<?php
namespace goals;
require_once WD . '/modules/goals/config/goals_enabled_c.php';
// Require helpers
use goals\config\goals_enabled_c;
use traits\module_config_t;
class goals_c
{
use module_config_t;
/**
* The status of the goals module
* @var goals_enabled_c
*/
public goals_enabled_c $enabled;
public function __construct()
{
$this->setupConfig('goals');
$this->allowUpdate([
goals_enabled_c::class,
]);
$this->enabled = new goals_enabled_c();
}
}