From 897c2fa16690d5aa6cc9b9c5e44a60c7a76aa228 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 26 Oct 2009 14:49:24 +0000 Subject: [PATCH] Updated management class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14642 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_management.inc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/gosa-core/include/class_management.inc b/gosa-core/include/class_management.inc index 3c920ecdd..8161e394f 100644 --- a/gosa-core/include/class_management.inc +++ b/gosa-core/include/class_management.inc @@ -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']]; -- 2.30.2