Code

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

gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc

index 5133828c80c1269c07efe49f46ac93a1a47dcdb0..20c8b9b113c3c79deee86fe0cc09eb9628e418a7 100644 (file)
 class singleUserSelect extends management
 {
 
-  protected $skipFooter = TRUE;
-  protected $skipHeader = TRUE;
-
-  var $plHeadline = "User selection";
-
-  function __construct($config,$ui)
-  {
-    $this->config = $config;
-    $this->ui = $ui;
-   
-    $this->storagePoints = array(get_ou("core", "userRDN"));
-    // 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("singleUser-filter.xml", true, dirname(__FILE__)));
-      $filter->setObjectStorage($this->storagePoints);
+    protected $skipFooter = TRUE;
+    protected $skipHeader = TRUE;
+
+    var $plHeadline = "User selection";
+
+    function __construct($config,$ui)
+    {
+        $this->config = $config;
+        $this->ui = $ui;
+
+        $this->storagePoints = array(get_ou("core", "userRDN"));
+
+        // 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("singleUser-filter.xml", true, dirname(__FILE__)));
+            $filter->setObjectStorage($this->storagePoints);
+        }
+        $this->setFilter($filter);
+
+        // Build headpage
+        $headpage = new listing(get_template_path("singleUser-list.xml", true, dirname(__FILE__)));
+        $headpage->setFilter($filter);
+        parent::__construct($config, $ui, "users", $headpage);
+    }
+
+    // Inject user actions
+    function detectPostActions()
+    {
+        $action = management::detectPostActions();
+        if(isset($_POST['add_users_save'])) $action['action'] = "userSelected";
+        return($action);;
     }
-    $this->setFilter($filter);
-
-    // Build headpage
-    $headpage = new listing(get_template_path("singleUser-list.xml", true, dirname(__FILE__)));
-    $headpage->setFilter($filter);
-    parent::__construct($config, $ui, "users", $headpage);
-  }
-
-   // Inject user actions
-  function detectPostActions()
-  {
-      $action = management::detectPostActions();
-      if(isset($_POST['add_users_save'])) $action['action'] = "userSelected";
-      return($action);;
-  }
 } 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>