Code

Updated post handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 10:15:55 +0000 (10:15 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 10:15:55 +0000 (10:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19213 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/groups/userGroupSelect/class_userGroupSelect.inc

index cedf4f71b1c4c734af3a736450c0b605de4338dc..8d4d854e0f17938b858d15e5e3d4f941793ff4e1 100644 (file)
 
 class userGroupSelect extends management
 {
-  // Tab definition 
-  protected $skipFooter = TRUE;
-  protected $skipHeader = TRUE;
+    // Tab definition 
+    protected $skipFooter = TRUE;
+    protected $skipHeader = TRUE;
 
-  public $plHeadline = "User and group selection";
+    public $plHeadline = "User and group selection";
 
-  function __construct($config,$ui)
-  {
-    $this->config = $config;
-    $this->ui = $ui;
-    $this->storagePoints = array(get_ou("core", "userRDN"), get_ou("core", "groupRDN"));
+    function __construct($config,$ui)
+    {
+        $this->config = $config;
+        $this->ui = $ui;
+        $this->storagePoints = array(get_ou("core", "userRDN"), get_ou("core", "groupRDN"));
 
-    // Build filter
-    if (session::global_is_set(get_class($this)."_filter")){
-      $filter= session::global_get(get_class($this)."_filter");
-    } else {
-      $filter = new filter(get_template_path("selectUserGroup-filter.xml", true, dirname(__FILE__)));
-      $filter->setObjectStorage($this->storagePoints);
-    }
-    $this->setFilter($filter);
+        // Build filter
+        if (session::global_is_set(get_class($this)."_filter")){
+            $filter= session::global_get(get_class($this)."_filter");
+        } else {
+            $filter = new filter(get_template_path("selectUserGroup-filter.xml", true, dirname(__FILE__)));
+            $filter->setObjectStorage($this->storagePoints);
+        }
+        $this->setFilter($filter);
 
-    // Build headpage
-    $headpage = new listing(get_template_path("selectUserGroup-list.xml", true, dirname(__FILE__)));
-    $headpage->setFilter($filter);
-    parent::__construct($config, $ui, "object", $headpage);
-  }
+        // Build headpage
+        $headpage = new listing(get_template_path("selectUserGroup-list.xml", true, dirname(__FILE__)));
+        $headpage->setFilter($filter);
+        parent::__construct($config, $ui, "object", $headpage);
+    }
 
-  function save()
-  {
-    $act = $this->detectPostActions();
-    $headpage = $this->getHeadpage();
-    if(!isset($act['targets'])) return(array());
-    $ret = array();
-    foreach($act['targets'] as $dn){
-      $ret[] = $headpage->getEntry($dn);
+    function save()
+    {
+        $act = $this->detectPostActions();
+        $headpage = $this->getHeadpage();
+        if(!isset($act['targets'])) return(array());
+        $ret = array();
+        foreach($act['targets'] as $dn){
+            $ret[] = $headpage->getEntry($dn);
+        }
+        return($ret);
     }
-    return($ret);
-  }
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>