Initial commit

This commit is contained in:
root
2025-12-21 09:53:25 -05:00
committed by Sebastian Krupinski
commit fa24f1468f
32 changed files with 4972 additions and 0 deletions

80
lib/Module.php Normal file
View File

@@ -0,0 +1,80 @@
<?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',
];
}
}