From: Gunnar Wrobel
Date: Mon, 3 Jan 2011 16:13:01 +0000 (+0100)
Subject: Add the synchronize() method to queries. Add the cached list query.
X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=73ea4bf3de3ead8ebf411851eac0a66a43481cd1;p=horde.git
Add the synchronize() method to queries. Add the cached list query.
---
diff --git a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/List/Query/Base.php b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/List/Query/Base.php
index f7b44eece..86093d56f 100644
--- a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/List/Query/Base.php
+++ b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/List/Query/Base.php
@@ -26,7 +26,7 @@
* @link http://pear.horde.org/index.php?package=Kolab_Storage
*/
class Horde_Kolab_Storage_List_Query_Base
-implements Horde_Kolab_Storage_Query
+implements Horde_Kolab_Storage_List_Query
{
/**
* The queriable list.
@@ -113,4 +113,13 @@ implements Horde_Kolab_Storage_Query
}
return $result;
}
+
+ /**
+ * Synchronize the query data with the information from the backend.
+ *
+ * @return NULL
+ */
+ public function synchronize()
+ {
+ }
}
\ No newline at end of file
diff --git a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Query.php b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Query.php
index c353350de..2b32b0316 100644
--- a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Query.php
+++ b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Query.php
@@ -33,5 +33,12 @@ interface Horde_Kolab_Storage_Query
* @param Horde_Kolab_Storage_Queriable $queriable The queriable object.
*/
public function __construct(Horde_Kolab_Storage_Queriable $queriable);
+
+ /**
+ * Synchronize the query data with the information from the backend.
+ *
+ * @return NULL
+ */
+ public function synchronize();
}
diff --git a/framework/Kolab_Storage/package.xml b/framework/Kolab_Storage/package.xml
index f449f61de..8d639ac97 100644
--- a/framework/Kolab_Storage/package.xml
+++ b/framework/Kolab_Storage/package.xml
@@ -31,8 +31,8 @@