Code

Updated deamon. Limited amount of returned entries.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jan 2008 08:04:24 +0000 (08:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 24 Jan 2008 08:04:24 +0000 (08:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8577 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index 1050fa54e8a9796d572f808d2d568fef5b417f1e..b3b66fd7864a182b84eecbf154fabb7dd9dd2b85 100644 (file)
@@ -89,7 +89,7 @@ class gosaSupportDaemon
   /*! \brief  Returns an array containing all queued entries.
       @return Array All queued entries as an array.
    */
-  public function get_queued_entries()
+  public function get_queued_entries($from=0,$to=10)
   {
     $this->b_error = FALSE;
     $this->s_error = "";
@@ -99,9 +99,14 @@ class gosaSupportDaemon
                   <header>gosa_query_jobdb</header>
                   <where>
                     <clause>
+                      <connector>and</connector>
                       <phrase>
                         <operator>gt</operator>
-                        <id>-1</id>
+                        <ROWID>".$from."</ROWID>
+                      </phrase>
+                      <phrase>
+                        <operator>lt</operator>
+                        <ROWID>".$to."</ROWID>
                       </phrase>
                     </clause>
                   </where>