/** * Deletes an entry from the server database. * * @param string $user The username to use. Not strictly necessery * to store this, but it helps for the test * environment to clean up all entries for a * test user. * @param string $databaseURI URI of Database to sync. Like calendar, * tasks, contacts or notes. May include * optional parameters: * tasks?options=ignorecompleted. * @param string $suid Server ID of the entry. * * @return boolean True on success or false on failed (item not found). */ public function deleteEntry_backend($user, $databaseURI, $suid) { $database = $this->normalize($databaseURI); $r = $this->_db->queryOne('DELETE FROM syncml_data ' . 'WHERE syncml_db = ' . $this->_db->quote($database, 'text') . ' AND syncml_uid = ' . $this->_db->quote($user, 'text') . ' AND syncml_id = ' . $this->_db->quote($suid, 'text')); if ($this->_checkForError($r)) { return false; } return true; }