## /inc/caldav-PROPFIND.php

Description

CalDAV Server - handle PROPFIND method

- author: Andrew McMillan <andrew@catalyst.net.nz>
- copyright: Catalyst .Net Ltd, Andrew McMillan
- license: GNU GPL v2 or later

Includes
require_once ('iCalendar.php') (line 17)

CalDAV Server - handle PROPFIND method

- author: Andrew McMillan <andrew@catalyst.net.nz>
- copyright: Catalyst .Net Ltd, Andrew McMillan
- license: GNU GPL v2 or later

require_once ('XMLDocument.php') (line 18)
Functions
add_arbitrary_properties (line 171)

Adds any arbitrary properties that were requested by the PROPFIND into the response.

void add_arbitrary_properties ( &$prop, object $record, reference $prop, reference $denied)

- reference $prop: An XMLElement of the partly constructed response
- reference $denied: An XMLElement of properties to which access is denied
- object $record: A record with a dav_name attribute which the properties apply to
- &$prop

add_general_properties (line 230)

Handles any properties related to the DAV::PRINCIPAL in the request

void add_general_properties ( &$prop, &$denied, $record)

- &$prop
- &$denied
- $record

add_principal_properties (line 190)

Handles any properties related to the DAV::PRINCIPAL in the request

void add_principal_properties ( &$prop, &$denied)

- &$prop
- &$denied

add_proxy_response (line 355)

Add the calendar-proxy-read/write pseudocollections

void add_proxy_response (responses &$responses, $which, $parent_path)

- responses &$responses: array of responses to which to add the collections
- $which
- $parent_path

build_propstat_response (line 306)

Build the <propstat><prop></prop><status></status></propstat> part of the response

void build_propstat_response ( $prop, $denied, $url)

- $prop
- $denied
- $url

collection_to_xml (line 389)

Returns an XML sub-tree for a single collection record from the DB

void collection_to_xml ( $collection)

- $collection

get_collection (line 678)

Get XML response for a single collection. If Depth is >0 then

subsidiary collections will also be got up to $depth

void get_collection ( $depth, $user_no, $collection_path)

- $depth
- $user_no
- $collection_path

get_collection_contents (line 590)

Get XML response for items in the collection If '/' is requested, a list of visible users is given, otherwise a list of calendars for the user which are parented by this path.

void get_collection_contents ( $depth, $user_no, $collection)

- $depth
- $user_no
- $collection

get_item (line 753)

Get XML response for a single item. Depth is irrelevant for this.

void get_item ( $item_path)

- $item_path

href_set_from_paths (line 140)

Returns a set of hrefs from a set of urls

void href_set_from_paths ( $path_set)

- $path_set

item_to_xml (line 538)

Return XML for a single data item from the DB

void item_to_xml ( $item)

- $item

privileges (line 152)

Returns the array of privilege names converted into XMLElements

void privileges ( $privilege_names, [ $container = 'privilege'])

- $privilege_names
- $container

Documentation generated on Sat, 24 Oct 2009 12:40:38 +1300 by phpDocumentor 1.3.2