From 6a28740bdeb61b74da211b051626830e6d8913ed Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 28 Oct 2009 13:20:31 +0000 Subject: [PATCH] Updated management class. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14670 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_management.inc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gosa-core/include/class_management.inc b/gosa-core/include/class_management.inc index 6eababcf8..31573b68f 100644 --- a/gosa-core/include/class_management.inc +++ b/gosa-core/include/class_management.inc @@ -287,8 +287,16 @@ class management * @param Array 'target' A list of object dns, which should be affected by this method. * @param Array 'all' A combination of both 'action' and 'target'. */ - function removeEntryConfirmed($action="",$target=array(),$all=array()) + function removeEntryConfirmed($action="",$target=array(),$all=array(), + $altTabClass="",$altTabType="",$altAclCategory="") { + $tabType = $this->tabType; + $tabClass = $this->tabClass; + $aclCategory = $this->aclCategory; + if(!empty($altTabClass)) $tabClass = $altTabClass; + if(!empty($altTabType)) $tabType = $altTabType; + if(!empty($altAclCategory)) $aclCategory = $altAclCategory; + foreach($this->dns as $key => $dn){ // Check permissions, are we allowed to remove this object? @@ -297,8 +305,7 @@ class management // Delete the object $this->dn = $dn; - $tab = $this->tabClass; - $this->tabObject= new $tab($this->config,$this->config->data['TABS'][$this->tabType], $this->dn, $this->aclCategory); + $this->tabObject= new $tabClass($this->config,$this->config->data['TABS'][$tabType], $this->dn, $aclCategory); $this->tabObject->set_acl_base($this->dn); $this->tabObject->delete (); -- 2.30.2