File/inc/caldav-client.php

Description

A Class for connecting to a caldav server

Classes
Class Description
 class CalDAVClient A class for accessing DAViCal via CalDAV, as a client
Functions
__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.

void __curl_init_callback ( $data)
  • $data
__curl_read_callback (line 34)

As documented in the comments on this page(!)

http://nz2.php.net/curl_setopt

void __curl_read_callback ( $ch,  $fd,  $length)
  • $ch
  • $fd
  • $length

Documentation generated on Tue, 18 Nov 2008 18:33:27 +1300 by phpDocumentor 1.3.2