summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9086818)
raw | patch | inline | side by side (parent: 9086818)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Jul 2010 10:26:19 +0000 (10:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Jul 2010 10:26:19 +0000 (10:26 +0000) |
-Update the list of available services if a service is removed or added.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19165 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19165 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_serverService.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc
index 0564f7b848ad5a59ffddfe2c5d40ea3b1deef8d0..cca909e75e2526169e92e990ac3f9e0c1582533a 100644 (file)
// Set storage points - We do not have any - We just create a fake list which lists all services
$this->storagePoints = array("");
- // Build filter
- if (session::global_is_set(get_class($this)."_filter")){
- $filter= session::global_get(get_class($this)."_filter");
- } else {
- $filter = new filter(get_template_path("serverService-filter.xml", true));
- $filter->setObjectStorage($this->storagePoints);
- }
- $this->setFilter($filter);
-
// Initialize list of used and useable services.
foreach ($config->data['TABS']['SERVERSERVICE'] as $plug){
if(class_available($plug['CLASS'])){
}
}
}
+ $this->rebuildListing();
+ }
+
+
+ function rebuildListing()
+ {
+
+ // Build filter
+ if (session::global_is_set(get_class($this)."_filter")){
+ $filter= session::global_get(get_class($this)."_filter");
+ } else {
+ $filter = new filter(get_template_path("serverService-filter.xml", true));
+ $filter->setObjectStorage($this->storagePoints);
+ }
+ $this->setFilter($filter);
+
// Load service xml file and fill in placeholders
$contents =file_get_contents(get_template_path("serverService-list.xml", true));
$headpage->registerElementFilter("filterServiceStatus", "ServerService::filterServiceStatus");
$headpage->setFilter($filter);
- parent::__construct($config, $this->ui, "services", $headpage);
+ parent::__construct($this->config, $this->ui, "services", $headpage);
$this->registerAction("new", "newService");
$this->registerAction("remove", "removeService");
$this->registerAction("saveService", "saveService");
}
$this->backup = NULL;
$this->current = "";
+ $this->rebuildListing();
$this->closeDialogs();
}
}
$this->closeDialogs();
$this->backup = NULL;
+ $this->rebuildListing();
}
}
*/
function execute()
{
+
// Ensure that html posts and gets are kept even if we see a 'Entry islocked' dialog.
$vars = array('/^act$/','/^listing/','/^PID$/','/^FILTER_PID$/');
session::set('LOCK_VARS_TO_USE',$vars);
$this->snapHandler->setSnapshotBases($bases);
}
-
// Display list
session::set('ServerService', $this->plugins);
return($this->renderList());