Class SyncML_Device_sync4j

Description

Sync4j (www.sync4j.org)

The Sync4J outlook converter uses its native SIF format for data exchange. Conversion to text/vcalendar etc. is done by SifConverter.php The connector seems not support DevInf information, so SyncML_Device can only detect it by the decice ID: so in the connector configuration the device ID must be set to 'sc-pim-<type>' which should be the default anyhow.

Copyright 2005-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /SyncML/SyncML/Device/Sync4j.php (line 31)

SyncML_Device
   |
   --SyncML_Device_sync4j
Method Summary
 string array2sif (array $array, [string $pre = ''], [string $post = ''])
 void convertClient2Server ( $content,  $contentType)
 array convertServer2Client (string $content, string $contentType, string $database)
 void sif2vcard ( $sif)
 void sif2vevent ( $sif)
 void sif2vnote ( $sif)
 void sif2vtodo ( $sif)
 void useCdataTag ()
 void vcard2sif ( $vcard)
 void vevent2sif ( $vcard)
 void vnote2sif ( $vnote)
 void vtodo2sif ( $vcard)
Variables

Inherited Variables

Inherited from SyncML_Device

SyncML_Device::$requestedContentType
Methods
array2sif (line 195)

Converts a hash to a SIF XML structure.

  • return: The resulting XML string.
string array2sif (array $array, [string $pre = ''], [string $post = ''])
  • array $array: A hash.
  • string $pre: A prefix string for the XML result.
  • string $post: A suffix string for the XML result.
convertClient2Server (line 36)

Convert the content.

void convertClient2Server ( $content,  $contentType)
  • $content
  • $contentType

Redefinition of:
SyncML_Device::convertClient2Server()
Converts the content received from the client for the backend.
convertServer2Client (line 102)

Converts the content from the backend to a format suitable for the client device.

Strips the uid (primary key) information as client and server might use different ones.

  • return: Three-element array with the converted content, the (possibly changed) new content type, and encoding type (like b64 as used by Funambol).
array convertServer2Client (string $content, string $contentType, string $database)
  • string $content: The content to convert
  • string $contentType: The content type of content as returned from the backend
  • string $database: The server database URI.

Redefinition of:
SyncML_Device::convertServer2Client()
Converts the content from the backend to a format suitable for the client device.
sif2vcard (line 232)
void sif2vcard ( $sif)
  • $sif
sif2vevent (line 356)
void sif2vevent ( $sif)
  • $sif
sif2vnote (line 211)
void sif2vnote ( $sif)
  • $sif
sif2vtodo (line 513)
void sif2vtodo ( $sif)
  • $sif
useCdataTag (line 1199)

Sync4j as of Funambol Outlook connector 3.0.15 can't deal with <![CDATA[ so omit it.

The Funambol Sync4j client chokes on the cdata so for this device it has to be set to false. Syn4j uses base64 encoding and so the problems with escaping does not occur.

void useCdataTag ()

Redefinition of:
SyncML_Device::useCdataTag()
Returns whether the payload data should be enclosed in a [CDATA[ section when sending via XML.
vcard2sif (line 597)
void vcard2sif ( $vcard)
  • $vcard
vevent2sif (line 827)
void vevent2sif ( $vcard)
  • $vcard
vnote2sif (line 572)
void vnote2sif ( $vnote)
  • $vnote
vtodo2sif (line 1087)
void vtodo2sif ( $vcard)
  • $vcard

Inherited Methods

Inherited From SyncML_Device

 SyncML_Device::convertClient2Server()
 SyncML_Device::convertServer2Client()
 SyncML_Device::convertUTC2LocalTime()
 SyncML_Device::factory()
 SyncML_Device::getPreferredContentType()
 SyncML_Device::getPreferredContentTypeClient()
 SyncML_Device::handleTasksInCalendar()
 SyncML_Device::omitIndividualSyncStatus()
 SyncML_Device::useCdataTag()
 SyncML_Device::useLocalTime()

Documentation generated on Sun, 30 Jan 2011 05:22:33 +0000 by phpDocumentor 1.4.3