From: cajus Date: Wed, 27 Jan 2010 17:46:03 +0000 (+0000) Subject: Updated base selector tree X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31e0e749270442feeecd317a34312e9556fd773f;p=gosa.git Updated base selector tree git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15393 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_baseSelector.inc b/gosa-core/include/class_baseSelector.inc index baea70e5f..9ca0a4295 100644 --- a/gosa-core/include/class_baseSelector.inc +++ b/gosa-core/include/class_baseSelector.inc @@ -39,6 +39,7 @@ class baseSelector { { $this->setBases($bases); $this->setBase($base); + $this->update(); } @@ -69,12 +70,32 @@ class baseSelector { $elements= array_reverse($elements, true); $this->pathMapping[$base]= $base == $config->current['BASE']? '/' : ldap::fix(preg_replace('/(^|,)[a-z0-9]+=/i', '/', implode(',', $elements))); + } + + // Save bases to session for autocompletion + session::global_set('pathMapping', $this->pathMapping); + } + + + function update() + { + global $config; + + $selected= $this->base == $config->current['BASE']?"Selected":""; + $this->tree= "
"._("Root")."
\n"; echo $this->tree; - - // Save bases to session for autocompletion - session::global_set('pathMapping', $this->pathMapping); } - function render() { $result= ""; @@ -115,12 +132,6 @@ echo $this->tree; } - function update() - { - echo "update"; - } - - function getBase() { return $this->base;