Code

Added comments and translation tags to connectivity plinfo functions
[gosa.git] / plugins / personal / connectivity / class_pptpAccount.inc
index 04ea2390c463ac95cfa63ed3dcd34f4fd0a775ac..c772d322bc646f663828aa5b2169e7e9b4de0bb4 100644 (file)
@@ -26,11 +26,6 @@ class pptpAccount extends plugin
   var $plHeadline= "PPTP";
   var $plDescription= "This does something";
 
-  /* CLI vars */
-  var $cli_summary= "Manage users pptp account";
-  var $cli_description= "Some longer text\nfor help";
-  var $cli_parameters= array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
   /* attribute list for save action */
   var $attributes= array();
   var $objectclasses= array("pptpServerAccount");
@@ -81,7 +76,7 @@ class pptpAccount extends plugin
       $this->cleanup();
       $ldap->modify ($this->attrs); 
 
-      show_ldap_error($ldap->get_error(), _("Removing PPTP account failed"));
+      show_ldap_error($ldap->get_error(), sprintf(_("Removing of user/PPTP account with dn '%s' failed."),$this->dn));
 
       /* Optionally execute a command after we're done */
       $this->handle_post_events('remove');
@@ -124,7 +119,7 @@ class pptpAccount extends plugin
       $this->cleanup();
       $ldap->modify ($this->attrs); 
 
-      show_ldap_error($ldap->get_error(), _("Saving PPTP account failed"));
+      show_ldap_error($ldap->get_error(), sprintf(_("Saving of user/PPTP account with dn '%s' failed."),$this->dn));
 
       /* Optionally execute a command after we're done */
       if ($this->initially_was_account == $this->is_account){
@@ -137,6 +132,19 @@ class pptpAccount extends plugin
     }
   }
 
+
+  /* Return pluign informations for acl handling 
+      #FIXME This is only an enable/disable checkbox for this account, there is possibly a better solution available later */ 
+  function plInfo()
+  {
+    return (array(  
+          "plDescription"     => _("PPTP account"),
+          "plSelfModify"      => TRUE,
+          "plDepends"         => array("objectClass" => "gosaAccount"),
+          "pptpServerAccount" => "!!! FIXME "._("PPTP account")));
+  }
+
+
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: