Code

Updated sorting.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jan 2008 08:32:53 +0000 (08:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jan 2008 08:32:53 +0000 (08:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8601 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_gosaSupportDaemon.inc

index 537755ad0f9d2ab084f3d0dd1a5b56ab493ae702..ae9eb8b1bfaf1919d49ba94fe7ac4b6e4fc0695e 100644 (file)
@@ -111,7 +111,7 @@ class gosaSupportDaemon
   /*! \brief  Returns an array containing all queued entries.
     @return Array All queued entries as an array.
    */
-  public function get_queued_entries($from=0,$to=10)
+  public function get_queued_entries($from=0,$to=10,$sort="timestamp DESC")
   {
     $this->b_error = FALSE;
     $this->s_error = "";
@@ -121,19 +121,13 @@ class gosaSupportDaemon
       <header>gosa_query_jobdb</header>
       <where>
       <clause>
-      <connector>or</connector>
-
-        <phrase>
-        <operator>eq</operator>
-        <HEADERTAG>ping</HEADERTAG>
-        </phrase>
-
         <phrase>
-        <operator>eq</operator>
-        <HEADERTAG>sayHello</HEADERTAG>
+        <operator>ne</operator>
+        <HEADERTAG>*</HEADERTAG>
         </phrase>
       </clause>
       </where>
+      <orderby>".$sort."</orderby>
       <limit>
       <from>".$from."</from>
       <to>".$to."</to>