Move to base class
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 23 Apr 2010 22:13:07 +0000 (18:13 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 24 Apr 2010 16:22:43 +0000 (12:22 -0400)
framework/ActiveSync/lib/Horde/ActiveSync/State/History.php

index 39c7c0d..96d3ceb 100644 (file)
@@ -394,7 +394,8 @@ class Horde_ActiveSync_State_History extends Horde_ActiveSync_State_Base
     }
 
     /**
-     * Obtain the device object.
+     * Obtain the device object. For this driver, we also store the PING data
+     * in the device table.
      *
      * @param string $devId
      *
@@ -403,7 +404,6 @@ class Horde_ActiveSync_State_History extends Horde_ActiveSync_State_Base
     public function getDeviceInfo($devId)
     {
         $this->_devId = $devId;
-
         $query = 'SELECT device_type, device_agent, device_ping, device_policykey, device_rwstatus FROM '
             . $this->_syncDeviceTable . ' WHERE device_id = ?';
         try {
@@ -436,16 +436,6 @@ class Horde_ActiveSync_State_History extends Horde_ActiveSync_State_Base
     }
 
     /**
-     * @TODO: move to base class?
-     */
-    public function resetPingState()
-    {
-        $this->_pingState = array(
-            'lifetime' => 0,
-            'collections' => array());
-    }
-
-    /**
      * Set new device info
      *
      * @TODO: for this driver, we can add private methods to set/update some