From: hickert Date: Wed, 28 Oct 2009 13:20:31 +0000 (+0000) Subject: Updated management class. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6a28740bdeb61b74da211b051626830e6d8913ed;p=gosa.git Updated management class. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14670 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 ();