CalDAVRequestA class for collecting things to do with this request.
Located in /inc/CalDAVRequest.php (line 27)
void
DoResponse
(int $status, [string $message = ""], [ $content_type = "text/plain; charset=\"utf-8\""])
mixed
$collection_id
(line 67)
The ID of the collection containing this path, or of this path if it is a collection
mixed
$collection_path
(line 72)
The path corresponding to the collection_id
mixed
$collection_type
(line 78)
The type of collection being requested:
calendar, schedule-inbox, schedule-outbox
mixed
$current_user_principal_xml
(line 57)
The 'current_user_principal_xml' the DAV:current-user-principal answer. An XMLElement object with an <href> or <unauthenticated> fragment.
mixed
$depth
(line 45)
The depth parameter from the request headers, coerced into a valid integer: 0, 1 or DEPTH_INFINITY which is defined above. The default is set per various RFCs.
mixed
$method
(line 39)
The HTTP request method: PROPFIND, LOCK, REPORT, OPTIONS, etc...
mixed
$options
(line 29)
CalDAVPrincipal
$principal
(line 51)
The 'principal' (user/resource/...) which this request seeks to access
mixed
$raw_post
(line 34)
The raw data sent along with the request
mixed
$supported_privileges
(line 83)
A static structure of supported privileges.
mixed
$user_agent
(line 62)
The user agent making the request.
Constructor CalDAVRequest (line 88)
Create a new CalDAVRequest object.
AllowedTo (line 867)
Are we allowed to do the requested activity
+------------+------------------------------------------------------+ | METHOD | PRIVILEGES | +------------+------------------------------------------------------+ | MKCALENDAR | DAV:bind | | REPORT | DAV:read or CALDAV:read-free-busy (on all referenced | | | resources) | +------------+------------------------------------------------------+
DepthRegexTail (line 586)
Returns the tail of a Regex appropriate for this Depth, when appended to
DoResponse (line 966)
Utility function we call when we have a simple status-based response to return to the client. Possibly
FailIfLocked (line 668)
This will either (a) return false if no locks apply, or (b) return the lock_token which the request successfully included to open the lock, or: (c) respond directly to the client with the failure.
GetDepthName (line 577)
Returns the name for this depth: 0, 1, infinity
GetLockDetails (line 654)
Returns the DB object associated with a lock token, or false.
GetLockRow (line 597)
Returns the locked row, either from the cache or from the database
IsCalendar (line 714)
Returns true if the URL referenced by this request points at a calendar collection.
IsCollection (line 703)
Returns true if the URL referenced by this request points at a collection.
IsInfiniteDepth (line 745)
Returns true if the request asked for infinite depth
IsLocked (line 534)
Checks whether the resource is locked, returning any lock token, or false
IsPrincipal (line 723)
Returns true if the URL referenced by this request points at a principal.
IsProxyRequest (line 734)
Returns true if the URL referenced by this request is within a proxy URL
IsPublic (line 566)
Checks whether the collection is public
RenderPrivileges (line 782)
Returns the array of privilege names converted into XMLElements
RenderSupportedPrivileges (line 753)
Returns the array of supported privileges converted into XMLElements
ServerProperty (line 798)
Return general server-related properties for this URL
setPermissions (line 448)
Permissions are controlled as follows:
SupportedPrivileges (line 1003)
Return an array of what the DAV privileges are that are supported
UnsupportedRequest (line 931)
Sometimes it's a perfectly formed request, but we just don't do that :-(
UserFromPath (line 404)
Work out the user whose calendar we are accessing, based on elements of the path.
ValidateLockToken (line 623)
Checks to see whether the lock token given matches one of the ones handed in with the request.
XMLResponse (line 951)
Send an XML Response. This function will never return.
Documentation generated on Sat, 24 Oct 2009 12:40:39 +1300 by phpDocumentor 1.3.2