28 Commits

Author SHA1 Message Date
e1e903f654 Merge pull request #4 from tips-of-mine/fix/plugin-registration-warning
Fix: Correct PluginSocProfile registration and add activation functions
2025-05-31 15:10:56 +02:00
10316e0c40 Fix: Correct PluginSocProfile registration and add activation functions
This commit addresses two issues:

1. Re-applies the fix for the `PluginSocProfile` registration.
   The extraneous 'classname' attribute, which caused a warning
   (Warning: Unknown attributes "classname" used in "PluginSocProfile" class
   registration in /var/www/glpi/src/Plugin.php on line 1667),
   has been removed. The registration is now correctly:
   `Plugin::registerClass('PluginSocProfile');`

2. Ensures plugin activation/deactivation functions are present.
   Adds the `plugin_enable_soc` and `plugin_disable_soc` functions
   to `setup.php`. These are required by GLPI to manage the plugin's
   lifecycle and display the enable/disable buttons in the plugin
   management interface.

These changes ensure the plugin registers correctly without warnings and
can be properly activated and deactivated within GLPI.
2025-05-31 13:10:23 +00:00
bc068f910c Merge pull request #3 from tips-of-mine/fix/plugin-registration-warning
Feat: Add plugin activation and deactivation functions
2025-05-31 15:06:45 +02:00
41baa4ce8f Feat: Add plugin activation and deactivation functions
Added the missing `plugin_enable_soc` and `plugin_disable_soc`
functions to `setup.php`.

These functions are required by GLPI to manage the plugin's lifecycle
and display the enable/disable buttons in the plugin management interface.
Currently, they simply return true, but can be expanded with specific
logic if needed in the future.

This change should allow the plugin to be activated from the GLPI UI.
2025-05-31 13:06:20 +00:00
212b3e242b Merge pull request #2 from tips-of-mine/fix/plugin-registration-warning
Fix: Remove unknown 'classname' attribute in PluginSocProfile registr…
2025-05-31 15:00:00 +02:00
7943009051 Fix: Remove unknown 'classname' attribute in PluginSocProfile registration
The 'classname' attribute was causing a warning during plugin installation
as it's not a recognized option in the Plugin::registerClass method for
this type of class.

This commit removes the unnecessary attribute, relying on the standard
behavior where the class name is inferred from the first argument.
2025-05-31 12:59:45 +00:00
80167ce471 Correction du schéma de la base de données et des hooks 2025-05-31 14:50:31 +02:00
4622a1a2cd Correction du fichier hook.php pour le plugin SOC 2025-05-31 14:43:12 +02:00
5b30a110ac Updated setup.php 2025-05-31 14:40:12 +02:00
bd6d72129c Correction du fichier setup.php pour le plugin SOC 2025-05-31 14:39:18 +02:00
574f947467 Update setup.php 2025-05-31 13:08:27 +02:00
a71ecf0e66 Create LICENSE 2025-05-31 13:06:33 +02:00
dc693aa97b Create AUTHORS.txt 2025-05-31 13:06:03 +02:00
ac7d9f9e3f Merge pull request #1 from tips-of-mine/fix/plugin-registration
Fix: Implement missing GLPI plugin registration functions
2025-05-31 12:01:27 +02:00
e461da61d7 Fix: Implement missing GLPI plugin registration functions
Adds the following mandatory functions to setup.php to ensure the plugin
can be correctly registered and identified by GLPI:

- `plugin_version()`: Parses plugin.xml to provide metadata such as name,
  version, author, and compatibility to GLPI.
- `plugin_init_options()`: Returns essential plugin identifiers like
  its key and display name.
- Stub functions `plugin_check_prerequisites()`, `plugin_check_config()`,
  and `plugin_display_config()`: Added to prevent potential errors and
  serve as placeholders for future functionality.

These changes address the issue of the plugin not appearing in the GLPI
plugin installation interface.
2025-05-31 10:01:09 +00:00
9ce90bfc5c Updated plugin.xml 2025-05-31 11:32:46 +02:00
9b49bc8dff Correction de la structure du plugin GLPI 2025-05-31 11:31:43 +02:00
fd697b44cc Updated plugin.xml 2025-05-31 11:28:45 +02:00
a3f31185cf Updated plugin.xml 2025-05-31 11:28:20 +02:00
b40983edd8 Update release-main.yml 2025-05-31 11:25:09 +02:00
5aa9cfb33e Correction pour rendre le plugin visible dans GLPI 2025-05-31 11:23:24 +02:00
3b1d93e916 Update release-main.yml 2025-05-31 11:14:22 +02:00
784d2ff773 Update SOC-Case-Management.xml 2025-05-31 11:10:38 +02:00
2f73a61861 Ajouter le fichier hook.php et corriger l'installation 2025-05-31 11:05:58 +02:00
c428a4271b Add multilanguage support to GLPI SOC Plugin 2025-05-31 10:57:31 +02:00
5f97834036 Create release-main.yml 2025-05-31 10:54:19 +02:00
d5a340bd51 Create SOC-Case-Management.xml 2025-05-31 10:52:59 +02:00
486d93a4f0 Start repository 2025-05-31 10:26:04 +02:00