Skip to content

Commit

Permalink
Move common properties to base class.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Oct 3, 2013
1 parent 6ea723d commit 5b03611
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 28 deletions.
14 changes: 14 additions & 0 deletions framework/ActiveSync/lib/Horde/ActiveSync/State/Base.php
Expand Up @@ -61,6 +61,20 @@ abstract class Horde_ActiveSync_State_Base
*/
protected $_procid;

/**
* The timestamp for the last syncKey
*
* @var timestamp
*/
protected $_lastSyncStamp = 0;

/**
* The current sync timestamp
*
* @var timestamp
*/
protected $_thisSyncStamp = 0;

/**
* The collection array for the collection we are currently syncing.
* Keys include:
Expand Down
14 changes: 0 additions & 14 deletions framework/ActiveSync/lib/Horde/ActiveSync/State/Mongo.php
Expand Up @@ -60,20 +60,6 @@ class Horde_ActiveSync_State_Mongo extends Horde_ActiveSync_State_Base implement
*/
protected $_indexes = array();

/**
* The timestamp for the last syncKey
*
* @var timestamp
*/
protected $_lastSyncStamp = 0;

/**
* The current sync timestamp
*
* @var timestamp
*/
protected $_thisSyncStamp = 0;

/**
* Const'r
*
Expand Down
14 changes: 0 additions & 14 deletions framework/ActiveSync/lib/Horde/ActiveSync/State/Sql.php
Expand Up @@ -64,20 +64,6 @@
*/
class Horde_ActiveSync_State_Sql extends Horde_ActiveSync_State_Base
{
/**
* The timestamp for the last syncKey
*
* @var timestamp
*/
protected $_lastSyncStamp = 0;

/**
* The current sync timestamp
*
* @var timestamp
*/
protected $_thisSyncStamp = 0;

/**
* DB handle
*
Expand Down

0 comments on commit 5b03611

Please sign in to comment.