[sync] get prefered content type version
Karsten Fourmont
fourmont at gmx.de
Mon Jul 30 07:38:42 UTC 2007
Hi,
normally there's no need for the version:
text/calendar is VCALENDAR 2.0. as of rfc2445,
text/x-vcalendar is old VCALENDAR 1.0 as of imc.org
If you really need the device info, you can access the DeviceInfo
instance like this:
$state = &$_SESSION['SyncML.state'];
$di = &$state->getDeviceInfo();
...
Cheers,
Karsten
Zul Mohd wrote:
> Hi,
>
> I need to get content type version from devinfo in
> Sql.php to deal with client sending different content
> version.
>
> For example, some client send vcalendar with version
> 1.0/2.0 and advertised the preferred content type is
> version 1.0/2.0.
>
> How to deal with that.
>
> Regard.
>
>
>
> ____________________________________________________________________________________
> Sick sense of humor? Visit Yahoo! TV's
> Comedy with an Edge to see what's on, when.
> http://tv.yahoo.com/collections/222
More information about the sync
mailing list