Initial commit

This commit is contained in:
root
2025-12-21 09:52:59 -05:00
committed by Sebastian Krupinski
commit dce16eff59
10 changed files with 2756 additions and 0 deletions

71
lib/Module.php Normal file
View File

@@ -0,0 +1,71 @@
<?php
namespace KTXM\PeopleProviderLocal;
use KTXC\Resource\ProviderManager;
use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\ModuleInstanceAbstract;
use KTXF\Resource\Provider\ProviderInterface;
use KTXM\PeopleProviderLocal\Providers\Provider;
/**
* People Provider Local Module
*/
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
{
public function __construct(
private readonly ProviderManager $providerManager,
) {}
public function handle(): string
{
return 'people_provider_local';
}
public function label(): string
{
return 'People Provider Local';
}
public function author(): string
{
return 'Ktrix';
}
public function description(): string
{
return 'People provider module for Ktrix - provides local people storage';
}
public function version(): string
{
return '0.0.1';
}
public function permissions(): array
{
return [
'people_provider_local' => [
'label' => 'Access People Provider Local',
'description' => 'View and access the local people provider module',
'group' => 'People Providers'
],
];
}
public function boot(): void
{
$this->providerManager->register(ProviderInterface::TYPE_PEOPLE, 'default', Provider::class);
}
public function registerBI(): array {
return [
'handle' => $this->handle(),
'namespace' => 'PeopleProviderLocal',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description()
];
}
}