Class SyncML_Device_Nokia

Description

The SyncML_Device_Nokia:: class provides functionality that is specific to the Nokia SyncML clients.

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.

$Horde: framework/SyncML/SyncML/Device/Nokia.php,v 1.2.2.13 2010-10-05 21:22:12 mrubinsk Exp $

Located in /SyncML/SyncML/Device/Nokia.php (line 16)

SyncML_Device
   |
   --SyncML_Device_Nokia
Method Summary
 array convertClient2Server (string $content, string $contentType)
 array convertServer2Client (string $content, string $contentType, string $database)
 void useLocalTime ()
Variables

Inherited Variables

Inherited from SyncML_Device

SyncML_Device::$requestedContentType
Methods
convertClient2Server (line 27)

Converts the content received from the client for the backend.

  • return: Two-element array with the converted content and the (possibly changed) new content type.
array convertClient2Server (string $content, string $contentType)
  • string $content: The content to convert.
  • string $contentType: The content type of the content.

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

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.

Charset conversions might be added here too.

  • 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.
handleTasksInCalendar (line 83)
void handleTasksInCalendar ()

Redefinition of:
SyncML_Device::handleTasksInCalendar()
Returns whether the device handles tasks and events in a single "calendar" sync.
useLocalTime (line 94)

Some devices accept datetimes only in local time format:

DTSTART:20061222T130000 instead of the more robust (and default) UTC time: DTSTART:20061222T110000Z

void useLocalTime ()

Redefinition of:
SyncML_Device::useLocalTime()
Returns whether the device accepts datetimes only in local time format (DTSTART:20061222T130000) instead of the more robust UTC time (DTSTART:20061222T110000Z).

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:19:58 +0000 by phpDocumentor 1.4.3