Files
user_profile/lib/Module.php
2026-02-10 20:37:44 -05:00

62 lines
1.3 KiB
PHP

<?php
namespace KTXM\UserProfile;
use KTXF\Module\ModuleBrowserInterface;
use KTXF\Module\ModuleInstanceAbstract;
class Module extends ModuleInstanceAbstract implements ModuleBrowserInterface
{
public function __construct()
{ }
public function handle(): string
{
return 'user_profile';
}
public function label(): string
{
return 'Profile & Settings';
}
public function author(): string
{
return 'Ktrix';
}
public function description(): string
{
return 'User profile management and settings.';
}
public function version(): string
{
return '0.0.1';
}
public function permissions(): array
{
return [
'user_profile' => [
'label' => 'Access Profile & Settings',
'description' => 'View and access the user profile and settings module',
'group' => 'User Profile'
],
];
}
public function registerBI(): array
{
return [
'handle' => $this->handle(),
'namespace' => 'UserProfile',
'version' => $this->version(),
'label' => $this->label(),
'author' => $this->author(),
'description' => $this->description(),
'boot' => 'static/module.mjs',
];
}
}