From: hickert Date: Tue, 18 Jul 2006 08:01:49 +0000 (+0000) Subject: Added glpi acls X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4bad4c76d9e00b7a84a9c11ea8b7dd58d3000e8b;p=gosa.git Added glpi acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4195 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_glpiAccount.inc b/plugins/admin/systems/class_glpiAccount.inc index 2c909c690..a0909decb 100644 --- a/plugins/admin/systems/class_glpiAccount.inc +++ b/plugins/admin/systems/class_glpiAccount.inc @@ -760,6 +760,49 @@ class glpiAccount extends plugin } return($ret); } + + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Glpi"), + "plDescription" => _("Inventory extension"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("workstation","terminal","component","server","phone") , + "plProvidedAcls"=> array( + + "tech_num" => _("Technical responsilbe"), + "comments" => _("Comment"), + "os" => _("Operating system"), + "location" => _("Location"), + "contact_num" => _("Contact person"), + "model" => _("Model"), + "type" => _("Type"), + "FK_glpi_enterprise" => _("Manufacturer"), + + "Attachment_name" => _("Attachment name"), + "Attachment_comment" => _("Attachment comment"), + "Attachment_mime" => _("Attachment mime type"), + "Attachment_filename" => _("Attachment filename"), + + "Device_monitor" => _("Device monitor"), + "Device_case" => _("Device case"), + "Device_moboard" => _("Device motherboard"), + "Device_sndcard" => _("Device soundcard"), + "Device_processor" => _("Device processor"), + "Device_iface" => _("Device misc device"), + "Device_ram" => _("Device ram"), + "Device_hdd" => _("Device hard disk drive"), + "Device_drive" => _("Device drive"), + "Device_control" => _("Device controler"), + "Device_gfxcard" => _("Device graphics card"), + "Device_power" => _("Device power supply"), + "Device_pci" => _("Device pci device")) + )); + } } diff --git a/plugins/admin/systems/class_glpiPrinterAccount.inc b/plugins/admin/systems/class_glpiPrinterAccount.inc index ea5a02ef6..f9b0348ff 100644 --- a/plugins/admin/systems/class_glpiPrinterAccount.inc +++ b/plugins/admin/systems/class_glpiPrinterAccount.inc @@ -757,7 +757,37 @@ class glpiPrinterAccount extends plugin return($ret); } + /* Return plugin informations for acl handling */ + function plInfo() + { + return (array( + "plShortName" => _("Glpi"), + "plDescription" => _("Printer inventory extension"), + "plSelfModify" => FALSE, + "plDepends" => array(), + "plPriority" => 0, + "plSection" => array("administration"), + "plCategory" => array("printer"), + + "plProvidedAcls"=> array( + "flags_serial" => _("Supports serial interface"), + "flags_par" => _("Supports parallel interface"), + "flags_usb" => _("Supports usb interface"), + "tech_num" => _("Technical responsible"), + "comments" => _("Comments"), + "location" => _("Location"), + "contact_num" => _("Contact person"), + "type" => _("Type"), + "FK_glpi_enterprise" => _("Manufacturer"), + + "Attachment_name" => _("Attachment name"), + "Attachment_comment" => _("Attachment comment"), + "Attachment_mime" => _("Attachment mime type"), + "Attachment_filename" => _("Attachment filename"), + + "ManageCartridges" => _("Cartridge settings")) + )); + } } - // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>