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