Code

Starting move
[gosa.git] / gosa-core / plugins / addons / ldapmanager / class_ldif.inc
diff --git a/gosa-core/plugins/addons/ldapmanager/class_ldif.inc b/gosa-core/plugins/addons/ldapmanager/class_ldif.inc
new file mode 100644 (file)
index 0000000..3451f81
--- /dev/null
@@ -0,0 +1,52 @@
+<?php
+
+class ldif extends plugin
+{
+  /* Definitions */
+  var $plHeadline= "LDAP manager";
+  var $plDescription= "This does something";
+
+  /* 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 addon"))),
+
+        "plProvidedAcls" => array()
+        ));
+  }
+
+
+
+}
+
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+?>