index 59a848199df94fa10ceb6e41104d456971470205..cab74fcb70338e86f5b6d9a5478726148d411e91 100644 (file)
* This code is part of GOsa (http://www.gosa-project.org)
* Copyright (C) 2003-2008 GONICUS GmbH
*
- * ID: $$Id: class_plugin.inc 14584 2009-10-12 14:04:22Z hickert $$
+ * ID: $$Id$$
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
// Whether to display the apply button or not
protected $displayApplyBtn = "";
+ // Whether to display a footer or not.
+ protected $skipFooter = false;
+
// Copy&Paste handler
protected $cpHandler = null;
// A list of configured actions/events
protected $actions = array();
- function __construct($config,$ui,$plugname, $headpage)
+ function __construct(&$config,$ui,$plugname, $headpage)
{
$this->plugname = $plugname;
$this->headpage = $headpage;
}
}
+ // Skip footer if requested;
+ if($this->skipFooter) return("");
+
// In case an of locked entry, we may have opened a read-only tab.
$str = "";
if(isset($this->tabObject->read_only) && $this->tabObject->read_only == TRUE){
// Delete the object
$this->dn = $dn;
- $this->tabObject= new $tabClass($this->config,$this->config->data['TABS'][$tabType], $this->dn, $aclCategory);
+ $this->tabObject= new $tabClass($this->config,$this->config->data['TABS'][$tabType], $this->dn, $aclCategory, true, true);
$this->tabObject->set_acl_base($this->dn);
$this->tabObject->delete ();
$this->tabObject->parent = &$this;