summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee3ae49)
raw | patch | inline | side by side (parent: ee3ae49)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Oct 2009 10:52:38 +0000 (10:52 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Oct 2009 10:52:38 +0000 (10:52 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14633 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_management.inc | patch | blob | history |
index 2e8b2de899ddf5666aa88b083202ff25770f0dcc..2a272076adc59547127c60ac296dcd02a4191c3c 100644 (file)
return($this->getHeader().$ret);
}
-
-
// Handle actions (POSTs and GETs)
$str = $this->detectPostActions();
if($str) return($this->getHeader().$str);
// Display tab object.
- if($this->tabObject instanceOf tabs){
+ if($this->tabObject instanceOf tabs || $this->tabObject instanceOf multi_plug){
$this->tabObject->save_object();
$display = $this->tabObject->execute();
$display.= $this->_getTabFooter();
protected function _getTabFooter()
{
- if(!$this->tabObject instanceOf tabs){
+ if(!($this->tabObject instanceOf tabs || $this->tabObject instanceOf multi_plug)){
return("");
}
}
$str = "";
- if($this->tabObject->read_only == TRUE){
+ if(isset($this->tabObject->read_only) && $this->tabObject->read_only == TRUE){
$str.= "<p style=\"text-align:right\">
<input type=submit name=\"edit_cancel\" value=\"".msgPool::cancelButton()."\">
</p>";
$this->tabObject->set_acl_base($this->dn);
}
}else{
- echo "? Multiple not implemented yet";
$this->is_new = FALSE;
$this->is_singel_edit = FALSE;
$this->is_multiple_edit = TRUE;
+ $this->dns = $target;
+ $tmp = new multi_plug($this->config,$this->tabClass,$this->config->data['TABS'][$this->tabType],
+ $this->dns,$this->headpage->getBase(),$this->aclCategory);
+ if ($tmp->entries_locked()){
+ return($tmp->display_lock_message());
+ }
+ $tmp->lock_entries($this->ui->dn);
+ if($tmp->multiple_available()){
+ $this->tabObject = $tmp;
+ set_object_info($this->tabObject->get_object_info());
+ }
+
}
}
protected function saveChanges()
{
- if($this->tabObject instanceOf tabs){
+ if($this->tabObject instanceOf tabs || $this->tabObject instanceOf multi_plug){
$this->tabObject->save_object();
$msgs = $this->tabObject->check();
if(count($msgs)){
protected function applyChanges()
{
- if($this->tabObject instanceOf tabs){
+ if($this->tabObject instanceOf tabs || $this->tabObject instanceOf multi_plug){
$this->tabObject->save_object();
$msgs = $this->tabObject->check();
if(count($msgs)){