$this->_logger->info('Request received from device: ' . $devId . ' Supporting protocol version: ' . $this->_version);
}
- /**
- * Read input from the php input stream
- *
- * @TODO: Get rid of this - the wbxml classes have a php:// stream already
- * and when we need *just* the stream and not wbxml, we can use
- * $request->body
- *
- * @return string
- */
- protected function _readStream()
- {
- $s = "";
- while (1) {
- $data = fread($this->_inputStream, 4096);
- if (strlen($data) == 0) {
- break;
- }
- $s .= $data;
- }
-
- return $s;
- }
}
const STATUS_NEEDSYNC = 2;
const STATUS_MISSING = 3;
const STATUS_PROTERROR = 4;
- // Hearbeat out of bounds (TODO)
const STATUS_HBOUTOFBOUNDS = 5;
// Requested more then the max folders (TODO)
}
}
- /* Looks like we ignore the SYNC_SUPPORTED Tag? */
- // @TODO: This needs to be captured and stored in the state so we
- // can correctly support ghosted properties
+ /* SYNC_SUPPORTED */
if ($this->_decoder->getElementStartTag(Horde_ActiveSync::SYNC_SUPPORTED)) {
- // SUPPORTED only allowed on initial sync request
+ // Only allowed on initial sync request
if ($collection['synckey'] != 0) {
$this->_statusCode = Horde_ActiveSync::SYNC_STATUS_PROTERROR;
$this->_handleError($collection);
}
/**
- * @TODO: Do we need?
* @return unknown_type
*/
public function getToken()