deleting of contacts and some reformatting

This commit is contained in:
Ralf Becker 2010-12-19 04:07:40 +00:00
parent 416410f338
commit 2a1b010ead

View File

@ -411,15 +411,14 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug
debugLog(__METHOD__." not implemented"); debugLog(__METHOD__." not implemented");
} }
/** /**
* Changes or adds a message on the server * Changes or adds a message on the server
* *
* @param $folderid * @param string $folderid
* @param $id for change | empty for create new * @param int $id for change | empty for create new
* @param $message object to SyncObject to create * @param SyncContact $message object to SyncObject to create
* *
* @return $stat whatever would be returned from StatMessage * @return array $stat whatever would be returned from StatMessage
* *
* This function is called when a message has been changed on the PDA. You should parse the new * This function is called when a message has been changed on the PDA. You should parse the new
* message here and save the changes to disk. The return value must be whatever would be returned * message here and save the changes to disk. The return value must be whatever would be returned
@ -534,7 +533,7 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug
* @param $folderid * @param $folderid
* @param $id * @param $id
* *
* @TODO check what is to be returned * @return boolean true on success, false on error, diffbackend does NOT use the returnvalue
* *
* @DESC After this call has succeeded, a call to * @DESC After this call has succeeded, a call to
* GetMessageList() should no longer list the message. If it does, the message will be re-sent to the PDA * GetMessageList() should no longer list the message. If it does, the message will be re-sent to the PDA
@ -543,7 +542,11 @@ class addressbook_activesync implements activesync_plugin_write, activesync_plug
*/ */
public function DeleteMessage($folderid, $id) public function DeleteMessage($folderid, $id)
{ {
error_log (__METHOD__); if (!isset($this->addressbook)) $this->addressbook = new addressbook_bo();
$ret = $this->addressbook->delete($id);
debugLog(__METHOD__."('$folderid', $id) delete($id) returned ".array2string($ret));
return $ret;
} }
/** /**