return array($content, $contentType);
}
+ /**
+ * 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.
+ *
+ * @param string $content The content to convert
+ * @param string $contentType The content type of content as returned
+ * from the backend
+ * @param string $database 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).
+ */
function convertServer2Client($content, $contentType, $database)
{
$database = $GLOBALS['backend']->_normalize($database);
SYNCML_LOGFILE_DATA,
"\nOutput converted for client ($contentType):\n$content\n");
- return array($content, $contentType);
+ return array($content, $contentType, null);
}
function handleTasksInCalendar()