0ec53e4dab
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
76 lines
1.9 KiB
PHP
76 lines
1.9 KiB
PHP
<?php
|
|
|
|
namespace KTXM\People;
|
|
|
|
use KTXF\Module\Configuration\BrowserModuleContextInterface;
|
|
use KTXF\Module\Configuration\ModuleContextInterface;
|
|
use KTXF\Module\ModuleInstanceAbstract;
|
|
|
|
/**
|
|
* People Module
|
|
*/
|
|
class Module extends ModuleInstanceAbstract
|
|
{
|
|
|
|
public function __construct()
|
|
{ }
|
|
|
|
public function handle(): string
|
|
{
|
|
return 'people';
|
|
}
|
|
|
|
public function label(): string
|
|
{
|
|
return 'People';
|
|
}
|
|
|
|
public function author(): string
|
|
{
|
|
return 'Ktrix';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'People management interface - provides address book selection and contact viewing/editing capabilities';
|
|
}
|
|
|
|
public function version(): string
|
|
{
|
|
return '0.0.1';
|
|
}
|
|
|
|
public function permissions(): array
|
|
{
|
|
return [
|
|
'people' => [
|
|
'label' => 'Access People',
|
|
'description' => 'View and access the people module',
|
|
'group' => 'People Management'
|
|
],
|
|
'people.contacts.view' => [
|
|
'label' => 'View Contacts',
|
|
'description' => 'View contact details',
|
|
'group' => 'People Management'
|
|
],
|
|
'people.contacts.edit' => [
|
|
'label' => 'Edit Contacts',
|
|
'description' => 'Edit contact information',
|
|
'group' => 'People Management'
|
|
],
|
|
'people.*' => [
|
|
'label' => 'Full People Management',
|
|
'description' => 'All people management operations',
|
|
'group' => 'People Management'
|
|
],
|
|
];
|
|
}
|
|
|
|
public function configure(ModuleContextInterface $context): void
|
|
{
|
|
if ($context instanceof BrowserModuleContextInterface) {
|
|
$context->registerModule($this, 'People', 'static/module.mjs');
|
|
}
|
|
}
|
|
}
|