summaryrefslogtreecommitdiff
path: root/plugins/libkolab
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-03-18 11:57:36 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-03-18 11:57:36 (GMT)
commit6bd0bdabb540e43463342f94d62c63bd32bc68e9 (patch)
tree77ff6a99a5e79dfa90a7319a1a18839dd12d4c5b /plugins/libkolab
parent17867bb2773db75e61ba2226336d5802118e85c2 (diff)
downloadroundcubemail-plugins-kolab-6bd0bdabb540e43463342f94d62c63bd32bc68e9.tar.gz
Adapt client to changed Bonnie API
Diffstat (limited to 'plugins/libkolab')
-rw-r--r--plugins/libkolab/lib/kolab_bonnie_api.php20
1 files changed, 14 insertions, 6 deletions
diff --git a/plugins/libkolab/lib/kolab_bonnie_api.php b/plugins/libkolab/lib/kolab_bonnie_api.php
index e8ac131..11d4845 100644
--- a/plugins/libkolab/lib/kolab_bonnie_api.php
+++ b/plugins/libkolab/lib/kolab_bonnie_api.php
@@ -50,25 +50,33 @@ class kolab_bonnie_api
/**
* Wrapper function for <object>.changelog() API call
*/
- public function changelog($type, $uid, $mailbox=null)
+ public function changelog($type, $uid, $mailbox, $msguid=null)
{
- return $this->client->execute($type.'.changelog', array('uid' => $uid, 'mailbox' => $mailbox));
+ return $this->client->execute($type.'.changelog', array('uid' => $uid, 'mailbox' => $mailbox, 'msguid' => $msguid));
}
/**
* Wrapper function for <object>.diff() API call
*/
- public function diff($type, $uid, $rev, $mailbox=null)
+ public function diff($type, $uid, $rev1, $rev2, $mailbox, $msguid=null)
{
- return $this->client->execute($type.'.diff', array('uid' => $uid, 'rev' => $rev, 'mailbox' => $mailbox));
+ return $this->client->execute($type.'.diff', array('uid' => $uid, 'rev1' => $rev1, 'rev2' => $rev2, 'mailbox' => $mailbox, 'msguid' => $msguid));
}
/**
* Wrapper function for <object>.get() API call
*/
- public function get($type, $uid, $rev, $mailbox=null)
+ public function get($type, $uid, $rev, $mailbox, $msguid=null)
{
- return $this->client->execute($type.'.get', array('uid' => $uid, 'rev' => intval($rev), 'mailbox' => $mailbox));
+ return $this->client->execute($type.'.get', array('uid' => $uid, 'rev' => $rev, 'mailbox' => $mailbox, 'msguid' => $msguid));
+ }
+
+ /**
+ * Wrapper function for <object>.rawdata() API call
+ */
+ public function rawdata($type, $uid, $rev, $mailbox, $msguid=null)
+ {
+ return $this->client->execute($type.'.rawdata', array('uid' => $uid, 'rev' => $rev, 'mailbox' => $mailbox, 'msguid' => $msguid));
}
/**