Code

Added acls for printer glpi
[gosa.git] / plugins / admin / systems / class_phoneGeneric.inc
index e85dc25cf8a1727bbf40cb40ef1934f85553ee40..2a98149b2c37c476b98104ca4a20dc6d2f196861 100644 (file)
@@ -53,9 +53,9 @@ class phoneGeneric extends plugin
 
   var $objectclasses= array("top", "goFonHardware");
 
-  function phonegeneric ($config, $dn= NULL)
+  function phonegeneric ($config, $dn= NULL, $parent= NULL)
   {
-    plugin::plugin ($config, $dn);
+    plugin::plugin ($config, $dn, $parent);
     $this->netConfigDNS = new termDNS($this->config,$this->dn,$this->objectclasses, true);
 
     /* Set base */
@@ -400,6 +400,32 @@ class phoneGeneric extends plugin
     $this->postcreate();
   }
 
+
+  /* Return plugin informations for acl handling
+      #FIXME FAIscript seams to ununsed within this class... */
+  function plInfo()
+  {
+    return (array(
+          "plShortName"   => _("Generic"),
+          "plDescription" => _("Phone generic"),
+          "plSelfModify"  => FALSE,
+          "plDepends"     => array(),
+          "plPriority"    => 0,
+          "plSection"     => array("administration"),
+          "plCategory"    => array("phone" => array("description"  => _("Phone hardware"),
+                                                    "objectClass"  => "goFonHardware")),
+          "plProvidedAcls"=> array(
+            "cn"                  => _("Name"),
+            "description"         => _("Description"),
+            "goFonType"           => _("Mode"),
+            "goFonDmtfMode"       => _("DTMF mode"),
+            "goFonDefaultIP"      => _("Default ip"),
+            "goFonQualify"        => _("Qualify"),
+            "selected_categorie"  => _("Hardware type"))
+          ));
+  }
+
+
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: