summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d60db4)
raw | patch | inline | side by side (parent: 3d60db4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 May 2008 13:10:25 +0000 (13:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 May 2008 13:10:25 +0000 (13:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10821 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_tabs.inc | patch | blob | history |
index d11d24b42772182cda822e5dec514d851b98f4d5..9748602c82f99d8a609a55369b813e25b93bf908 100644 (file)
var $by_name= array();
var $by_object= array();
var $SubDialog = false;
-
+ var $acl_category;
var $multiple_support_active = FALSE;
function tabs(&$config, $data, $dn, $acl_category= "")
$this->config= &$config;
$baseobject= NULL;
-
+ $this->acl_category = $acl_category;
foreach ($data as &$tab){
if (!plugin_available($tab['CLASS'])){
}
$this->by_object[$tab['CLASS']]->parent= &$this;
- $this->by_object[$tab['CLASS']]->set_acl_category($acl_category);
+ $this->by_object[$tab['CLASS']]->set_acl_category($this->acl_category);
/* Initialize current */
if ($this->current == ""){
}
}
+
+ /*! \brief Reinitializes the tab classes with fresh ldap values.
+ This maybe usefull if for example if the apply button was pressed.
+ */
+ function re_init()
+ {
+ $baseobject= NULL;
+ foreach($this->by_object as $name => $object){
+ $class = get_class($object);
+ if(in_array($class,array("reference","acl"))) continue;
+ if ($baseobject === NULL){
+ $baseobject= new $class($this->config, $this->dn);
+ $baseobject->enable_CSN_check();
+ $this->by_object[$name]= $baseobject;
+ } else {
+ $this->by_object[$name]= new $class($this->config, $this->dn, $baseobject);
+ }
+ $this->by_object[$name]->parent= &$this;
+ $this->by_object[$name]->set_acl_category($this->acl_category);
+ }
+ }
+
function execute()
{