}
/**
- * Obtain the device object.
+ * Obtain the device object. For this driver, we also store the PING data
+ * in the device table.
*
* @param string $devId
*
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 {
}
/**
- * @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