manage new config system

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@211 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo
2013-02-19 08:27:50 +00:00
parent 064cf6a24f
commit d9a47a3e19
3 changed files with 100 additions and 0 deletions

View File

@ -557,6 +557,11 @@ function plugin_example_addParamFordynamicReport($itemtype) {
function plugin_example_install() {
global $DB;
$config = new Config();
$config->setConfigurationValues('plugin:Example', array('configuration' => false));
ProfileRight::addProfileRights(array('example:read'));
if (!TableExists("glpi_plugin_example_examples")) {
$query = "CREATE TABLE `glpi_plugin_example_examples` (
`id` int(11) NOT NULL auto_increment,
@ -611,6 +616,10 @@ function plugin_example_install() {
function plugin_example_uninstall() {
global $DB;
$config = new Config();
$config->deleteConfigurationValues('plugin:Example', array('configuration' => false));
ProfileRight::deleteProfileRights(array('example:read'));
$notif = new Notification();
$options = array('itemtype' => 'Ticket',