Commit Graph

11 Commits

Author SHA1 Message Date
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
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
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
9b49bc8dff Correction de la structure du plugin GLPI 2025-05-31 11:31:43 +02:00
2f73a61861 Ajouter le fichier hook.php et corriger l'installation 2025-05-31 11:05:58 +02:00
486d93a4f0 Start repository 2025-05-31 10:26:04 +02:00