66 lines
1.4 KiB
PHP
66 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace KTXM\ChronoManager;
|
|
|
|
use KTXF\Module\ModuleBrowserInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
/**
|
|
* Chrono Manager Module
|
|
*/
|
|
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
|
|
{
|
|
|
|
public function __construct()
|
|
{ }
|
|
|
|
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 registerBI(): array {
|
|
return [
|
|
'handle' => $this->handle(),
|
|
'namespace' => 'ChronoManager',
|
|
'version' => $this->version(),
|
|
'label' => $this->label(),
|
|
'author' => $this->author(),
|
|
'description' => $this->description(),
|
|
'boot' => 'static/module.mjs',
|
|
];
|
|
}
|
|
|
|
}
|