X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_tabs.inc;h=71499f098a10f31bc988f7300fba1fac91b74667;hb=0a68aa232f4d9317a90c34912577d2ef7b3c1440;hp=38567747c6439b9c4128f76d60b30e297116e3f4;hpb=5242d68296182a1b253bd6aea373ae82c1a57e80;p=gosa.git diff --git a/gosa-core/include/class_tabs.inc b/gosa-core/include/class_tabs.inc index 38567747c..71499f098 100644 --- a/gosa-core/include/class_tabs.inc +++ b/gosa-core/include/class_tabs.inc @@ -37,11 +37,17 @@ class tabs var $acl_category; var $multiple_support_active = FALSE; - function tabs(&$config, $data, $dn, $acl_category= "") + var $read_only = FALSE; // Used when the entry is opened as "readonly" due to locks. + var $hide_refs = FALSE; + var $hide_acls = FALSE; + + function tabs(&$config, $data, $dn, $acl_category= "", $hide_refs = FALSE, $hide_acls = FALSE) { /* Save dn */ $this->dn= $dn; $this->config= &$config; + $this->hide_refs = $hide_refs; + $this->hide_acls = $hide_acls; if(!count($data)) { $data[] = array("CLASS" => 'plugin',"NAME" => 'Error'); @@ -68,6 +74,7 @@ class tabs $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn, $baseobject); } + $this->read_only |= $this->by_object[$tab['CLASS']]->read_only; $this->by_object[$tab['CLASS']]->parent= &$this; $this->by_object[$tab['CLASS']]->set_acl_category($this->acl_category); @@ -183,7 +190,10 @@ class tabs function gen_tabs($disabled = FALSE) { - $display= ""; + $display =""; + if(!$disabled){ + $display.= ""; + } $display.= "