Code

Updated gosa si daemon to support periodical jobs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Sep 2009 12:24:08 +0000 (12:24 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Sep 2009 12:24:08 +0000 (12:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14250 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index 7f21eed9245f1a63705786425590700df9426da2..90005169ae154e59a32420d38fb540a514b7f505 100644 (file)
@@ -842,8 +842,15 @@ class gosaSupportDaemon
     foreach($data as $key => $value){
       $key = strtolower($key);
       if(is_array($value)){
-        foreach($value as $sub_value){
-          $attr.= "<$key>".strtolower($sub_value)."</$key>\n";
+        if($key == "periodic"){
+          foreach($value as $sub_name => $sub_value){
+            $attr.= "<periodic>$sub_name</periodic>";
+            $attr.= "<$sub_name>$sub_value</$sub_name>";
+          }
+        }else{
+          foreach($value as $sub_value){
+            $attr.= "<$key>".strtolower($sub_value)."</$key>";
+          }
         }
       }else{
         $attr.= "<$key>".strtolower($value)."</$key>\n";