summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a236a5)
raw | patch | inline | side by side (parent: 3a236a5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Jan 2010 16:22:47 +0000 (16:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Jan 2010 16:22:47 +0000 (16:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15129 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_systemManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc
index 3845cef7b06118c69a13bf3846ea06d7711fdab2..b92bfd9156e31914d8acfbf0fdd9119c300d02dd 100644 (file)
function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
{
- $headpage = $this->getHeadpage();
- foreach($target as $id){
- $type = $headpage->getType($id);
- echo $type."<br>";
+ if(count($target) == 1){
+ $tInfo = $this->getObjectDefinitions();
+ $headpage = $this->getHeadpage();
+ $dn = $target[0];
+ $type = $tInfo[$headpage->getType($dn)];
+ return(management::editEntry($action,$target,$all,$type['tabClass'],$type['tabDesc'],$type['aclCategory']));
}
}
public function getObjectDefinitions()
{
-
-# "workstation" => array(
-# "RDN" => get_ou('workstationRDN'),
-# "CLASS" => "WORKTABS",
-# "TABNAME" => "workgeneric",
-# "TABCLASS"=> "worktabs",
-# "ACLC" => "workstation",
-# "ACL" => "workstation/workgeneric" ),
-
-
$tabs = array(
"FAKE_OC_OpsiHost" => array(
"ou" => "",
"ou" => get_ou('printerRDN'),
"plugClass" => "printgeneric",
"tabClass" => "printtabs",
- "tabDesc" => "PRINTABS",
+ "tabDesc" => "PRINTTABS",
"aclClass" => "printer",
"aclCategory" => "printgeneric"),