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

CalDAVClient::DoXMLRequest ( request_method,
xml,
relative_url = '' 
)

Send an XML request to the server (e.g. PROPFIND, REPORT, MKCALENDAR)

Parameters:
string$methodThe method (PROPFIND, REPORT, etc) to use with the request
string$xmlThe XML to send along with the request
string$relative_urlThe URL to make the request to, relative to $base_url
Returns:
array An array of the allowed methods

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

References DoRequest(), and SetContentType().

Referenced by DoCalendarQuery().

                                                                     {
    $this->body = $xml;

    curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, $request_method );
    curl_setopt($this->curl, CURLOPT_HEADER, false);
    $this->SetContentType("text/xml");
    return $this->DoRequest($relative_url);
  }

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index