CalDAVClientA class for accessing DAViCal via CalDAV, as a client
Located in /inc/caldav-client.php (line 55)
array
DoCalendarQuery
(string $filter, [string $relative_url = ''], [ $reponse_type = 'data'], string $report_type)
array
GetTodos
(timestamp $start, timestamp $finish, [boolean $completed = false], [boolean $cancelled = false], [string $relative_url = ""])
string
$base_url
(line 61)
Server, username, password, calendar, $entry
mixed
$body
= "" (line 71)
mixed
$calendar
(line 61)
resource
$curl
(line 78)
Our cURL connection
mixed
$entry
(line 61)
mixed
$headers
= array() (line 70)
mixed
$pass
(line 61)
mixed
$user
(line 61)
string
$user_agent
= 'DAViCalClient' (line 68)
The useragent which is send to the caldav server
Constructor CalDAVClient (line 89)
Constructor, initialises the class
DoCalendarQuery (line 301)
Given XML for a calendar query, return an array of the events (/todos) in the response. Each event in the array will have a 'href', 'etag' and '$response_type' part, where the 'href' is relative to the calendar and the '$response_type' contains the definition of the calendar data in iCalendar format.
DoDELETERequest (line 274)
DELETE a text/icalendar resource
DoGETRequest (line 229)
Get a single item from the server.
DoOptionsRequest (line 192)
Send an OPTIONS request to the server
DoPUTRequest (line 246)
PUT a text/icalendar resource, returning the etag
DoRequest (line 151)
Send a request to the server
DoXMLRequest (line 213)
Send an XML request to the server (e.g. PROPFIND, REPORT, MKCALENDAR)
GetEntryByHref (line 457)
Get the calendar entry by HREF
GetEntryByUid (line 430)
Get the calendar entry by UID
GetEvents (line 360)
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.
GetTodos (line 393)
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.
SetContentType (line 139)
Add a Content-type: header.
SetDepth (line 120)
Add a Depth: header. Valid values are 1 or infinity
SetMatch (line 111)
Adds an If-Match or If-None-Match header
SetUserAgent (line 129)
Add a Depth: header. Valid values are 1 or infinity
Documentation generated on Tue, 18 Nov 2008 18:33:27 +1300 by phpDocumentor 1.3.2