diff --git a/docs/api/awl/caldav/CalDAVClient.html b/docs/api/awl/caldav/CalDAVClient.html new file mode 100644 index 00000000..ae6e6a04 --- /dev/null +++ b/docs/api/awl/caldav/CalDAVClient.html @@ -0,0 +1,956 @@ + + + +
+ +
CalDAVClientA class for accessing DAViCal via CalDAV, as a client
++ Located in /inc/caldav-client.php (line 55) +
+ + + + +
+ CalDAVClient
+ CalDAVClient
+ (string $base_url, string $user, string $pass, string $calendar)
+
+ array
+ DoCalendarQuery
+ (string $filter, [string $relative_url = ''], [ $reponse_type = 'data'], string $report_type)
+
+ array
+ DoXMLRequest
+ ( $request_method, string $xml, [string $relative_url = ''], string $method)
+
+ 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 Sun, 19 Oct 2008 21:25:37 +1300 by phpDocumentor 1.3.2 +
+
/inc/caldav-client.phpA Class for connecting to a caldav server
+ + +| Class | +Description | +
|---|---|
+
+ CalDAVClient
+ |
+ + A class for accessing DAViCal via CalDAV, as a client + | +
+ __curl_init_callback (line 24)
+ I bet you find this hard to believe, but having to write this hack really annoys the crap out of me. WTF! Why does PHP/Curl not have a function which simply accepts a string as what the request will contain. Oh no. They only think of "POST" and "PUT a file". Crap.
+So the following PoS code accepts that it will be called, and asked for $length bites of the $fd (which we ignore, because we get it all from the $_...data variable) and so it will eat it's way through the data.
+
+ __curl_read_callback (line 34)
+ As documented in the comments on this page(!)
+http://nz2.php.net/curl_setopt
++ Documentation generated on Sun, 19 Oct 2008 21:25:37 +1300 by phpDocumentor 1.3.2 +
+
/inc/always.php
+
+ include_once
+ ("/etc/davical/config.php")
+ (line 71)
+
+
+
+ include_once
+ ("/etc/rscds/".$_SERVER['SERVER_NAME']."-conf.php")
+ (line 68)
+
+
+
+ include_once
+ ("../config/config.php")
+ (line 74)
+
+
+
+ include_once
+ ("davical_configuration_missing.php")
+ (line 77)
+
+
+
+ include_once
+ ("/etc/davical/".$_SERVER['SERVER_NAME']."-conf.php")
+ (line 65)
+
+ We use @file_exists because things like open_basedir might noisily deny access which could break DAViCal completely by causing output to start too early.
+ +
+
+ include_once
+ ("PgQuery.php")
+ (line 114)
+
+ Force the domain name to what was in the configuration file
+ +
+
+ require_once
+ ("AWLUtilities.php")
+ (line 43)
+
+
+ ConstructURL (line 231)
+ Construct a URL from the supplied dav_name
+
+ getStatusMessage (line 175)
+ Return the HTTP status code description for a given code. Hopefully this is an efficient way to code this.
+ +
+ getUserByID (line 154)
+ Return a user record identified by a user_no, caching it for any subsequent lookup
+
+ getUserByName (line 133)
+ Return a user record identified by a username, caching it for any subsequent lookup
++ Documentation generated on Sun, 19 Oct 2008 21:25:36 +1300 by phpDocumentor 1.3.2 +
+