A class for collecting things to do with this request.
Located in /inc/CalDAVRequest.php (line 29)
The ID of the collection containing this path, or of this path if it is a collection
The path corresponding to the collection_id
The type of collection being requested:
calendar, schedule-inbox, schedule-outbox
The 'current_user_principal_xml' the DAV:current-user-principal answer. An XMLElement object with an <href> or <unauthenticated> fragment.
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.
The value of any 'Destionation:' header, if present.
The type of collection being requested:
calendar, schedule-inbox, schedule-outbox
The HTTP request method: PROPFIND, LOCK, REPORT, OPTIONS, etc...
The 'principal' (user/resource/...) which this request seeks to access
The decimal privileges allowed by this user to the identified resource.
The raw data sent along with the request
A static structure of supported privileges.
A DAVTicket object, if there is a ?ticket=id or Ticket: id with this request
The user agent making the request.
Create a new CalDAVRequest object.
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) | +------------+------------------------------------------------------+
Returns the array of supported privileges converted into XMLElements
Coerces the Content-type of the request into something valid/appropriate
Returns the ID of the collection of, or containing this request
Returns the dav_name of the resource in our internal namespace
Returns the tail of a Regex appropriate for this Depth, when appended to
Utility function we call when we have a simple status-based response to return to the client. Possibly
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.
Returns the name for this depth: 0, 1, infinity
Returns the DB object associated with a lock token, or false.
Returns the locked row, either from the cache or from the database
Is the user has the privileges to do what is requested.
Returns true if the URL referenced by this request points at an addressbook collection.
Returns true if the URL referenced by this request points at a calendar collection.
Returns true if the URL referenced by this request points at a collection.
Returns true if the request asked for infinite depth
Checks whether the resource is locked, returning any lock token, or false
Returns true if the URL referenced by this request points at a principal.
Returns true if the URL referenced by this request is within a proxy URL
Checks whether the collection is public
Send a simple error informing the client that was a malformed request
Send a need-privileges error response. This function will only return if the $href is not supplied and the current user has the specified permission for the request path.
Send an error response for a failed precondition.
Return the privileges bits for the current session user to this resource
Permissions are controlled as follows:
Sometimes it's a perfectly formed request, but we just don't do that :-(
Checks to see whether the lock token given matches one of the ones handed in with the request.
Send an XML Response. This function will never return.
Documentation generated on Fri, 13 Jan 2012 23:44:53 +1300 by phpDocumentor 1.4.3