Logo Search packages:      
Sourcecode: davical version File versions  Download package

CalDAVClient::GetTodos ( start,
completed = false,
cancelled = false,
relative_url = "" 

Get the todo's in a range from $start to $finish. The dates should be in the format yyyymmddThhmmssZ and should be in GMT. The events are returned as an array of event arrays. Each event array will have a 'href', 'etag' and 'event' part, where the 'href' is relative to the calendar and the event contains the definition of the event in iCalendar format.

timestamp$startThe start time for the period
timestamp$finishThe finish time for the period
boolean$completedWhether to include completed tasks
boolean$cancelledWhether to include cancelled tasks
string$relative_urlThe URL relative to the base_url specified when the calendar was opened. Default ''.
array An array of the relative URLs, etags, and events, returned from DoCalendarQuery()
See also:

Definition at line 395 of file caldav-client.php.

References DoCalendarQuery().


    if ( $start && $finish ) {
$time_range = <<<EOTIME
                <C:time-range start="$start" end="$finish"/>

    // Warning!  May contain traces of double negatives...
    $neg_cancelled = ( $cancelled === true ? "no" : "yes" );
    $neg_completed = ( $cancelled === true ? "no" : "yes" );

    $filter = <<<EOFILTER
    <C:comp-filter name="VCALENDAR">
          <C:comp-filter name="VTODO">
                <C:prop-filter name="STATUS">
                        <C:text-match negate-condition="$neg_completed">COMPLETED</C:text-match>
                <C:prop-filter name="STATUS">
                        <C:text-match negate-condition="$neg_cancelled">CANCELLED</C:text-match>

    return DoCalendarQuery($filter, $relative_url);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index