index 6eababcf81ca6ed95ca0ed05d169e90fe236af0e..eb8af6df705f58168cac95fc01f2c4168eed6a31 100644 (file)
* @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'.
*/
- protected function removeEntryRequested($action,$target,$all)
+ protected function removeEntryRequested($action="",$target=array(),$all=array())
{
$disallowed = array();
$this->dns = array();
* @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?
// 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 ();