Code

Made connectivity kolabAccount compatible with new acls
[gosa.git] / plugins / personal / connectivity / class_pureftpdAccount.inc
index 3d3c741629df75e168dc6d249ec422f4d60bb13b..af13efb6a384e91ecb8f6ccfa7f5257f7d10ed2c 100644 (file)
@@ -6,11 +6,6 @@ class pureftpdAccount extends plugin
   var $plHeadline= "FTP";
   var $plDescription= "This does something";
 
-  /* CLI vars */
-  var $cli_summary= "Manage users ftp account";
-  var $cli_description= "Some longer text\nfor help";
-  var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
   /* FTP attributes */
   var $FTPQuotaFiles = 0;
   var $FTPQuotaMBytes = 0;
@@ -186,23 +181,30 @@ class pureftpdAccount extends plugin
   }
 
 
+  /* Return plugin informations for acl handling
+  #FIME There possibly some attributes that can be combined to one acl. */
   function plInfo()
   {
-
-    # FIXME We should combine some of the attributes liste below..
-    return (array(  "plDescription"   => _("Intranet account settings"),
+    return (array(
+          "plShortName"     => _("Ftp"),
+          "plDescription"   => _("Pure ftp account"),
           "plSelfModify"    => TRUE,
-          "plDepends"       => array("objectClass" => "gosaAccount"),
-
-          "FTPQuotaFiles"         => _("Quota files"),
-          "FTPUploadRatio"        => _("Upload ratio"),
-          "FTPQuotaMBytes"        => _("Quota MBytes"),
-          "FTPDownloadRatio"      => _("Download ratio"),
-          "FTPUploadBandwidth"    => _("Upload bandwith"),
-          "FTPDownloadBandwidth"  => _("Download bandwith"),
-          "FTPStatus"             => _("Status")));
+          "plDepends"       => array("connectivity"),
+          "plPriority"      => 8,                                 // Position in tabs
+          "plSection"       => "personal",                        // This belongs to personal
+          "plCategory"      => array("gosaAccount"),
+          "plOptions"       => array(),
+
+          "plProvidedAcls"  => array(
+            "FTPQuotaFiles"         => "!!! FIXME "._("Quota files"),
+            "FTPUploadRatio"        => _("Upload ratio"),
+            "FTPQuotaMBytes"        => _("Quota MBytes"),
+            "FTPDownloadRatio"      => _("Download ratio"),
+            "FTPUploadBandwidth"    => _("Upload bandwith"),
+            "FTPDownloadBandwidth"  => _("Download bandwith"),
+            "FTPStatus"             => _("Status"))
+          ));
   }
-
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: