Class DAVResource
A class for things to do with a DAV Resource
Direct known subclasses
WritableCollectionCopyright: Morphoss Ltd
License: GNU GPL v3 or later
Author: Andrew McMillan andrew@mcmillan.net.nz
Located at DAVResource.php
public
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public static
|
#
BuildDeadPropertyXML( $property_name, $raw_string )
FIXME: does this function return a string or an array, or either? It used to be string only, but b4fd9e2e changed successfully parsed values to array. However values not in angle brackets are passed through, and those seem to be the majority in my database?! |
protected
|
|
public
|
|
public
|
#
FetchParentContainer( )
Fetch the parent to this resource. This is deprecated - use GetParentContainer() instead. |
public
|
|
public
boolean
|
#
HavePrivilegeTo( $do_what, $any = null )
Does the user have the privileges to do what is requested. |
public
|
#
NeedPrivilege( string $privilege, boolean $any = null )
Check if we have the needed privilege or send an error response. If the user does not have the privileges then the call will not return, and an XML error document will be output. |
public
|
#
BuildPrivileges( $privilege_names = null, & $xmldoc = null )
Returns the array of privilege names converted into XMLElements |
public
|
|
public
|
|
public
|
|
public
|
#
BuildSupportedReports( & $reply )
Returns the array of supported reports converted into XMLElements |
public
|
|
public
XMLTreeFragment
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
IsSchedulingCollection( string $type = 'any' )
Checks whether this resource is a scheduling inbox/outbox collection |
public
|
#
IsInSchedulingCollection( string $type = 'any' )
Checks whether this resource is IN a scheduling inbox/outbox collection |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
ContainerExists( )
Checks whether the container for this resource actually exists, in the virtual sense, within the hierarchy |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
collection_id( )
Returns the internal collection_id for this collection, or the collection containing this resource |
public
|
|
public
|
|
public
|
|
public
|
#
sync_token( $cachedOK = true )
Returns the current sync_token for this collection, or the containing collection |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
ResourceProperty( $tag, $prop, & $reply, & $denied )
Return general server-related properties for this URL |
public
string
|
#
GetPropStat( array $properties, & $reply, $props_only = false )
Construct XML propstat fragment for this resource |
public
string
|
#
RenderAsXML( array $properties, reference & $reply, $bound_parent_path = null )
Render XML for this resource |
protected
The
|
$dav_name
partial URL of the resource within our namespace, which this resource is being retrieved as |
|
protected
Boolean:
|
$exists
does the resource actually exist yet? |
|
protected
The
|
$unique_tag
unique etag associated with the current version of the resource |
|
protected
The
|
$resource
actual resource content, if it exists and is not a collection |
|
protected
The
|
$parent
parent of the resource, which will always be a collection |
|
protected
The
|
$resourcetypes
types of the resource, possibly multiple |
|
protected
The
|
$contenttype
type of the content |
|
protected
The
|
$bound_from
canonical name which this resource exists at |