From: Michael J. Rubinsky Date: Mon, 12 Apr 2010 17:40:13 +0000 (-0400) Subject: Class constant, add method for retrieving the currently loaded synckey X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b52c16c3e74c8722f2a2454033a56ddac89e71c6;p=horde.git Class constant, add method for retrieving the currently loaded synckey --- diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/State/Base.php b/framework/ActiveSync/lib/Horde/ActiveSync/State/Base.php index 814ccd57e..53876915a 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/State/Base.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/State/Base.php @@ -110,6 +110,16 @@ abstract class Horde_ActiveSync_State_Base } /** + * Get the current synckey + * + * @return string The synkey we last retrieved state for + */ + public function getCurrentSyncKey() + { + return $this->_syncKey; + } + + /** * Generate a random 10 digit policy key * * @return unknown diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/State/File.php b/framework/ActiveSync/lib/Horde/ActiveSync/State/File.php index d4d437b7f..e78aea577 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/State/File.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/State/File.php @@ -584,7 +584,7 @@ class Horde_ActiveSync_State_File extends Horde_ActiveSync_State_Base /* do nothing if it is a dummy folder */ if ($folderId != Horde_ActiveSync::FOLDER_TYPE_DUMMY) { // on ping: check if backend supports alternative PING mechanism & use it - if ($this->_collection['class'] === false && $flags == BACKEND_DISCARD_DATA && $this->_backend->AlterPing()) { + if ($this->_collection['class'] === false && $flags == Horde_ActiveSync::BACKEND_DISCARD_DATA && $this->_backend->AlterPing()) { //@TODO - look at the passing of syncstate here - should probably pass self?? // Not even sure if we need this AlterPing? $this->_changes = $this->_backend->AlterPingChanges($folderId, $syncState);