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

CalDAVClient::GetEvents ( start,
relative_url = '' 

Get the events 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
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 361 of file caldav-client.php.

References DoCalendarQuery().

    $filter = "";
    if ( $start && $finish ) {
      $filter = <<<EOFILTER

    <comp-filter name="VCALENDAR">
      <comp-filter name="VEVENT">
        <time-range start="$start" end="$finish"/>

    return DoCalendarQuery($filter, $relative_url);

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index