e9b558c815
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
71 lines
1.6 KiB
PHP
71 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace KTXM\ChronoManager;
|
|
|
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
/**
|
|
* Chrono Manager Module
|
|
*/
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
|
|
public function __construct()
|
|
{ }
|
|
|
|
public function boot(): void
|
|
{
|
|
// Load module-local vendored dependencies used by iCalendar import.
|
|
$vendorAutoload = __DIR__ . '/vendor/autoload.php';
|
|
if (file_exists($vendorAutoload)) {
|
|
require_once $vendorAutoload;
|
|
}
|
|
}
|
|
|
|
public function handle(): string
|
|
{
|
|
return 'chrono_manager';
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return 'Chrono Manager';
|
|
}
|
|
|
|
public function author(): string
|
|
{
|
|
return 'Ktrix';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'Calendar and event management module for Ktrix - provides calendar, task, and journal management functionalities';
|
|
}
|
|
|
|
public function version(): string
|
|
{
|
|
return '0.0.1';
|
|
}
|
|
|
|
public function permissions(): array
|
|
{
|
|
return [
|
|
'chrono_manager' => [
|
|
'label' => 'Access Chrono Manager',
|
|
'description' => 'View and access the chrono manager module',
|
|
'group' => 'Calendar Management'
|
|
],
|
|
];
|
|
}
|
|
|
|
public function configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof BrowserModuleContextInterface) {
|
|
$context->registerModule($this, 'ChronoManager', 'static/module.mjs');
|
|
}
|
|
}
|
|
|
|
}
|