PHP Class Horde_SyncMl_Device_P800, horde
However even though the XML itself is UTF-8, it expects the enclosed
vcard-data to be ISO-8859-1 unless explicitly stated otherwise (using the
CHARSET option, which is deprecated for VCARD 3.0)
Encoding:
String values are encoded "QUOTED-PRINTABLE"
Other:
This devices handles tasks and events in one database.
As the P800 was the first device to work with package, most of the
required conversions are in Device.php's default handling.
Copyright 2005-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
Exibir arquivo
Open project: horde/horde
Public Methods
Method Details
convertClient2Server()
public method
public convertClient2Server ( string $content, string $contentType ) : array |
$content |
string |
The content to convert. |
$contentType |
string |
The contentType of the content. |
return |
array |
array($newcontent, $newcontentType):
the converted content and the
(possibly changed) new ContentType. |
convertServer2Client()
public method
Strips the uid (primary key) information as client and server might use
different ones.
public convertServer2Client ( string $content, string $contentType, string $database ) : array |
$content |
string |
The content to convert |
$contentType |
string |
The content type of content as returned
from the backend |
$database |
string |
The server database URI. |
return |
array |
Three-element array with the converted content, the
(possibly changed) new content type, and encoding type
(like b64 as used by Funambol). |
handleTasksInCalendar()
public method
This requires special actions on our side as we store this in different
databases (nag and kronolith).
This public function could directly return true but tries to be a bit more
generic so it might work for other phones as well.
omitIndividualSyncStatus()
public method
The P800 class of devices seem to have trouble with too many
status responses. So omit them for these (and only these),