Overview

Packages

  • None
  • SyncMl

Classes

  • Horde_SyncMl
  • Horde_SyncMl_Backend
  • Horde_SyncMl_Backend_Horde
  • Horde_SyncMl_Command
  • Horde_SyncMl_Command_Alert
  • Horde_SyncMl_Command_Final
  • Horde_SyncMl_Command_Get
  • Horde_SyncMl_Command_Map
  • Horde_SyncMl_Command_Put
  • Horde_SyncMl_Command_Replace
  • Horde_SyncMl_Command_Results
  • Horde_SyncMl_Command_Status
  • Horde_SyncMl_Command_Sync
  • Horde_SyncMl_Command_SyncHdr
  • Horde_SyncMl_ContentHandler
  • Horde_SyncMl_DataStore
  • Horde_SyncMl_Device
  • Horde_SyncMl_Device_Nokia
  • Horde_SyncMl_Device_P800
  • Horde_SyncMl_Device_sync4j
  • Horde_SyncMl_Device_Sync4JMozilla
  • Horde_SyncMl_Device_Synthesis
  • Horde_SyncMl_DeviceInfo
  • Horde_SyncMl_Property
  • Horde_SyncMl_PropertyParameter
  • Horde_SyncMl_State
  • Horde_SyncMl_Sync
  • Horde_SyncMl_SyncElement
  • Horde_SyncMl_Translation
  • Horde_SyncMl_XmlOutput
  • Overview
  • Package
  • Class
  • Tree

Class Horde_SyncMl_Device_sync4j

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 Horde_SyncMl_Device can only detect it by the decice ID: so in the connector configuration the device ID must be set to 'sc-pim-' which should be the default anyhow.

Copyright 2005-2012 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.

Horde_SyncMl_Device
Extended by Horde_SyncMl_Device_sync4j
Package: SyncMl
Author: Karsten Fourmont karsten@horde.org
Located at Horde/SyncMl/Device/Sync4j.php
Methods summary
public array
# convertClient2Server( string $content, string $contentType )

Convert the content.

Convert the content.

Parameters

$content
The content to convert.
$contentType
The content type of the content.

Returns

array

Two-element array with the converted content and the (possibly changed) new content type.

Overrides

Horde_SyncMl_Device::convertClient2Server()
public array
# convertServer2Client( string $content, string $contentType, string $database )

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

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.

Parameters

$content
The content to convert
$contentType
<p>The content type of content as returned from the backend</p>
$database
The server database URI.

Returns

array

Three-element array with the converted content, the (possibly changed) new content type, and encoding type (like b64 as used by Funambol).

Overrides

Horde_SyncMl_Device::convertServer2Client()
public array
# sif2array( string $sif )

Decodes a sif xml string to an associative array.

Decodes a sif xml string to an associative array.

Quick hack to convert from text/vcard and text/vcalendar to Sync4J's proprietery sif datatypes and vice versa. For details about the sif format see the appendix of the developer guide on www.sync4j.org.

Parameters

$sif
A sif string like <k1>v1&gt;</k1><k2>v2</k2>

Returns

array
Assoc array in utf8 like array ('k1' => 'v1>', 'k2' => 'v2');
public string
# array2sif( array $array, string $pre = '', string $post = '' )

Converts a hash to a SIF XML structure.

Converts a hash to a SIF XML structure.

Parameters

$array
A hash.
$pre
A prefix string for the XML result.
$post
A suffix string for the XML result.

Returns

string
The resulting XML string.
public
# sif2vnote( mixed $sif )
public
# sif2vcard( mixed $sif )
public
# sif2vevent( mixed $sif )
public
# sif2vtodo( mixed $sif )
public
# vnote2sif( mixed $vnote )
public
# vcard2sif( mixed $vcard )
public
# vevent2sif( mixed $vcard )
public
# vtodo2sif( mixed $vcard )
public boolean
# useCdataTag( )

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.

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.

Returns

boolean
True if the data should be enclosed in [CDATA[.

Overrides

Horde_SyncMl_Device::useCdataTag()
Methods inherited from Horde_SyncMl_Device
factory(), getPreferredContentType(), getPreferredContentTypeClient(), handleTasksInCalendar(), omitIndividualSyncStatus(), useLocalTime()
Properties inherited from Horde_SyncMl_Device
$requestedContentType
API documentation generated by ApiGen