-
AddDays
-
Add some integer number of days to a date
-
AddDuration
-
Add duration
-
AddMonths
-
Add some number of months to a date
-
add_arbitrary_properties
-
Adds any arbitrary properties that were requested by the PROPFIND into the response.
-
add_general_properties
-
Handles any properties related to the DAV::PRINCIPAL in the request
-
add_principal_properties
-
Handles any properties related to the DAV::PRINCIPAL in the request
-
add_proxy_response
-
Add the calendar-proxy-read/write pseudocollections
-
AllowedTo
-
Checks whether a user is allowed to do something.
-
AllowedTo
-
Extend parent definition of what the current user is allowed to do
-
AllowedTo
-
Checks whether a user is allowed to do something.
-
AllowedTo
-
Are we allowed to do the requested activity
-
ApplyBySetPos
-
Given set position descriptions like '1', '3', '11', '-3' or '-1' and a set, return the subset matching the list of set positions.
-
apply_filter
-
While we can construct our SQL to apply some filters in the query, other filters need to be checked against the retrieved record. This is for handling those ones.
-
AsCollection
-
Returns a representation of the principal as a collection
-
AssignSessionDetails
-
Internal function used to assign the session details to a user's new session.
-
AssignSessionDetails
-
Internal function used to assign the session details to a user's new session.
-
AuthExternalAWL
-
Authenticate against a different PostgreSQL database which contains a usr table in the AWL format.
-
AuthFailedResponse
-
Authorisation failed, so we send some headers to say so.
-
always.php
-
-
auth-functions.php
-
-
$calendar
-
-
$calendar_home_set
-
-
$collection_id
-
The ID of the collection containing this path, or of this path if it is a collection
-
$collection_path
-
The path corresponding to the collection_id
-
$collection_type
-
The type of collection being requested:
-
$current_user_principal_xml
-
The 'current_user_principal_xml' the DAV:current-user-principal answer. An XMLElement object with an <href> or <unauthenticated> fragment.
-
CalDAVClient
-
A class for accessing DAViCal via CalDAV, as a client
-
CalDAVClient
-
Constructor, initialises the class
-
CalDAVPrincipal
-
Constructor
-
CalDAVPrincipal
-
A class for things to do with a DAV Principal
-
CalDAVRequest
-
Create a new CalDAVRequest object.
-
CalDAVRequest
-
A class for collecting things to do with this request.
-
calendar_to_xml
-
Return XML for a single calendar (or todo) entry from the DB
-
CheckPassword
-
CheckPassword does all of the password checking and returns a user record object, or false if it all ends in tears.
-
check_string
-
-
collection_to_xml
-
Returns an XML sub-tree for a single collection record from the DB
-
Commit
-
Complete a transaction.
-
ConstructURL
-
Construct a URL from the supplied dav_name. The URL will be urlencoded, except for any '/' characters in it.
-
controlRequestContainer
-
Work out the location we are doing the PUT to, and check that we have the rights to do the needful.
-
CreateDefaultRelationships
-
Create default relationships
-
CreateHomeCalendar
-
Create a default home calendar for the user.
-
create_scheduling_requests
-
Create scheduling requests in the schedule inbox for the
-
caldav.php
-
-
collection.php
-
-
caldav-client.php
-
-
caldav-DELETE.php
-
-
caldav-GET.php
-
-
caldav-LOCK.php
-
-
caldav-MKCALENDAR.php
-
-
caldav-OPTIONS.php
-
-
caldav-POST.php
-
-
caldav-PROPFIND.php
-
-
caldav-PROPPATCH.php
-
-
caldav-PUT-functions.php
-
-
caldav-PUT.php
-
-
caldav-REPORT-calquery.php
-
-
caldav-REPORT-freebusy.php
-
-
caldav-REPORT-multiget.php
-
-
caldav-REPORT-principal.php
-
-
caldav-REPORT.php
-
-
CalDAVPrincipal.php
-
-
CalDAVRequest.php
-
-
check_UTF8.php
-
-
$delete_collection_confirmation_required
-
-
$delete_user_confirmation_required
-
-
$depth
-
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.
-
$description
-
-
$dialect
-
Holds the name of the database dialect
-
$dtstart
-
-
DateDifference
-
Produce an iCalendar format DURATION for the difference between this an another iCalDate
-
DAViCalSession
-
A class for creating and holding session information.
-
DAViCalSession
-
Create a new DAViCalSession object.
-
DAViCalUser
-
A class for viewing and maintaining DAViCal User records
-
DAViCalUser
-
Constructor - nothing fancy as yet.
-
DaysInMonth
-
No of days in a month 1(Jan) - 12(Dec)
-
DepthRegexTail
-
Returns the tail of a Regex appropriate for this Depth, when appended to
-
DEPTH_INFINITY
-
-
DigestAuthSession
-
Handle Digest HTTP Authentication (no passwords were harmed in this transaction!)
-
DoCalendarQuery
-
Given XML for a calendar query, return an array of the events (/todos) in the response. Each event in the array will have a 'href', 'etag' and '$response_type' part, where the 'href' is relative to the calendar and the '$response_type' contains the definition of the calendar data in iCalendar format.
-
DoDELETERequest
-
DELETE a text/icalendar resource
-
DoGETRequest
-
Get a single item from the server.
-
DoOptionsRequest
-
Send an OPTIONS request to the server
-
DoPUTRequest
-
PUT a text/icalendar resource, returning the etag
-
DoRequest
-
Send a request to the server
-
DoResponse
-
Utility function we call when we have a simple status-based response to return to the client. Possibly
-
DoXMLRequest
-
Send an XML request to the server (e.g. PROPFIND, REPORT, MKCALENDAR)
-
DAViCalSession.php
-
-
DAViCalUser.php
-
-
davical_configuration_missing.php
-
-
drivers_ldap.php
-
-
drivers_squid_pam.php
-
-
$group_membership
-
-
$group_member_set
-
-
getAllUsers
-
Retrieve all users from the LDAP directory
-
GetDepthName
-
Returns the name for this depth: 0, 1, infinity
-
GetEntryByHref
-
Get the calendar entry by HREF
-
GetEntryByUid
-
Get the calendar entry by UID
-
GetEvents
-
Get the events in a range from $start to $finish. The dates should be in the
-
GetFields
-
Returns the SQL for the current database dialect which will return a two-column resultset containing a list of fields and their associated data types.
-
GetFields
-
Returns an associative array of field types, keyed by field name, for the requested named table. Internally this calls PdoDialect::GetFields to get the required SQL and then processes the query in the normal manner.
-
GetHttpRequest
-
Output http request headers
-
GetHttpResponse
-
Output http response headers
-
GetLockDetails
-
Returns the DB object associated with a lock token, or false.
-
GetLockRow
-
Returns the locked row, either from the cache or from the database
-
GetMonthByDay
-
Applies any BYDAY to the month to return a set of days
-
GetMonthByMonthDay
-
Applies any BYMONTHDAY to the month to return a set of days
-
GetNext
-
This is most of the meat of the RRULE processing, where we find the next date.
-
GetRelationships
-
Method used to get the user's relationships
-
GetRoles
-
Internal function used to get the user's roles from the database.
-
GetRoles
-
Method used to get the user's roles
-
getStaticLdap
-
A generic function to create and fetch static objects
-
getStatusMessage
-
Return the HTTP status code description for a given code. Hopefully this is an efficient way to code this.
-
GetTodos
-
Get the todo's in a range from $start to $finish. The dates should be in the
-
getUserByID
-
Return a user record identified by a user_no, caching it for any subsequent lookup
-
getUserByName
-
Return a user record identified by a username, caching it for any subsequent lookup
-
GetWeekByDay
-
Applies any BYDAY to the week to return a set of days
-
GetXmlRequest
-
Output xml request
-
GetXmlResponse
-
Output xml response
-
get_collection
-
Get XML response for a single collection. If Depth is >0 then
-
get_collection_contents
-
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.
-
get_item
-
Get XML response for a single item. Depth is irrelevant for this.
-
GreaterThan
-
Test if $this is greater than the date parameter
-
index.php
-
-
iCalDate
-
A Class for handling dates in iCalendar format. We do make the simplifying assumption that all date handling in here is normalised to GMT. One day we might provide some functions to do that, but for now it is done externally.
-
iCalDate
-
The constructor takes either an iCalendar date, a text string formatted as an iCalendar date, or epoch seconds.
-
importFromDirectory
-
-
import_collection
-
This function will import a whole calendar
-
interactive-page.php
-
-
InitialiseRecord
-
Initialise the Principal object from a $usr record from the DB.
-
IsCalendar
-
Returns true if the URL referenced by this request points at a calendar collection.
-
IsCollection
-
Returns true if the URL referenced by this request points at a collection.
-
IsInfiniteDepth
-
Returns true if the request asked for infinite depth
-
IsLocked
-
Checks whether the resource is locked, returning any lock token, or false
-
ISODateToHTTPDate
-
Convert a date from ISO format into the sad old HTTP format.
-
IsPrincipal
-
Returns true if the URL referenced by this request points at a principal.
-
IsProxyRequest
-
Returns true if the URL referenced by this request is within a proxy URL
-
IsPublic
-
Checks whether the collection is public
-
item_to_xml
-
Return XML for a single data item from the DB
-
$pass
-
-
$port
-
-
$principal
-
The 'principal' (user/resource/...) which this request seeks to access
-
$protocol
-
-
public.php
-
-
page-footer.php
-
-
page-header.php
-
-
PdoQuery.php
-
-
PublicSession.php
-
-
ParseDigestHeader
-
Parse the HTTP Digest Auth Header
-
ParseResponse
-
Split response into httpResponse and xmlResponse
-
PdoDatabase
-
Typically there will only be a single instance of the database level class in an application.
-
PdoDialect
-
The PdoDialect class handles
-
PdoQuery
-
A variable of this class is normally constructed through a call to PdoDatabase::Query or PdoDatabase::Prepare, associating it on construction with the database which is to be queried.
-
PHPTest
-
-
Prepare
-
Returns a PdoQuery object created using this database, the supplied SQL string, and any parameters given.
-
PrepareTranslated
-
Operates identically to PdoDatabase::Prepare, except that PdoDialect::Translate() will be called on the query before any processing.
-
privileges
-
Returns the array of privilege names converted into XMLElements
-
PublicSession
-
The constructor, which just calls the actual type configured
-
PublicSession
-
A Class for handling a public (anonymous) session
-
public_events_only
-
Check if this collection should force all events to be PUBLIC.
-
putCalendarResource
-
Put the resource from this request - does some checking of things before calling write_event to do the actual writing (without any checking).
-
$raw_post
-
The raw data sent along with the request
-
$read_proxy_for
-
-
$read_proxy_group
-
-
$recur
-
-
$requestMethod
-
-
$result_description
-
-
relationship_types.php
-
-
roles.php
-
-
RRule.php
-
-
Render
-
Set the day of week used for calculation of week starts
-
Render
-
Render the form / viewer as HTML to show the user
-
render
-
-
RenderAsXML
-
Render XML for a single Principal (user) from the DB
-
RenderCollections
-
Render the user's collections
-
RenderGMT
-
Render the date as GMT
-
renderImportFromDirectory
-
-
RenderPrivileges
-
Returns the array of privilege names converted into XMLElements
-
RenderRelationshipsFrom
-
Render the user's relationships to other users & resources
-
RenderRelationshipsTo
-
Render the user's relationships to other users & resources
-
RenderSupportedPrivileges
-
Returns the array of supported privileges converted into XMLElements
-
renderSyncLDAP
-
-
ReplaceParameters
-
Replaces query parameters with appropriately escaped substitutions.
-
requestUser
-
Returns the result of the LDAP query
-
Rollback
-
Cancel a transaction in progress.
-
rollback_on_error
-
This function launches an error
-
Rows
-
An accessor for the number of rows affected when the query was executed.
-
RRule
-
A Class for handling Events on a calendar which repeat
-
RRule
-
The constructor takes a start date and an RRULE definition. Both of these follow the iCalendar standard.
-
RRuleTest
-
-
RRuleTest
-
-
$schedule_inbox_url
-
-
$schedule_outbox_url
-
-
$server
-
-
$session
The session object is global.
-
-
$supported_privileges
-
A static structure of supported privileges.
-
send_page_header
-
-
ServerProperty
-
Return general server-related properties for this URL
-
SetContentType
-
Add a Content-type: header.
-
SetDepth
-
Add a Depth: header. Valid values are 1 or infinity
-
SetEpochDate
-
Set the date from an epoch
-
SetGMTDate
-
Set the date from a text string
-
SetLocalDate
-
Set the date from a text string
-
SetMatch
-
Adds an If-Match or If-None-Match header
-
SetMonthDay
-
Set the day in the month to what we have been given
-
setPermissions
-
Permissions are controlled as follows:
-
SetUserAgent
-
Add a Depth: header. Valid values are 1 or infinity
-
SetWeekStart
-
Set the day of week used for calculation of week starts
-
simple_write_resource
-
A slightly simpler version of write_resource which will make more sense for calling from an external program. This makes assumptions that the collection and user do exist and bypasses all checks for whether it is reasonable to write this here.
-
SqlFilterFragment
-
Process a filter fragment returning an SQL fragment
-
SQLTest
-
-
squidPamDrivers
-
Constructor.
-
squidPamDrivers
-
-
SQUID_PAM_check
-
Check the username / password against the PAM system
-
SupportedPrivileges
-
Return an array of what the DAV privileges are that are supported
-
sync_LDAP
-
sync LDAP against the DB
-
sync_user_from_LDAP
-
Synchronise a cached user with one from LDAP
-
$txnstate
-
Holds the state of the transaction 0 = not started, 1 = in progress, -1 = error pending rollback/commit
-
testpdo.php
-
-
tools.php
-
-
test-RRULE.php
-
-
TestByMonth
-
Test to see if our _mo matches something in the list of months we have received.
-
Tools
-
-
TotalDuration
-
Returns the total duration of quries executed so far by this object instance.
-
TotalQueries
-
Returns the total number of quries executed by this object instance.
-
TransactionState
-
Returns the current state of a transaction, indicating if we have begun a transaction, whether the transaction has failed, or if we are not in a transaction.
-
Translate
-
Translates the given SQL string into a form that will hopefully work for this database dialect. This hook is expected to be used by developers to provide support for differences in database operation by translating the query string in an arbitrary way, such as through a file or database lookup.
-
TranslateAll
-
Switches on or off the processing flag controlling whether subsequent calls to PdoDatabase::Prepare are translated as if PrepareTranslated() had been called.
-
translate_relationship_list
-
Translate relationship names in the relationship_list for each user. See the documentation for classBrowser::BrowserColumn for the definition of the hook function parameters.
-
$url
-
-
$user
-
-
$user_agent
-
The user agent making the request.
-
$user_agent
-
The useragent which is send to the caldav server
-
users.php
-
-
usr.php
-
-
unicodeToUtf8
-
Takes an array of ints representing the Unicode characters and returns a UTF-8 string. Astral planes are supported ie. the ints in the input can be > 0xFFFF. Occurrances of the BOM are ignored. Surrogates are not allowed.
-
UnsupportedRequest
-
Sometimes it's a perfectly formed request, but we just don't do that :-(
-
UpdateUserFromExternal
-
Update the local cache of the remote user details
-
update_scheduling_requests
-
Update scheduling requests in the schedule inbox for the
-
UserFromPath
-
Work out the user whose calendar we are accessing, based on elements of the path.
-
UsernameFromEMail
-
Work out the username, based on the given e-mail
-
UsernameFromPath
-
Work out the username, based on elements of the path.
-
utf8ToUnicode
-
Takes an UTF-8 string and returns an array of ints representing the Unicode characters. Astral planes are supported ie. the ints in the output can be > 0xFFFF. Occurrances of the BOM are ignored. Surrogates are not allowed.
-
_EpochFromParts
-
Given a local text date, convert it to an epoch
-
_GMTEpochFromParts
-
Given a GMT text date, convert it to an epoch
-
_GMTTextFromEpoch
-
Given a GMT epoch date, convert it to text
-
_PartsFromText
-
Given a text date, convert it to parts
-
_TextFromEpoch
-
Given an epoch date, convert it to text
-
__construct
-
Where $db is a PdoDatabase object. This constructs the PdoQuery. If there are further parameters they will be in turn, the sql, and any positional parameters to replace into that, and will be passed to $this->Query() before returning.
-
__construct
-
The constructor
-
__construct
-
The connection string is in the standard PDO format. The database won't actually be connected until the first database query is run against it.
-
__construct
-
Parses the connection string to ascertain the database dialect. Returns true if the dialect is supported and fails if the dialect is not supported. All code to support any given database should be within in an external include.
-
__construct
-
Initializes the LDAP connection