Code

Added glpi acls
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jul 2006 08:01:49 +0000 (08:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jul 2006 08:01:49 +0000 (08:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4195 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_glpiAccount.inc
plugins/admin/systems/class_glpiPrinterAccount.inc

index 2c909c6906a3eed17372c221a69577e24c180957..a0909decbfa956519535fbf085373471d7adb01d 100644 (file)
@@ -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"))
+          ));
+  }
   
 
 }
index ea5a02ef6dad8c7279181bdcf4351a09dda00e71..f9b0348ffec6fe62acbefbde155014018af459d1 100644 (file)
@@ -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:
 ?>