[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/SyncML/Device/ -> Sync4j.php (sommaire)

(pas de description)

Poids: 652 lignes (23 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

SyncML_Device_sync4j:: (12 méthodes):
  convertClient2Server()
  convertServer2Client()
  sif2array()
  array2sif()
  sif2vnote()
  sif2vcard()
  sif2vevent()
  sif2vtodo()
  vnote2sif()
  vcard2sif()
  vevent2sif()
  vtodo2sif()


Classe: SyncML_Device_sync4j  - X-Ref

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-2006 Karsten Fourmont <karsten@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.

$Horde: framework/SyncML/SyncML/Device/Sync4j.php,v 1.8.2.4 2006/01/01 21:28:37 jan Exp $

convertClient2Server($content, $contentType)   X-Ref
Convert the content.

Currently strips uid (primary key) information as client and
server might use different ones.

Charset conversions might be added here too.

convertServer2Client($content, $contentType)   X-Ref
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.

param: string $content       The content to convert
param: string $contentType   The contentType of content as returned from
return: array                array($newcontent, $newcontentType):

sif2array($sif)   X-Ref
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.

param: string $sif  A sif string like <k1>v1&gt;</k1><k2>v2</k2>
return: array  Assoc array in utf8 like array ('k1' => 'v1>', 'k2' => 'v2');

array2sif($array, $pre='', $post='')   X-Ref
Encodes an assoc. array to sif xml

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.

param: array $array  An assoc array.
return: string  The resulting XML string.

sif2vnote($sif)   X-Ref
Pas de description

sif2vcard($sif)   X-Ref
Pas de description

sif2vevent($sif)   X-Ref
Pas de description

sif2vtodo($sif)   X-Ref
Pas de description

vnote2sif($vnote)   X-Ref
Pas de description

vcard2sif($vcard)   X-Ref
Pas de description

vevent2sif($vcard)   X-Ref
Pas de description

vtodo2sif($vcard)   X-Ref
Pas de description



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7