-
AddDays
-
Add some integer number of days to a date
-
AddDuration
-
Add duration
-
addHandler
-
-
AddMonths
-
Add some number of months to a date
-
add_proxy_response
-
Add the calendar-proxy-read/write pseudocollections
-
AllowedTo
-
Extend parent definition of what the current user is allowed to do
-
AllowedTo
-
Are we allowed to do the requested activity
-
AllowedTo
-
Checks whether a user is allowed to do something.
-
AllowedTo
-
Checks whether a user is allowed to do something.
-
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.
-
AwlDatabase
-
Typically there will only be a single instance of the database level class in an application.
-
AwlDBDialect
-
The AwlDBDialect class handles
-
AwlQuery
-
The AwlQuery Class.
-
admin.php
-
-
always.php
-
-
auth-functions.php
-
-
AwlDatabase.php
-
-
AwlDBDialect.php
-
-
AwlQuery.php
-
-
$calendar_home_set
-
The calendar-home-set we're using
-
$calendar_home_set
-
-
$calendar_url
-
The calendar-URL we're using
-
$calendar_urls
-
The calendar_urls we have discovered
-
$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:
-
$connection
-
Our database connection, normally copied from a global one
-
$contenttype
-
-
$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
-
CalDAVPrincipal
-
A class for things to do with a DAV Principal
-
CalDAVRequest
-
A class for collecting things to do with this request.
-
CalendarHomeSet
-
Get/Set the calendar-home-set URL
-
CalendarInfo
-
A class for holding basic calendar information
-
CalendarUrls
-
Get/Set the calendar-home-set URL
-
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_pdo
-
-
check_pgsql
-
-
check_schema_version
-
-
check_string
-
-
close
-
-
CollectionId
-
Returns the ID of the collection of, or containing this request
-
Commit
-
Complete a transaction.
-
ConstructURL
-
Construct a URL from the supplied dav_name. The URL will be urlencoded, except for any '/' characters in it.
-
ContainerType
-
Return the type of whatever contains this resource, or would if it existed.
-
controlRequestContainer
-
Work out the location we are doing the PUT to, and check that we have the rights to do the needful.
-
CreateDefaultRelationships
-
Defunct function for creating 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-ACL.php
-
-
caldav-client-v2.php
-
-
caldav-client.php
-
-
caldav-DELETE.php
-
-
caldav-GET.php
-
-
caldav-LOCK.php
-
-
caldav-MKCOL.php
-
-
caldav-MOVE.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-expand-property.php
-
-
caldav-REPORT-freebusy.php
-
-
caldav-REPORT-multiget.php
-
-
caldav-REPORT-pps-set.php
-
-
caldav-REPORT-principal.php
-
-
caldav-REPORT-sync-collection.php
-
-
caldav-REPORT.php
-
-
CalDAVPrincipal.php
-
-
CalDAVRequest.php
-
-
check_UTF8.php
-
-
collection-edit.php
-
-
$dav_name
-
-
$db
-
Holds the PDO database connection
-
$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
-
$displayname
-
-
$dtstart
-
-
DateDifference
-
Produce an iCalendar format DURATION for the difference between this an another iCalDate
-
DateToISODate
-
Convert a date into ISO format into the sparkly new ISO format.
-
DAViCalSession
-
A class for creating and holding session information.
-
DAViCalUser
-
A class for viewing and maintaining DAViCal User records
-
DAViCalUser
-
Constructor - nothing fancy as yet.
-
DAVICAL_MAXPRIV
-
Given a privilege string, or an array of privilege strings, return a bit mask of the privileges.
-
DAVResource
-
A class for things to do with a DAV Resource
-
DAV_AllProperties
-
Return an array which is an expansion of the DAV::allprop
-
dav_name
-
Returns the dav_name of the resource in our internal namespace
-
dav_name
-
Returns the dav_name of the resource in our internal namespace
-
DaysInMonth
-
No of days in a month 1(Jan) - 12(Dec)
-
DeconstructURL
-
Deconstruct a dav_name from the supplied URL. The dav_name will be urldecoded.
-
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!)
-
display_status
-
Build the array of properties to include in the report output
-
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
-
DoPROPFINDRequest
-
Get a single item from 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)
-
duration
-
A duration (in decimal seconds) between two times which are the result of calls to microtime()
-
DAViCalSession.php
-
-
DAViCalUser.php
-
-
davical_configuration_missing.php
-
-
DAVResource.php
-
-
drivers_ldap.php
-
-
drivers_squid_pam.php
-
-
$fullname
-
User full name
-
FailIfLocked
-
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.
-
Fetch
-
Fetch the next row from the query results
-
FetchCollection
-
Find the collection associated with this resource.
-
FetchDeadProperties
-
Fetch any dead properties for this URL
-
FetchPrincipal
-
Find the principal associated with this resource.
-
FetchPrivileges
-
Build permissions for this URL
-
FetchProxyGroups
-
Split this out so we do it as infrequently as possible, given the cost.
-
FetchResource
-
Retrieve the actual resource.
-
FetchSupportedMethods
-
Returns the array of supported methods
-
FetchSupportedReports
-
Returns the array of supported reports
-
FindCalendarHome
-
Attack the given URL in an attempt to find a principal URL
-
FindCalendars
-
Find the calendars, from the calendar_home_set
-
FindPrincipal
-
Attack the given URL in an attempt to find a principal URL
-
FromPath
-
Initialise from a path
-
FromRow
-
Initialise from a database row
-
freebusy.php
-
-
freebusy-GET.php
-
-
$getctag
-
-
$groups
-
Group rights
-
$group_membership
-
-
$group_member_set
-
-
GetACL
-
Return ACL settings
-
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.
-
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.
-
GetOKProps
-
Return the <prop> ... </prop> of a propstat where the status is OK
-
GetProperty
-
Return general server-related properties, in plain form
-
GetPropStat
-
Construct XML propstat fragment for this resource
-
GetRelationships
-
Method used to get the user's relationships
-
GetRoles
-
Method used to get the user's roles
-
GetRoles
-
Internal function used to get the user's roles from the database.
-
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
-
GetVersion
-
Sets the current search path for the database.
-
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_href_containers
-
Given a <response><href>...</href><propstat><prop><someprop/></prop><status>HTTP/1.1 200 OK</status></propstat>...</response> pull out the content of <someprop>content</someprop> and check to see if it has any href elements. If it *does* then recurse into them, looking for the next deeper nesting of properties.
-
GreaterThan
-
Test if $this is greater than the date parameter
-
GroupMemberSet
-
Accessor for the group member set - the members of this group
-
GroupMembership
-
Accessor for the group membership - the groups this principal is a member of
-
$idle
-
-
index.php
-
-
iCalDate
-
The constructor takes either an iCalendar date, a text string formatted as an iCalendar date, or epoch seconds.
-
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.
-
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.
-
IsAddressbook
-
Checks whether this resource is an addressbook
-
IsAddressBook
-
Returns true if the URL referenced by this request points at an addressbook collection.
-
IsCalendar
-
Returns true if the URL referenced by this request points at a calendar collection.
-
IsCalendar
-
Checks whether this resource is a calendar
-
IsCollection
-
Checks whether this resource is a collection
-
IsCollection
-
Returns true if the URL referenced by this request points at a collection.
-
IsGroup
-
Is this a group principal?
-
IsInfiniteDepth
-
Returns true if the request asked for infinite depth
-
IsLocked
-
Checks whether the resource is locked, returning any lock token, or false
-
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
-
Checks whether this resource is a principal
-
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
-
IsPublic
-
Checks whether the target collection is publicly_readable
-
IsSchedulingCollection
-
Checks whether this resource is a calendar
-
$parser
-
-
$pass
-
-
$password
-
-
$port
-
-
$port
-
-
$principal
-
The 'principal' (user/resource/...) which this request seeks to access
-
$principal_address
-
-
$principal_url
-
The principal-URL we're using
-
$privileges
-
The decimal privileges allowed by this user to the identified resource.
-
$protocol
-
-
$pubsubLayout
-
-
public.php
-
-
page-footer.php
-
-
page-header.php
-
-
PublicSession.php
-
-
pubsub.php
-
-
principal-browse.php
-
-
principal-edit.php
-
-
Parameters
-
Return the parameters we are planning to substitute into the query string
-
ParseDigestHeader
-
Parse the HTTP Digest Auth Header
-
ParseResponse
-
Split response into httpResponse and xmlResponse
-
PHPTest
-
-
precondition_failed
-
Preconditions
-
prepare
-
Returns a PDOStatement object created using this database, the supplied SQL string, and any parameters given.
-
Prepare
-
Tell the database to prepare the query that we will execute
-
PrepareTranslated
-
Operates identically to AwlDatabase::Prepare, except that $this->Translate() will be called on the query before any processing.
-
PrincipalProperty
-
Returns properties which are specific to this principal
-
PrincipalURL
-
Get/Set the Principal URL
-
principal_url
-
Returns the principal-URL for this resource
-
Privileges
-
Return the privileges bits for the current session user to this resource
-
Privileges
-
Return the privileges bits for the current session user to this resource
-
Privileges
-
Return the privileges bits for the current session user to this resource
-
privilege_to_bits
-
-
property_response
-
Wrap an individual property name as needed
-
ProxyFor
-
Accessor for read or write proxy
-
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.
-
pubsubConfig
-
-
pubsubCreate
-
-
pubsubDelete
-
-
pubsubPublish
-
-
pubsubPurge
-
-
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
-
-
$resource
-
-
$resource
-
-
$resourcetypes
-
-
$result
-
Result of the last execution
-
$result_description
-
-
$rownum
-
number of current row - use accessor to get/set
-
$rows
-
number of rows from pg_numrows - use accessor to get value
-
relationship_types.php
-
-
roles.php
-
-
RRule.php
-
-
ReadProxyGroup
-
Accessor for the read proxy group
-
render
-
-
Render
-
Render the form / viewer as HTML to show the user
-
Render
-
Set the day of week used for calculation of week starts
-
RenderAsXML
-
Render XML for a single Principal (user) from the DB
-
RenderAsXML
-
Render XML for this resource
-
RenderCollections
-
Render the user's collections
-
RenderGMT
-
Render the date as GMT
-
renderImportFromDirectory
-
-
RenderRelationshipsFrom
-
Render the user's relationships to other users & resources
-
RenderRelationshipsTo
-
Render the user's relationships to other users & resources
-
renderSyncLDAP
-
-
ReplaceParameters
-
Replaces query parameters with appropriately escaped substitutions.
-
requestUser
-
Returns the result of the LDAP query
-
ResourceProperty
-
Return general server-related properties for this URL
-
rollback
-
RFC2068, 14.25: If none of the entity tags match, or if "*" is given and no current entity exists, the server MUST NOT perform the requested method, and MUST return a 412 (Precondition Failed) response.
-
Rollback
-
Cancel a transaction in progress.
-
rollback_on_error
-
This function launches an error
-
rows
-
Return the count of rows retrieved/affected
-
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
-
-
$server
-
-
$session
The session object is global.
-
-
$status
-
-
$sth
-
The PDO statement handle, or null if we don't have one yet.
-
$supported_privileges
-
A static structure of supported privileges.
-
setup.php
-
-
sendMessage
-
-
send_page_header
-
-
SetConnection
-
Use a different database connection for this query
-
SetContentType
-
Add a Content-type: header.
-
SetDepth
-
Add a Depth: header. Valid values are 0, 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:
-
SetSearchPath
-
Sets the current search path for the database.
-
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
-
sync_LDAP
-
sync LDAP against the DB
-
sync_user_from_LDAP
-
Synchronise a cached user with one from LDAP
-
$unique_tag
-
-
$url
-
-
$url
-
-
$user
-
-
$user_agent
-
The useragent which is send to the caldav server
-
$user_agent
-
The user agent making the request.
-
$user_no
-
User ID number
-
upgrade.php
-
-
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.
-
unique_tag
-
Returns the principal-URL for this resource
-
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.
-
$_is_group
-
-
_awl_connect_configured_database
-
Connect to the database defined in the $c->db_connect[] (or $c->pg_connect) arrays
-
_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
-
_log_query
-
Log query, optionally with file and line location of the caller.
-
_PartsFromText
-
Given a text date, convert it to parts
-
_TextFromEpoch
-
Given an epoch date, convert it to text
-
__construct
-
The constructor
-
__construct
-
-
__construct
-
Initializes the LDAP connection
-
__construct
-
Create a new CalDAVRequest object.
-
__construct
-
Constructor, initialises the class
-
__construct
-
Constructor
-
__construct
-
-
__construct
-
Constructor
-
__construct
-
Create a new DAViCalSession object.
-
__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
-
Constructor
-
__toString
-