summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2f9437f)
raw | patch | inline | side by side (parent: 2f9437f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Nov 2007 10:30:07 +0000 (10:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 20 Nov 2007 10:30:07 +0000 (10:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7821 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/fai/class_faiSummaryTab.inc | patch | blob | history | |
plugins/admin/systems/tabs_server.inc | patch | blob | history |
index 62ba967a93d869f9a03c811bb5712c374c007c5b..540d5111571741d2df05db7681cad281cbed5748 100644 (file)
$this->base = $this->parent->by_object['workgeneric']->base;
}elseif(isset($this->parent->by_object['ogroup'])){
$this->base = $this->parent->by_object['ogroup']->base;
+ }elseif(isset($this->parent->by_object['servgeneric'])){
+ $this->base = $this->parent->by_object['servgeneric']->base;
}else{
print_red(_("Unknown type of FAI source information. This is not a profile, workstation nor a ogroup."));
}
index e9cae2eda3066a8e2de1d16701b1458ab9fdb540..564e92588c539b505f19c0e04b185e0ccdda3dbd 100644 (file)
function servtabs($config, $data, $dn,$category)
{
- tabs::tabs($config, $data, $dn, $category);
+ /* Save dn */
+ $this->dn= $dn;
+ $this->config= $config;
+
+ $baseobject= NULL;
+
+ foreach ($data as $tab){
+ $this->by_name[$tab['CLASS']]= $tab['NAME'];
+
+ if ($baseobject === NULL){
+ $baseobject= new $tab['CLASS']($this->config, $this->dn,NULL,$this);
+ $this->by_object[$tab['CLASS']]= $baseobject;
+ } else {
+ $this->by_object[$tab['CLASS']]= new $tab['CLASS']($this->config, $this->dn, $baseobject,$this);
+ }
+
+ $this->by_object[$tab['CLASS']]->parent= &$this;
+ $this->by_object[$tab['CLASS']]->set_acl_category($category);
+
+ /* Initialize current */
+ if ($this->current == ""){
+ $this->current= $tab['CLASS'];
+ }
+ }
/* Add references/acls/snapshots */
$this->addSpecialTabs();