Beispiel #1
0
 /**
  * Removes a suid from the suidlist.
  *
  * Called by _trackDeletes() when updating the suidlist and deleteEntry()
  * when removing an entry due to a client request.
  *
  * @param string $databaseURI  URI of database to sync. Like calendar,
  *                             tasks, contacts or notes. May include
  *                             optional parameters:
  *                             tasks?options=ignorecompleted.
  * @param array $suid          The suid to remove from the list.
  */
 protected function _removeFromSuidList($databaseURI, $suid)
 {
     $database = $this->normalize($databaseURI);
     $this->logMessage('_removeFromSuidList(): item ' . $suid, 'DEBUG');
     $r = $this->_db->queryCol('DELETE FROM syncml_suidlist ' . 'WHERE syncml_syncpartner = ' . $this->_db->quote($this->_syncDeviceID, 'text') . ' AND syncml_db = ' . $this->_db->quote($database, 'text') . ' AND syncml_uid = ' . $this->_db->quote($this->_user, 'text') . ' AND syncml_suid = ' . $this->_db->quote($suid, 'text'));
     if ($this->_checkForError($r)) {
         return $r;
     }
     $this->logMessage('_removeFromSuidList(): result ' . implode('!', $r), 'DEBUG');
     return true;
 }