summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8f48faa)
raw | patch | inline | side by side (parent: 8f48faa)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Aug 2009 08:02:49 +0000 (08:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Aug 2009 08:02:49 +0000 (08:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14136 594d385d-05f5-0310-b6e9-bd551577e9d8
16 files changed:
index c999641c1a0f8cb351daea6b54b07e9940bb2107..af39e67d72956abc368808cdf6179ba01236735d 100644 (file)
/* Initialize collector object
* Used to display the ui and to collect the user input.
*/
- $this->o_tab = new $class($config,$tab,"new",$acl_category);
+ $this->o_tab = new $class($config,$tab,"new",$acl_category, TRUE, TRUE);
$this->o_tab->set_acl_base($acl_base);
$this->by_object = &$this->o_tab->by_object;
$this->by_name = &$this->o_tab->by_name;
/* Initialize the objects we want to edit at once
*/
foreach($dns as $dn){
- $obj = new $class($config,$tab,$dn,$acl_category);
+ $obj = new $class($config,$tab,$dn,$acl_category, TRUE, TRUE);
$obj->set_acl_base($acl_base);
$this->a_handles[] = $obj;
}
index feb50d164a248281a5baeef5b6e52b04a601c68d..f277f815bd7c0d5455838d15bfdee31ced4c82de 100644 (file)
var $multiple_support_active = FALSE;
var $read_only = FALSE; // Used when the entry is opened as "readonly" due to locks.
-
- function tabs(&$config, $data, $dn, $acl_category= "")
+ 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');
function addSpecialTabs()
{
- $this->by_name['acl']= _("ACL");
- $this->by_object['acl']= new acl($this->config, $this, $this->dn);
- $this->by_object['acl']->parent= &$this;
- $this->by_name['reference']= _("References");
- $this->by_object['reference']= new reference($this->config, $this->dn);
- $this->by_object['reference']->parent= &$this;
+ if(!$this->hide_acls){
+ $this->by_name['acl']= _("ACL");
+ $this->by_object['acl']= new acl($this->config, $this, $this->dn);
+ $this->by_object['acl']->parent= &$this;
+ }
+ if(!$this->hide_refs){
+ $this->by_name['reference']= _("References");
+ $this->by_object['reference']= new reference($this->config, $this->dn);
+ $this->by_object['reference']->parent= &$this;
+ }
}
diff --git a/gosa-core/plugins/admin/departments/tabs_department.inc b/gosa-core/plugins/admin/departments/tabs_department.inc
index 208fb40a0a57174c6a6b86cd645d600b6b73e780..5ec88b675bba626d030bcaa707fab88ed94ab508 100644 (file)
var $moved = FALSE;
var $base_name = "department";
- function deptabs($config, $data, $dn,$category)
+ function deptabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
{
- tabs::tabs($config, $data, $dn,$category);
+ tabs::tabs($config, $data, $dn,$category,$hide_refs, $hide_acls);
/* Detect the base class (The classs which extends from department)
*/
diff --git a/gosa-core/plugins/admin/groups/tabs_group.inc b/gosa-core/plugins/admin/groups/tabs_group.inc
index 310e84e3035d2ef444468e7752b3c83b16e692ab..444c85237276c15c6282f2b17af9e90d00e610dd 100644 (file)
class grouptabs extends tabs
{
- function grouptabs($config, $data, $dn)
+ function grouptabs($config, $data, $dn, $cat = "", $hide_refs = FALSE, $hide_acls = FALSE)
{
- tabs::tabs($config, $data, $dn,"groups");
+ tabs::tabs($config, $data, $dn,"groups", $hide_refs, $hide_acls);
$this->addSpecialTabs();
}
diff --git a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc
index f70d3c374fcf0b0ca175f1c6f5053efd117fa430..bea1067d843ef66cfd6ef26bf4e66d62154df018 100644 (file)
return ( $str);
}
- function ogrouptabs($config, $data, $dn,$category ="ogroups")
+ function ogrouptabs($config, $data, $dn,$category ="ogroups",$hide_refs = FALSE, $hide_acls = FALSE)
{
- tabs::tabs($config, $data, $dn, $category);
+ tabs::tabs($config, $data, $dn, $category,$hide_refs, $hide_acls);
$this->base= $this->by_object['ogroup']->base;
$this->acl_category = $category;
diff --git a/gosa-core/plugins/admin/users/tabs_user.inc b/gosa-core/plugins/admin/users/tabs_user.inc
index 0f95ed9012d8bae37ebe401b6500eee1bb0a70e7..aab4106c64f56e9888b45734e720879c103f0346 100644 (file)
var $givenName = "";
var $sn;
- function usertabs($config, $data, $dn)
+ function usertabs($config, $data, $dn, $cat = "", $hide_refs = FALSE, $hide_acls = FALSE)
{
- tabs::tabs($config, $data, $dn, 'users');
+ tabs::tabs($config, $data, $dn, 'users',$hide_refs, $hide_acls);
$this->base= $this->by_object['user']->base;
$this->uid = &$this->by_object['user']->uid;
diff --git a/gosa-plugins/goto/admin/applications/tabs_application.inc b/gosa-plugins/goto/admin/applications/tabs_application.inc
index 4be68a07bc8ff2ac068695cb41562e5a0c77f41b..21891310ae429bf4cc385550cd47ac8699ff56dd 100644 (file)
var $parent = FALSE;
var $FAIstate = "";
- function apptabs($config, $data, $dn,$category)
+ function apptabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
{
- tabs::tabs($config, $data, $dn,$category);
+ tabs::tabs($config, $data, $dn,$category,$hide_refs, $hide_acls);
/* Add references/acls/snapshots */
$this->addSpecialTabs();
diff --git a/gosa-plugins/goto/admin/devices/tabs_devices.inc b/gosa-plugins/goto/admin/devices/tabs_devices.inc
index f6664a16f6edb85eb12968070ab76bc389394b4d..e2b49799385024dc60971ddce09f271dac46b669 100644 (file)
{
var $Release= "";
- function devicetabs($config, $data, $dn,$category)
+ function devicetabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
{
- tabs::tabs($config, $data, $dn,$category);
+ tabs::tabs($config, $data, $dn,$category,$hide_refs, $hide_acls);
/* Add references/acls/snapshots */
$this->addSpecialTabs();
diff --git a/gosa-plugins/goto/admin/mimetypes/tabs_mimetypes.inc b/gosa-plugins/goto/admin/mimetypes/tabs_mimetypes.inc
index efc06be710532ba7637ad58184ad881c3559c137..dacda448687497bbe79d4925737e05ab1c7a10cd 100644 (file)
var $parent = FALSE;
var $FAIstate = "";
- function mimetabs($config, $data, $dn,$category)
+ function mimetabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
{
- tabs::tabs($config, $data, $dn,$category);
+ tabs::tabs($config, $data, $dn,$category,$hide_refs , $hide_acls);
/* Add references/acls/snapshots */
$this->addSpecialTabs();
diff --git a/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc b/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc
index 5b8eb259d729743fa5a97b67eae94d54302f2ba5..8ab23c8d3548c1cd19f261c7b4a38e0fde01cc33 100644 (file)
class printtabs extends tabs
{
- function printtabs($config, $data, $dn,$category)
+ function printtabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
{
/* Save dn */
$this->dn= $dn;
$this->config= $config;
+ $this->hide_acls = $hide_acls;
+ $this->hide_refs = $hide_refs;
+
+
$baseobject= NULL;
foreach ($data as $tab){
diff --git a/gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc b/gosa-plugins/goto/admin/systems/goto/tabs_terminal.inc
index 266566c2c288db64be8a34baf665080e1b7414bb..95457217a7ac75d4afdfc79797ba484a3ad5106f 100644 (file)
{
public $was_activated = FALSE;
- function termtabs($config, $data, $dn, $category)
+ function termtabs($config, $data, $dn, $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;
+
$baseobject= NULL;
foreach ($data as $tab){
diff --git a/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc b/gosa-plugins/goto/admin/systems/goto/tabs_workstation.inc
index a84b5fcb9dc38f75bb01e1f1ad1fdb2d565ec24b..5086602cf04e0ec21690a6004568f04e3fdb8e8e 100644 (file)
public $was_activated = FALSE;
- function worktabs($config, $data, $dn,$category)
+ function worktabs($config, $data, $dn,$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;
+
$baseobject= NULL;
foreach ($data as $tab){
diff --git a/gosa-plugins/roleManagement/admin/roleManagement/tabs_roles.inc b/gosa-plugins/roleManagement/admin/roleManagement/tabs_roles.inc
index e0c64754a5e794351b265faf5816d9fd2b74aef8..59bd541ab220cb657b9b6a324d1a854fa66038b7 100644 (file)
class roletabs extends tabs
{
- function __construct($config, $data, $dn)
+ function __construct($config, $data, $dn,$hide_refs = FALSE, $hide_acls = FALSE)
{
- tabs::tabs($config, $data, $dn,"roles");
+ tabs::tabs($config, $data, $dn,"roles",$hide_refs, $hide_acls);
$this->base = $baseobject= $this->by_object['roleGeneric']->base;
$this->addSpecialTabs();
}
diff --git a/gosa-plugins/samba/admin/systems/samba/tabs_winstation.inc b/gosa-plugins/samba/admin/systems/samba/tabs_winstation.inc
index a1dc10ed887ef1ec0b0a6891299ace97fa90a1c6..7a6d7ebe48b6f521d75472d4a24d384215046e9c 100644 (file)
class wintabs extends tabs
{
- function wintabs($config, $data, $dn,$category)
+ function wintabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
{
- tabs::tabs($config, $data, $dn,$category);
+ tabs::tabs($config, $data, $dn,$category,$hide_refs , $hide_acls);
/* Add references/acls/snapshots */
$this->addSpecialTabs();
diff --git a/gosa-plugins/systems/admin/systems/tabs_component.inc b/gosa-plugins/systems/admin/systems/tabs_component.inc
index dc0d743b07e53be2bedfb2e65625014d8eabc50b..5dfc787ccf7b029404c4fe6163534fee7559b9b5 100644 (file)
class componenttabs extends tabs
{
- function componenttabs($config, $data, $dn,$category)
+ function componenttabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
{
- tabs::tabs($config, $data, $dn,$category);
+ tabs::tabs($config, $data, $dn,$category,$hide_refs, $hide_acls);
/* Add references/acls/snapshots */
$this->addSpecialTabs();
diff --git a/gosa-plugins/systems/admin/systems/tabs_server.inc b/gosa-plugins/systems/admin/systems/tabs_server.inc
index 39c030953e4a79ce799e8324b8c5019c19a2298d..af7da365ff90f3cc7b684659087bfcc8e8b65aa7 100644 (file)
{
public $was_activated = FALSE;
- function servtabs($config, $data, $dn,$category)
+ function servtabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
{
/* Save dn */
$this->dn= $dn;
$this->config= $config;
+ $this->hide_acls = $hide_acls;
+ $this->hide_refs = $hide_refs;
+
$baseobject= NULL;
foreach ($data as $tab){