Code

Updated shared folder plugin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Oct 2010 15:18:43 +0000 (15:18 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 12 Oct 2010 15:18:43 +0000 (15:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20009 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/admin/groups/GroupwareSharedFolder/class_GroupwareSharedFolder.inc

index f1a8d802c5e915ca2f19f84a81491e098d2d0d95..46470007d226b854c3531e885fa1bb526cf90aff 100644 (file)
@@ -23,6 +23,10 @@ if(!defined("GROUPWARE_LOOKUP")){
 }
 
 
+
+/*! \brief  Allows to update groupware shared-folders 
+ *           using the jsonRPC backend.
+ */
 class GroupwareSharedFolder extends plugin
 {
     public $view_logged = FALSE;
@@ -32,7 +36,6 @@ class GroupwareSharedFolder extends plugin
     private $rpcError = FALSE;
     private $rpcErrorMessage = "";
 
-
     // Attribute definition 
     public $attributes = array('folderList');
     public $folderList = array();   
@@ -41,6 +44,7 @@ class GroupwareSharedFolder extends plugin
     private $featuresEnabled = array();
     private $FolderWidget = NULL;
 
+
     /*! \brief  Constructs the plugin, loads required parent values 
      *           and initiates the initialization.
      */
@@ -60,6 +64,7 @@ class GroupwareSharedFolder extends plugin
     }
 
 
+
     /*! \brief      Check whether a feature is enabled or not.
      *  @param      The feature name to check for
      *  @return     TRUE on success else FALSE
@@ -79,10 +84,9 @@ class GroupwareSharedFolder extends plugin
         $capabilities = array();
 
 
-
-
-         
-
+        #FIXME
+        /* Not working at all, have to wait for backend funtions.
+         */
     
 #       // Detect supported capabilities 
 #       $rpc = $this->config->getRpcHandle();
@@ -134,6 +138,8 @@ class GroupwareSharedFolder extends plugin
         $this->initialized = TRUE;
     }
 
+
+    // Returns a dummy folder list . #Fixme remove this.
     function getFolderList()
     {
         $folders = array(
@@ -153,19 +159,6 @@ class GroupwareSharedFolder extends plugin
         return($ret);
     }
 
-    function getPermissions()
-    {
-        $ret[GROUPWARE_RIGHTS_NONE] = _("None");
-        $ret[RIGHTS_GROUPWARE_READ] = _("Read");
-        $ret[RIGHTS_GROUPWARE_POST] = _("Post");
-        $ret[GROUPWARE_RIGHTS_APPEND] = _("Append");
-        $ret[RIGHTS_GROUPWARE_WRITE] = _("Write");
-        $ret[GROUPWARE_RIGHTS_ALL] = _("All");
-        return($ret);
-    }
-
-
-
     function execute()
     {
         plugin::execute();
@@ -255,26 +248,6 @@ class GroupwareSharedFolder extends plugin
     }
 
 
-    /*! \brief  ACL settings
-     */
-    static function plInfo()
-    {
-        return (array(
-                    "plShortName"     => _("Shared folder"),
-                    "plDescription"   => _("Groupware shared folder"),
-                    "plSelfModify"    => FALSE,
-                    "plDepends"       => array("ogroup"),                     // This plugin depends on
-                    "plPriority"      => 4,                                 // Position in tabs
-                    "plSection"     => array("administration"),
-                    "plCategory"    => array("groups"),
-                    "plOptions"       => array(),
-                    "plProvidedAcls"  => array(
-                        "folderList"   => _("Shared folder"))
-                    ));
-    }
-
-
-
     /*! \brief  Get posted values and check which are interesting for us.
      */ 
     function save_object()
@@ -288,7 +261,6 @@ class GroupwareSharedFolder extends plugin
     }
 
 
-
     /*!   \brief    Removes the distribution list extension for the current 
      *               object group.
      */  
@@ -315,5 +287,37 @@ class GroupwareSharedFolder extends plugin
         }
         return($messages);
     }
+
+
+    /*! \brief  ACL settings
+     */
+    static function plInfo()
+    {
+        return (array(
+                    "plShortName"     => _("Shared folder"),
+                    "plDescription"   => _("Groupware shared folder"),
+                    "plSelfModify"    => FALSE,
+                    "plDepends"       => array("ogroup"),                     // This plugin depends on
+                    "plPriority"      => 4,                                 // Position in tabs
+                    "plSection"     => array("administration"),
+                    "plCategory"    => array("groups"),
+                    "plOptions"       => array(),
+                    "plProvidedAcls"  => array(
+                        "folderList"   => _("Shared folder"))
+                    ));
+    }
+
+
+    // Should come from the sever later.  #FIXME
+    function getPermissions()
+    {
+        $ret[GROUPWARE_RIGHTS_NONE] = _("None");
+        $ret[RIGHTS_GROUPWARE_READ] = _("Read");
+        $ret[RIGHTS_GROUPWARE_POST] = _("Post");
+        $ret[GROUPWARE_RIGHTS_APPEND] = _("Append");
+        $ret[RIGHTS_GROUPWARE_WRITE] = _("Write");
+        $ret[GROUPWARE_RIGHTS_ALL] = _("All");
+        return($ret);
+    }
 }
 ?>