Code

* Created "old" branch and moved stuff
[gosa.git] / branches / old / gosa-plugins / ldapmanager / addons / ldapmanager / class_ldif.inc
diff --git a/branches/old/gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc b/branches/old/gosa-plugins/ldapmanager/addons/ldapmanager/class_ldif.inc
new file mode 100644 (file)
index 0000000..4d16ea5
--- /dev/null
@@ -0,0 +1,53 @@
+<?php
+
+class ldif extends plugin
+{
+  /* Definitions */
+  var $plHeadline= "LDAP manager";
+  var $plDescription= "This does something";
+  var $plIcon = "plugins/ldapmanager/images/ldif.png";
+
+  /* attribute list for save action */
+  var $attributes= array();
+  var $objectclasses= array();
+  var $ldif;
+
+  function ldif (&$config)
+  {
+    /* Include config object */
+    $this->ldif= new ldiftab($config, $config->data['TABS']['LDIFTAB'], "");
+  }
+
+  function execute()
+  {
+       /* Call parent execute */
+       plugin::execute();
+
+    /* Show main page */
+    return ($this->ldif->execute());
+  }
+
+  /* Return plugin informations for acl handling
+     #FIXME You can only read attributes within this report plugin */
+  static function plInfo()
+  {
+    return (array(
+        "plShortName"   => _("Ldap manager"),
+        "plDescription" => "Dummy entry for menu creation functions, later",
+        "plSelfModify"  => FALSE,
+        "plDepends"     => array(),
+        "plPriority"    => 1,
+        "plSection"     => array("addon"),
+        "plCategory"    => array("ldapmanager" => array("objectClass" => "none", "description" => _("Ldap manager"))),
+
+        "plProvidedAcls" => array()
+        ));
+  }
+
+
+
+}
+
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>