Exemplo n.º 1
0
 * (c) 2007-2010 Mandriva, http://www.mandriva.com
 *
 * $Id$
 *
 * This file is part of Mandriva Management Console (MMC).
 *
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * MMC is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
include_once "modules/admin/includes/configure.inc.php";
$page = new ConfigurationPage("Inventory configuration", "index");
$options = array();
$methodOption = new SelectOption("computers", "method", "Inventory backend", array("glpi", "inventory"), "", true);
$options[] = $methodOption;
$option = new StringOption("glpi", "dbdriver", "Db Driver", "", true);
$methodOption->showOnSelection("inventory", $option);
$methodOption->addFunctionBefore("admin.loadInventoryConf", array());
$methodOption->addFunctionAfter("admin.switchInventoryModule", array());
/* $inventory_options[] = $option; */
$page->addOptions('base', $options);
/* $page->addOptions('inventory', $inventory_options); */