Code

Added new userManagement filter -> phone account
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 5 Oct 2009 09:43:24 +0000 (09:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 5 Oct 2009 09:43:24 +0000 (09:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14507 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/users/class_divListUsers.inc
gosa-core/plugins/admin/users/class_userManagement.inc

index a83e827a20096933584c7ea2b8cc7ae409ce8211..e9698c400f683b8005f1283b882dcd91f0e7c95e 100644 (file)
@@ -37,6 +37,7 @@ class divListUsers extends MultiSelectWindow
   var $ShowMailUsers;
   var $ShowSambaUsers;
   var $ShowProxyUsers;
+  var $ShowPhoneUsers;
 
   /* Subsearch checkbox */
   var $SubSearch              = false;
@@ -88,6 +89,10 @@ class divListUsers extends MultiSelectWindow
     $this->AddCheckBox("ShowSambaUsers"     ,msgPool::selectToView(_("Samba"),"enabled")      ,sprintf(_("Show %s"),_("samba users")), true);
     $this->AddCheckBox("ShowProxyUsers"     ,msgPool::selectToView(_("Proxy"),"enabled")      ,sprintf(_("Show %s"),_("proxy users")), true);
 
+    if(class_available("phoneAccount")){
+      $this->AddCheckBox("ShowPhoneUsers"     ,msgPool::selectToView(_("Phone"),"enabled")      ,sprintf(_("Show %s"),_("phone users")), true);
+    }
+
     /* Add SubSearch checkbox */
     $this->AddCheckBox(SEPERATOR);
     $this->AddCheckBox("SubSearch",  msgPool::selectToView("","subsearch"), msgPool::selectToView("","subsearch_small"), false);
index f3bb656588e81fc3f83daa842aa21eab0336e824..3e99ac0a81b7d48edb77a2cd1dc7d4ceb38eb13f 100644 (file)
@@ -1132,6 +1132,7 @@ class userManagement extends plugin
     $ShowMailUsers        = $this->DivListUsers->ShowMailUsers;
     $ShowSambaUsers       = $this->DivListUsers->ShowSambaUsers;
     $ShowProxyUsers       = $this->DivListUsers->ShowProxyUsers;
+    $ShowPhoneUsers       = $this->DivListUsers->ShowPhoneUsers;
 
     /* Setup filter depending on selection */
     $filter="";
@@ -1154,6 +1155,9 @@ class userManagement extends plugin
     if ($ShowProxyUsers){
       $filter.= "(objectClass=gosaProxyAccount)";
     }
+    if ($ShowPhoneUsers){
+      $filter.= "(objectClass=gofonAccount)";
+    }
     if ($ShowTemplates){
       $filter= "(|(objectClass=gosaUserTemplate)(&(objectClass=gosaAccount)(|$filter)))";
     } else {