Code

Updated management class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Oct 2009 14:49:24 +0000 (14:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Oct 2009 14:49:24 +0000 (14:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14642 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_management.inc

index 3c920ecdd549ab5843270196aaeceefbb4dfec26..8161e394f35fe89fc31912bb0b529e5c8049111a 100644 (file)
@@ -47,10 +47,10 @@ class management
   protected $snapHandler = null;
 
   // Private
-  private $plugname = "";
-  private $headpage = null;
-  private $filter = null;
-  private $actions = array();
+  protected $plugname = "";
+  protected $headpage = null;
+  protected $filter = null;
+  protected $actions = array();
   
   function  __construct($config,$ui,$plugname, $headpage)
   {
@@ -80,7 +80,7 @@ class management
     }
 
     // Handle actions (POSTs and GETs)
-    $str = $this->detectPostActions();
+    $str = $this->handleActions($this->detectPostActions());
     if($str) return($this->getHeader().$str);
 
     // Display tab object.
@@ -223,6 +223,11 @@ class management
     if(isset($_POST['edit_cancel'])) $action['action'] = "cancel";    
     if(isset($_POST['delete_confirmed'])) $action['action'] = "removeConfirmed";    
 
+    return($action);
+  }
+
+  function handleActions($action)
+  {
     // Start action  
     if(isset($this->actions[$action['action']])){
       $func = $this->actions[$action['action']];