Code

Added scalix Group
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Aug 2008 05:12:05 +0000 (05:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Aug 2008 05:12:05 +0000 (05:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12278 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/scalix/admin/groups/scalix/class_sclaixGroup.inc [new file with mode: 0644]
gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc
gosa-plugins/scalix/personal/scalix/generic.tpl

diff --git a/gosa-plugins/scalix/admin/groups/scalix/class_sclaixGroup.inc b/gosa-plugins/scalix/admin/groups/scalix/class_sclaixGroup.inc
new file mode 100644 (file)
index 0000000..6067b2a
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+class scalixGroup extends scalixAccount
+{
+       var $scalixGroup = TRUE;
+               
+  var $attributes           = array("scalixMailnode", "scalixServerLanguage", "scalixLimitMailboxSize", "scalixMailboxClass");
+  var $fakeBooleanAttributes= array("scalixAdministrator", "scalixMailboxAdministrator", "scalixLimitOutboundMail",
+                                    "scalixLimitInboundMail", "scalixLimitNotifyUser", "scalixHideUserEntry");
+  var $objectclasses        = array("scalixGroupClass");
+       
+}
+
+?>
index 665326620eefa5579a92c30052e882d241fc96c5..73338760e305131e66ea66c41fe79015b7b4a267 100644 (file)
@@ -20,8 +20,12 @@ class scalixAccount extends plugin
   /* MUST */
   var $scalixScalixObject= TRUE; //TRUE or FALSE
   var $scalixMailnode= "";
-  /* INDIRECT MUST, scalix will complain if no email was specified */
+
+  /* Indicates whether we have a scalix group or a sclix user account 
+   */
+       var $scalixGroup = FALSE;
   
+  /* INDIRECT MUST, scalix will complain if no email was specified */
   /* MAY */
   var $scalixAdministrator= FALSE;
   var $scalixMailboxAdministrator = FALSE;
@@ -104,6 +108,7 @@ class scalixAccount extends plugin
 
     /* Load templating engine */
     $smarty= get_smarty();
+    $smarty->assign("scalixGroup",$this->scalixGroup);
     $display= "";
 
     /* Do we need to flip is_account state? */
index 0d7c71fd275fabe081c0244decd16b08e727435a..913ac3c26f4bbcbb394e8905ed5c0f82cb57b082 100644 (file)
@@ -22,6 +22,7 @@
 {/render}
      </td>
     </tr>
+{if !$calixGroup}
     <tr>
      <td><label for="scalixServerLanguage">{t}Scalix server language{/t}</label></td>
      <td>
 {/render}
   </td>
  </tr>
+{/if}
 </table>
 
 <input type="hidden" name="scalixTab" value="scalixTab">