48e238c3b7
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
62 lines
1.3 KiB
PHP
62 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace KTXM\Chrono;
|
|
|
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
/**
|
|
* Chrono Module - Calendaring and Tasks
|
|
*/
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
|
|
public function __construct()
|
|
{ }
|
|
|
|
public function handle(): string
|
|
{
|
|
return 'chrono';
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return 'Chrono';
|
|
}
|
|
|
|
public function author(): string
|
|
{
|
|
return 'Ktrix';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'Calendar and task management interface - provides event scheduling, task tracking, and time management capabilities';
|
|
}
|
|
|
|
public function version(): string
|
|
{
|
|
return '0.0.1';
|
|
}
|
|
|
|
public function permissions(): array
|
|
{
|
|
return [
|
|
'chrono' => [
|
|
'label' => 'Access Chrono',
|
|
'description' => 'View and access the calendar and task management module',
|
|
'group' => 'Calendar & Tasks'
|
|
],
|
|
];
|
|
}
|
|
|
|
public function configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof BrowserModuleContextInterface) {
|
|
$context->registerModule($this, 'Chrono', 'static/module.mjs');
|
|
}
|
|
}
|
|
|
|
}
|