API  1.0.0
CPWebDAVManager.j File Reference

Go to the source code of this file.

Variables

 CPWebDAVManagerCollectionResourceType = 1
 
 CPWebDAVManagerNonCollectionResourceType = 0
 
var mapURLsAndProperties
 
var parsePROPFINDResponse
 
var setURLResourceValuesForKeysFromProperties
 
var WebDAVPropertiesForURLKeys = { }
 
var XMLDocumentFromString
 

Variable Documentation

◆ CPWebDAVManagerCollectionResourceType

CPWebDAVManagerCollectionResourceType = 1

Definition at line 48 of file CPWebDAVManager.j.

◆ CPWebDAVManagerNonCollectionResourceType

CPWebDAVManagerNonCollectionResourceType = 0

Definition at line 49 of file CPWebDAVManager.j.

◆ mapURLsAndProperties

var mapURLsAndProperties
Initial value:
= function( properties, ignoredURL)
{
}

Definition at line 231 of file CPWebDAVManager.j.

◆ parsePROPFINDResponse

var parsePROPFINDResponse

Definition at line 188 of file CPWebDAVManager.j.

◆ setURLResourceValuesForKeysFromProperties

var setURLResourceValuesForKeysFromProperties
Initial value:
= function(aURL, keys, properties)
{
var resourceType = [properties objectForKey:@"resourcetype"];
{
[aURL setResourceValue:YES forKey:CPURLIsDirectoryKey];
[aURL setResourceValue:NO forKey:CPURLIsRegularFileKey];
}
else if (resourceType === CPWebDAVManagerNonCollectionResourceType)
{
[aURL setResourceValue:NO forKey:CPURLIsDirectoryKey];
[aURL setResourceValue:YES forKey:CPURLIsRegularFileKey];
}
var displayName = [properties objectForKey:@"displayname"];
if (displayName !== nil)
{
[aURL setResourceValue:displayName forKey:CPURLNameKey];
[aURL setResourceValue:displayName forKey:CPURLLocalizedNameKey];
}
}
CPWebDAVManagerNonCollectionResourceType
CPWebDAVManagerCollectionResourceType

Definition at line 24 of file CPWebDAVManager.j.

◆ WebDAVPropertiesForURLKeys

WebDAVPropertiesForURLKeys[CPURLIsDirectoryKey] = { }

Definition at line 145 of file CPWebDAVManager.j.

◆ XMLDocumentFromString

var XMLDocumentFromString
Initial value:
= function(anXMLString)
{
if (typeof window["ActiveXObject"] !== "undefined")
{
var XMLDocument = new ActiveXObject("Microsoft.XMLDOM");
XMLDocument.async = false;
XMLDocument.loadXML(anXMLString);
return XMLDocument;
}
return new DOMParser().parseFromString(anXMLString,"text/xml");
}

Definition at line 173 of file CPWebDAVManager.j.