[sync] Sync4j and Outlook

Muskingum Web Manager webmgr at muskingum.edu
Thu Oct 5 12:26:38 PDT 2006


input converted for server: text/x-vtodo
BEGIN:VTODO
SUMMARY:Testing Again
DESCRIPTION:This is a test.
CATEGORIES:High Priority
COMPLETED:19700101T000000Z
PRIORITY:1
DUE:20061005T040000Z
END:VTODO

This is what my log.txt file shows when I sync a task... Judging by the
value of COMPLETED, I wonder if Funambol is sending a date string instead of
"TRUE" or "FALSE"... perhaps I should take the issue up with them.

Any other thoughts before I do?

Aaron M. Hall
Muskingum College Web Coordinator
"Some people wish it could happen,
Some people think it will happen,
Others make it happen."

-----Original Message-----
From: sync-bounces at lists.horde.org [mailto:sync-bounces at lists.horde.org] On
Behalf Of Chuck Hagenbuch
Sent: Thursday, October 05, 2006 12:59 PM
To: sync at lists.horde.org
Subject: Re: [sync] Sync4j and Outlook

Quoting Muskingum Web Manager <webmgr at muskingum.edu>:

> OK guys, in Sync4j.php, it seems like the following code in function
> sif2vtodo...
>
> 	$vtodo->setAttribute('COMPLETED', $a['Complete'] == 'True' ? 1 : 0);
>
> ... is not tracking the "Completed" status of tasks properly, although I'm
> unclear why.
>
> First question is-- what does "$a['Complete'] == 'True' ? 1 : 0" actually
> do... not sure what the parameters mean.

It does the same thing as:

if ($a['Complete'] == 'True') {
     $vtodo->setAttribute('COMPLETED', 1);
} else {
     $vtodo->setAttribute('COMPLETED', 0);
}

It's called the ternary operator if you want to look up more info.

-chuck

-- 
"we are plastered to the windshield of the bus that is time." - Chris
-- 
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe at lists.horde.org




More information about the sync mailing list