summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fbbdbc8)
raw | patch | inline | side by side (parent: fbbdbc8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Apr 2011 13:21:56 +0000 (13:21 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Apr 2011 13:21:56 +0000 (13:21 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20686 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc
index 5812db35ec426d46ef626063ec17b9e992e52d1c..0668124b21bc991ee9c8849c2fa1cffea2e16800 100644 (file)
- /*! \brief
- * @param
- * @return
+ /*! \brief Removes an entry from the listing.
*/
- function remove_lock()
- {
- }
-
function removeEntry($ids)
{
+
$item = $this->dataModel->getItemById($ids[0]);
- $release = preg_replace("/^.*\//","",$item['values']['__release']);
- $path = $item['values']['__path'];
- $rpc = $this->config->getRpcHandle();
- $rpc->removeConfigItem($release, $path);
- if(!$rpc->success()){
- msg_dialog::display(_("Error"), sprintf(_("Failed to remove: %s"), $rpc->get_error()),ERROR_DIALOG);
- return(NULL);
+
+ // Is an config item.
+ if(isset($this->cfgItemMap[$item['type']])){
+ $release = preg_replace("/^.*\//","",$item['values']['__release']);
+ $path = $item['values']['__path'];
+ $rpc = $this->config->getRpcHandle();
+ $rpc->removeConfigItem($release, $path);
+ if(!$rpc->success()){
+ msg_dialog::display(_("Error"), sprintf(_("Failed to remove: %s"), $rpc->get_error()),ERROR_DIALOG);
+ return(NULL);
+ }else{
+ $this->dataModel->removeItem($item['path']);
+ }
}else{
- $this->dataModel->removeItem($item['path']);
+ echo $item['type']." - are not handled yet!";
}
}
+
+ /*! \brief Edits a selected list item.
+ */
function editEntry($ids)
{
// Update the template engine to use another type of item and
// some other values.
$item = $this->dataModel->getItemById($ids[0]);
-
if(isset($this->cfgItemMap[$item['type']])){
$release = preg_replace("/^.*\//","",$item['values']['__release']);
$path = $item['values']['__path'];
}
}
}
+ function remove_lock() {}
}