lib/kolab_sync_data_email.php
Aleksander Machniak
machniak at kolabsys.com
Sat Apr 6 18:24:40 CEST 2013
lib/kolab_sync_data_email.php | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
New commits:
commit 384fd222d1f88f2908f4b22bedea83770e4978f1
Author: Aleksander Machniak <alec at alec.pl>
Date: Sat Apr 6 18:24:15 2013 +0200
Throw exception in createEntry() of Email (and SMS) class
diff --git a/lib/kolab_sync_data_email.php b/lib/kolab_sync_data_email.php
index b696e54..d246af4 100644
--- a/lib/kolab_sync_data_email.php
+++ b/lib/kolab_sync_data_email.php
@@ -529,21 +529,25 @@ class kolab_sync_data_email extends kolab_sync_data implements Syncroton_Data_ID
/**
* add entry from xml data
*
- * @param string $folderId
- * @param Syncroton_Model_IEntry $entry
+ * @param string $folderId Folder identifier
+ * @param Syncroton_Model_IEntry $entry Entry
*
* @return array
*/
public function createEntry($folderId, Syncroton_Model_IEntry $entry)
{
+ // Throw exception here for better handling of unsupported
+ // entry creation, it can be object of class Email or SMS here
+ throw new Syncroton_Exception_Status_Sync(Syncroton_Exception_Status_Sync::SYNC_SERVER_ERROR);
}
/**
* update existing entry
*
- * @param string $folderId
- * @param string $serverId
- * @param Syncroton_Model_IEntry $entry
+ * @param string $folderId Folder identifier
+ * @param string $serverId Entry identifier
+ * @param Syncroton_Model_IEntry $entry Entry
+ *
* @return array
*/
public function updateEntry($folderId, $serverId, Syncroton_Model_IEntry $entry)
More information about the commits
mailing list