From: Michael J. Rubinsky Date: Wed, 31 Mar 2010 19:40:36 +0000 (-0400) Subject: Rename Horde_ActiveSync_Exporter to Horde_ActiveSync_Sync to reflect it's real function. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2c0a2dc179b73517fdd3feeaf9dcd56fa4b6a893;p=horde.git Rename Horde_ActiveSync_Exporter to Horde_ActiveSync_Sync to reflect it's real function. Name is left over from legacy z-push code. This class is now only responsible for iterating changesets and sending changes to PIM when appropriate. --- diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Driver/Base.php b/framework/ActiveSync/lib/Horde/ActiveSync/Driver/Base.php index e2a133602..717d759d1 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Driver/Base.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Driver/Base.php @@ -360,9 +360,9 @@ abstract class Horde_ActiveSync_Driver_Base * @return unknown_type * */ - public function getExporter() + public function getSyncObject() { - $exporter = new Horde_ActiveSync_Exporter($this); + $exporter = new Horde_ActiveSync_Sync($this); $exporter->setLogger($this->_logger); return $exporter; diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Exporter.php b/framework/ActiveSync/lib/Horde/ActiveSync/Exporter.php index cedd6f7fc..8a77e2a28 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Exporter.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Exporter.php @@ -41,7 +41,7 @@ define('BACKEND_DISCARD_DATA', 1); * @author Michael J. Rubinsky * @package Horde_ActiveSync */ -class Horde_ActiveSync_Exporter +class Horde_ActiveSync_Sync { /** * Local copy of changes to push to PIM diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/FolderSync.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/FolderSync.php index 62af78cbf..3f08993e6 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/FolderSync.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/FolderSync.php @@ -147,7 +147,7 @@ class Horde_ActiveSync_Request_FolderSync extends Horde_ActiveSync_Request_Base // directly to WBXML. // TODO: Combine all these import caches into a single Class $importer = new Horde_ActiveSync_HierarchyCache(); - $exporter = $this->_driver->GetExporter(); + $exporter = $this->_driver->GetSyncObject(); $exporter->init($state, $importer, array('synckey' => $synckey)); /* Perform the actual sync operation */ diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/GetItemEstimate.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/GetItemEstimate.php index 319a0ea7d..e8bc880de 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/GetItemEstimate.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/GetItemEstimate.php @@ -133,7 +133,7 @@ class Horde_ActiveSync_Request_GetItemEstimate extends Horde_ActiveSync_Request_ $importer = new Horde_ActiveSync_ContentsCache(); $state = $this->_driver->getStateObject($collection); $state->loadState($collection['synckey']); - $exporter = $this->_driver->GetExporter(); + $exporter = $this->_driver->getSyncObject(); $exporter->init($state, $importer, $collection); $this->_encoder->content($exporter->GetChangeCount()); diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php index 86b677a74..7eb3e82a2 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Ping.php @@ -126,7 +126,7 @@ class Horde_ActiveSync_Request_Ping extends Horde_ActiveSync_Request_Base // Make sure we have the synckey (which is the devid for // PING requests. $collection['synckey'] = $this->_devId; - $exporter = $this->_driver->getExporter(); + $exporter = $this->_driver->getSyncObject(); $state->loadPingCollectionState($collection); try { $exporter->init($state, false, $collection); diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php index dd6260ec4..319d602ab 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php @@ -200,7 +200,6 @@ class Horde_ActiveSync_Request_Provision extends Horde_ActiveSync_Request_Base if ($rwstatus == self::RWSTATUS_PENDING || $rwstatus == self::RWSTATUS_WIPED) { $this->_encoder->startTag(SYNC_PROVISION_REMOTEWIPE, false, true); $state->setDeviceRWStatus($this->_devId, self::RWSTATUS_WIPED); - //$rwstatus = SYNC_PROVISION_RWSTATUS_WIPED; } $this->_encoder->endTag();//provision diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php index 82743260f..f44357824 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Sync.php @@ -436,7 +436,7 @@ class Horde_ActiveSync_Request_Sync extends Horde_ActiveSync_Request_Base if (isset($collection['getchanges'])) { $filtertype = isset($collection['filtertype']) ? $collection['filtertype'] : false; $streamer = new Horde_ActiveSync_Streamer($this->_encoder, $collection['class']); - $exporter = $this->_driver->getExporter(); + $exporter = $this->_driver->getSyncObject(); $exporter->init($state, $streamer, $collection); $changecount = $exporter->getChangeCount(); if (!empty($collection['windowsize']) && $changecount > $collection['windowsize']) {