. -------------------------------------------------------------------------- */ class PluginExampleConfig extends CommonDBTM { static protected $notable = true; function getTabNameForItem(CommonGLPI $item, $withtemplate=0) { if (!$withtemplate) { if ($item->getType() == 'Config') { return __('Example plugin'); } } return ''; } static function configUpdate($input) { $input['configuration'] = 1 - $input['configuration']; return $input; } function showFormExample() { global $CFG_GLPI; if (!Session::haveRight("config", "w")) { return false; } $my_config = Config::getConfigurationValues('plugin:Example'); echo "